File indexing completed on 2025-01-18 10:11:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROO_EXTENDED_TERM
0017 #define ROO_EXTENDED_TERM
0018
0019 #include "RooAbsPdf.h"
0020 #include "RooRealProxy.h"
0021
0022 class RooExtendedTerm : public RooAbsPdf {
0023 public:
0024
0025 RooExtendedTerm() = default;
0026 RooExtendedTerm(const char *name, const char *title, const RooAbsReal& n) ;
0027 RooExtendedTerm(const RooExtendedTerm& other, const char* name=nullptr) ;
0028 TObject* clone(const char* newname) const override { return new RooExtendedTerm(*this,newname) ; }
0029
0030 double evaluate() const override { return 1. ; }
0031
0032 ExtendMode extendMode() const override { return CanBeExtended ; }
0033
0034 double expectedEvents(const RooArgSet* nset) const override ;
0035
0036 std::unique_ptr<RooAbsReal> createExpectedEventsFunc(const RooArgSet* nset) const override;
0037
0038 protected:
0039
0040 RooRealProxy _n ;
0041
0042 ClassDefOverride(RooExtendedTerm,1)
0043 };
0044
0045 #endif