File indexing completed on 2025-01-18 10:11:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROO_EFF_PROD
0013 #define ROO_EFF_PROD
0014
0015 #include "RooAbsPdf.h"
0016 #include "RooRealProxy.h"
0017 #include "RooObjCacheManager.h"
0018
0019 class RooEffProd: public RooAbsPdf {
0020 public:
0021
0022 RooEffProd() {}
0023 RooEffProd(const char *name, const char *title, RooAbsPdf& pdf, RooAbsReal& efficiency);
0024 RooEffProd(const RooEffProd& other, const char* name=nullptr);
0025
0026 TObject* clone(const char* newname) const override { return new RooEffProd(*this,newname); }
0027
0028 RooAbsGenContext* genContext(const RooArgSet &vars, const RooDataSet *prototype,
0029 const RooArgSet* auxProto, bool verbose) const override;
0030
0031 protected:
0032
0033
0034 double evaluate() const override ;
0035 void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
0036
0037
0038 RooRealProxy _pdf ;
0039 RooRealProxy _eff;
0040
0041 ClassDefOverride(RooEffProd,2)
0042 };
0043
0044 #endif