Logo ROOT   6.16/01
Reference Guide
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=0) ;
28 virtual TObject* clone(const char* newname) const { return new RooNonCentralChiSquare(*this,newname); }
29 inline virtual ~RooNonCentralChiSquare() { }
30
32 void SetMaxIters(Int_t mi) {fMaxIters = mi;}
33 void SetForceSum(Bool_t flag);
34
35
36 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
37 Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
38
39protected:
40
49 Double_t evaluate() const ;
50
51private:
52
53 ClassDef(RooNonCentralChiSquare,1) // non-central chisquare pdf
54};
55
56#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
The PDF of the Non-Central Chi Square distribution for n degrees of freedom.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void SetErrorTolerance(Double_t t)
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
virtual TObject * clone(const char *newname) const
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
Mother of all ROOT objects.
Definition: TObject.h:37