Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooNonCentralChiSquare.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Project: RooFit *
3 * @(#)root/roofit:$Id$ *
4 * *
5 * RooFit NonCentralChisquare PDF *
6 * *
7 * Author: Kyle Cranmer *
8 * *
9 *****************************************************************************/
10
11#ifndef ROO_NONCENTRALCHISQUARE
12#define ROO_NONCENTRALCHISQUARE
13
14#include "RooAbsPdf.h"
15#include "RooRealProxy.h"
16#include "RooCategoryProxy.h"
17#include "RooAbsReal.h"
18#include "RooAbsCategory.h"
19
21public:
23 RooNonCentralChiSquare(const char *name, const char *title,
24 RooAbsReal& _x,
25 RooAbsReal& _k,
26 RooAbsReal& _lambda);
27 RooNonCentralChiSquare(const RooNonCentralChiSquare& other, const char* name=nullptr) ;
28 TObject* clone(const char* newname) const override { return new RooNonCentralChiSquare(*this,newname); }
29 inline ~RooNonCentralChiSquare() override { }
30
31 void SetErrorTolerance(double t) {fErrorTol = t;}
32 void SetMaxIters(Int_t mi) {fMaxIters = mi;}
33 void SetForceSum(bool flag);
34
35
36 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
37 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
38
39protected:
40
44 double fErrorTol;
49 double evaluate() const override ;
50
51private:
52
53 ClassDefOverride(RooNonCentralChiSquare,1) // non-central chisquare pdf
54};
55
56#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:62
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
The PDF of the Non-Central Chi Square distribution for n degrees of freedom.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
TObject * clone(const char *newname) const override
Mother of all ROOT objects.
Definition TObject.h:41