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: RooUnblindOffset.h,v 1.6 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_OFFSET
0017 #define ROO_UNBLIND_OFFSET
0018 
0019 #include "RooAbsHiddenReal.h"
0020 #include "RooRealProxy.h"
0021 #include "RooBlindTools.h"
0022 
0023 class RooUnblindOffset : public RooAbsHiddenReal {
0024 public:
0025   // Constructors, assignment etc
0026   RooUnblindOffset() = default;
0027   RooUnblindOffset(const char *name, const char *title,
0028          const char *blindString, double scale, RooAbsReal& blindValue);
0029   RooUnblindOffset(const char *name, const char *title,
0030          const char *blindString, double scale, RooAbsReal& blindValue,
0031          RooAbsCategory& blindState);
0032   RooUnblindOffset(const RooUnblindOffset& other, const char* name=nullptr);
0033   TObject* clone(const char* newname) const override { return new RooUnblindOffset(*this,newname); }
0034 
0035 protected:
0036 
0037   // Function evaluation
0038   double evaluate() const override ;
0039 
0040   RooRealProxy _value ;
0041   RooBlindTools _blindEngine ;
0042 
0043   ClassDefOverride(RooUnblindOffset,1) // Offset unblinding transformation
0044 };
0045 
0046 #endif