ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RooGamma.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitModels
4  *
5  * authors: Stefan A. Schmitz, Gregory Schott
6  * implementation of the Gamma distribution (class structure derived
7  * from the class RooGaussian by Wouter Verkerke and David Kirkby)
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 
14 #ifndef ROO_GAMMA
15 #define ROO_GAMMA
16 
17 #include "RooAbsPdf.h"
18 #include "RooRealProxy.h"
19 
20 class RooRealVar;
21 
22 class RooGamma : public RooAbsPdf {
23 public:
24  RooGamma() {} ;
25  RooGamma(const char *name, const char *title,
26  RooAbsReal& _x, RooAbsReal& _gamma, RooAbsReal& _beta, RooAbsReal& _mu);
27  RooGamma(const RooGamma& other, const char* name=0) ;
28  virtual TObject* clone(const char* newname) const { return new RooGamma(*this,newname); }
29  inline virtual ~RooGamma() { }
30 
31  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
32  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
33 
34  Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const;
35  void generateEvent(Int_t code);
36 
37 protected:
38 
43 
44  Double_t evaluate() const ;
45 
46 private:
47 
48  ClassDef(RooGamma,1) // Gaussian PDF
49 };
50 
51 #endif
RooRealProxy x
Definition: RooGamma.h:39
RooRealProxy beta
Definition: RooGamma.h:41
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
Definition: RooGamma.cxx:98
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
Definition: RooGamma.cxx:108
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual TObject * clone(const char *newname) const
Definition: RooGamma.h:28
RooRealProxy gamma
Definition: RooGamma.h:40
#define ClassDef(name, id)
Definition: Rtypes.h:254
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:37
void generateEvent(Int_t code)
Interface for generation of anan event using the algorithm corresponding to the specified code...
Definition: RooGamma.cxx:134
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
RooRealProxy mu
Definition: RooGamma.h:42
RooGamma()
Definition: RooGamma.h:24
Double_t evaluate() const
Definition: RooGamma.cxx:87
virtual ~RooGamma()
Definition: RooGamma.h:29
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const
Load generatedVars with the subset of directVars that we can generate events for, and return a code t...
Definition: RooGamma.cxx:124
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
const Bool_t kTRUE
Definition: Rtypes.h:91