Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:28

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitModels                                                     *
0004  *    File: $Id: RooUnblindCPAsymVar.h,v 1.15 2007/05/11 10:15:52 verkerke Exp $
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_UNBLIND_CPASYM_VAR
0017 #define ROO_UNBLIND_CPASYM_VAR
0018 
0019 #include "RooAbsHiddenReal.h"
0020 #include "RooAbsCategory.h"
0021 #include "RooRealProxy.h"
0022 #include "RooCategoryProxy.h"
0023 #include "RooBlindTools.h"
0024 
0025 class RooCategory;
0026 
0027 class RooUnblindCPAsymVar : public RooAbsHiddenReal {
0028 public:
0029   // Constructors, assignment etc
0030   RooUnblindCPAsymVar() ;
0031   RooUnblindCPAsymVar(const char *name, const char *title,
0032          const char *blindString, RooAbsReal& cpasym);
0033   RooUnblindCPAsymVar(const char *name, const char *title,
0034             const char *blindString, RooAbsReal& cpasym, RooAbsCategory& blindState);
0035   RooUnblindCPAsymVar(const RooUnblindCPAsymVar& other, const char* name=nullptr);
0036   TObject* clone(const char* newname) const override { return new RooUnblindCPAsymVar(*this,newname); }
0037   ~RooUnblindCPAsymVar() override;
0038 
0039 protected:
0040 
0041   // Function evaluation
0042   double evaluate() const override ;
0043 
0044   RooRealProxy _asym ;
0045   RooBlindTools _blindEngine ;
0046 
0047   ClassDefOverride(RooUnblindCPAsymVar,1) // CP-Asymmetry unblinding transformation
0048 };
0049 
0050 #endif