ROOT
v6-24
Reference Guide
Loading...
Searching...
No Matches
RooChiSquarePdf.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitModels *
4
* File: $Id$
5
* Authors: *
6
* Kyle Cranmer
7
* *
8
* *
9
* Redistribution and use in source and binary forms, *
10
* with or without modification, are permitted according to the terms *
11
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
12
*****************************************************************************/
13
#ifndef ROO_CHISQUARE
14
#define ROO_CHISQUARE
15
16
#include "
RooAbsPdf.h
"
17
#include "
RooRealProxy.h
"
18
19
class
RooRealVar
;
20
class
RooArgList
;
21
22
class
RooChiSquarePdf
:
public
RooAbsPdf
{
23
public
:
24
25
RooChiSquarePdf
() ;
26
RooChiSquarePdf
(
const
char
*
name
,
const
char
*title,
27
RooAbsReal
&
x
,
RooAbsReal
& ndof) ;
28
29
RooChiSquarePdf
(
const
RooChiSquarePdf
& other,
const
char
*
name
= 0);
30
virtual
TObject
*
clone
(
const
char
* newname)
const
{
return
new
RooChiSquarePdf
(*
this
, newname); }
31
inline
virtual
~RooChiSquarePdf
() { }
32
33
34
Int_t
getAnalyticalIntegral
(
RooArgSet
& allVars,
RooArgSet
& analVars,
const
char
* rangeName=0)
const
;
35
Double_t
analyticalIntegral
(
Int_t
code,
const
char
* rangeName=0)
const
;
36
37
38
private
:
39
40
RooRealProxy
_x
;
41
RooRealProxy
_ndof
;
42
43
Double_t
evaluate
()
const
;
44
RooSpan<double>
evaluateSpan
(
RooBatchCompute::RunContext
& evalData,
const
RooArgSet
* normSet)
const
;
45
46
ClassDef
(
RooChiSquarePdf
,1)
// Chi Square distribution (eg. the PDF )
47
};
48
49
#endif
RooAbsPdf.h
RooRealProxy.h
Double_t
double Double_t
Definition
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
name
char name[80]
Definition
TGX11.cxx:110
RooAbsPdf
Definition
RooAbsPdf.h:43
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition
RooAbsReal.h:61
RooArgList
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgList.h:21
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgSet.h:29
RooChiSquarePdf
The PDF of the Chi Square distribution for n degrees of freedom.
Definition
RooChiSquarePdf.h:22
RooChiSquarePdf::~RooChiSquarePdf
virtual ~RooChiSquarePdf()
Definition
RooChiSquarePdf.h:31
RooChiSquarePdf::evaluate
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooChiSquarePdf.cxx:58
RooChiSquarePdf::analyticalIntegral
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Definition
RooChiSquarePdf.cxx:86
RooChiSquarePdf::_ndof
RooRealProxy _ndof
Definition
RooChiSquarePdf.h:41
RooChiSquarePdf::evaluateSpan
RooSpan< double > evaluateSpan(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute multiple values of ChiSquare distribution.
Definition
RooChiSquarePdf.cxx:67
RooChiSquarePdf::getAnalyticalIntegral
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
No analytical calculation available (yet) of integrals over subranges.
Definition
RooChiSquarePdf.cxx:74
RooChiSquarePdf::_x
RooRealProxy _x
Definition
RooChiSquarePdf.h:40
RooChiSquarePdf::clone
virtual TObject * clone(const char *newname) const
Definition
RooChiSquarePdf.h:30
RooChiSquarePdf::RooChiSquarePdf
RooChiSquarePdf()
Definition
RooChiSquarePdf.cxx:33
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition
RooRealVar.h:39
RooSpan
A simple container to hold a batch of data values.
Definition
RooSpan.h:34
RooTemplateProxy< RooAbsReal >
TObject
Mother of all ROOT objects.
Definition
TObject.h:37
int
x
Double_t x[n]
Definition
legend1.C:17
RooBatchCompute::RunContext
This struct enables passing computation data around between elements of a computation graph.
Definition
RunContext.h:31
roofit
roofit
inc
RooChiSquarePdf.h
ROOT v6-24 - Reference Guide Generated on Tue Aug 22 2023 03:06:45 (GVA Time) using Doxygen 1.9.8