Warning, file /include/root/RooFirstMoment.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef ROO_FIRST_MOMENT
0017 #define ROO_FIRST_MOMENT
0018
0019 #include "RooAbsMoment.h"
0020 #include "RooRealProxy.h"
0021 #include "RooSetProxy.h"
0022
0023
0024 class RooRealVar;
0025
0026 class RooFirstMoment : public RooAbsMoment {
0027 public:
0028
0029 RooFirstMoment() = default;
0030 RooFirstMoment(const char *name, const char *title, RooAbsReal& func, RooRealVar& x) ;
0031 RooFirstMoment(const char *name, const char *title, RooAbsReal& func, RooRealVar& x, const RooArgSet& nset, bool intNSet=false) ;
0032
0033 RooFirstMoment(const RooFirstMoment& other, const char* name = nullptr);
0034 TObject* clone(const char* newname) const override { return new RooFirstMoment(*this, newname); }
0035
0036 const RooAbsReal& xF() { return _xf.arg() ; }
0037 const RooAbsReal& ixF() { return _ixf.arg() ; }
0038 const RooAbsReal& iF() { return _if.arg() ; }
0039
0040 protected:
0041
0042 RooRealProxy _xf ;
0043 RooRealProxy _ixf ;
0044 RooRealProxy _if ;
0045 double evaluate() const override;
0046
0047 ClassDefOverride(RooFirstMoment,1)
0048 };
0049
0050 #endif