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: RooUnblindPrecision.h,v 1.7 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_PRECISION
0017 #define ROO_UNBLIND_PRECISION
0018 
0019 #include "RooAbsHiddenReal.h"
0020 #include "RooRealProxy.h"
0021 #include "RooCategoryProxy.h"
0022 #include "RooBlindTools.h"
0023 
0024 class RooCategory ;
0025 
0026 class RooUnblindPrecision : public RooAbsHiddenReal {
0027 public:
0028   // Constructors, assignment etc
0029   RooUnblindPrecision() = default;
0030   RooUnblindPrecision(const char *name, const char *title,
0031             const char *blindString, double centralValue, double scale, RooAbsReal& blindValue, bool sin2betaMode=false);
0032   RooUnblindPrecision(const char *name, const char *title,
0033             const char *blindString, double centralValue, double scale,
0034             RooAbsReal& blindValue, RooAbsCategory& blindState, bool sin2betaMode=false);
0035   RooUnblindPrecision(const RooUnblindPrecision& other, const char* name=nullptr);
0036   TObject* clone(const char* newname) const override { return new RooUnblindPrecision(*this,newname); }
0037 
0038 protected:
0039 
0040   // Function evaluation
0041   double evaluate() const override ;
0042 
0043   RooRealProxy _value ;          // Holder of the blind value
0044   RooBlindTools _blindEngine ;   // Blinding engine
0045 
0046   ClassDefOverride(RooUnblindPrecision,1) // Precision unblinding transformation
0047 };
0048 
0049 #endif