Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id$
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_RANGE_BOOLEAN
0017 #define ROO_RANGE_BOOLEAN
0018 
0019 #include <RooAbsReal.h>
0020 #include <RooRealProxy.h>
0021 
0022 #include <TString.h>
0023 
0024 #include <list>
0025 
0026 class RooRangeBoolean : public RooAbsReal {
0027 public:
0028 
0029   RooRangeBoolean() = default;
0030   RooRangeBoolean(const char* name, const char* title, RooAbsRealLValue& x, const char* rangeName) ;
0031   RooRangeBoolean(const RooRangeBoolean& other, const char *name = nullptr);
0032   TObject* clone(const char* newname) const override { return new RooRangeBoolean(*this, newname); }
0033 
0034   std::list<double>* plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const override ;
0035 
0036 protected:
0037 
0038   RooRealProxy _x;
0039   TString _rangeName ;
0040 
0041   double evaluate() const override;
0042 
0043   ClassDefOverride(RooRangeBoolean,1)
0044 };
0045 
0046 #endif