/***************************************************************************** * Project: RooFit * * * * This code was autogenerated by RooClassFactory * *****************************************************************************/ #ifndef ROOHISTCONSTRAINT #define ROOHISTCONSTRAINT #include #include class RooHistConstraint : public RooAbsPdf { public: RooHistConstraint() {} ; RooHistConstraint(const char *name, const char *title, const RooArgSet& phfSet, int threshold=1000000); RooHistConstraint(const RooHistConstraint& other, const char* name=nullptr) ; TObject* clone(const char* newname) const override { return new RooHistConstraint(*this,newname); } double getLogVal(const RooArgSet* set=nullptr) const override ; /// It makes only sense to use the RooHistConstraint when normalized over the /// set of all gammas, in which case it is self-normalized because the used /// TMath::Poisson function is normalized. bool selfNormalized() const override { return true; } protected: RooListProxy _gamma ; RooListProxy _nominal ; bool _relParam ; double evaluate() const override ; private: ClassDefOverride(RooHistConstraint, 2) }; #endif