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
30 void SetErrorTolerance(double t) {fErrorTol = t;}
31 void SetMaxIters(Int_t mi) {fMaxIters = mi;}
32 void SetForceSum(bool flag);
33
34
35 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
36 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
37
38protected:
39
43 double fErrorTol;
48 double evaluate() const override ;
49
50private:
51
52 ClassDefOverride(RooNonCentralChiSquare,1) // non-central chisquare pdf
53};
54
55#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
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