Logo ROOT   6.14/05
Reference Guide
RooParametricStepFunction.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitModels *
4  * File: $Id: RooParametricStepFunction.h,v 1.5 2007/05/11 09:13:07 verkerke Exp $
5  * Authors: *
6  * Aaron Roodman, Stanford Linear Accelerator Center, Stanford University *
7  * *
8  * Copyright (c) 2000-2005, Stanford University. All rights reserved. *
9  *
10  * *
11  * Redistribution and use in source and binary forms, *
12  * with or without modification, are permitted according to the terms *
13  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
14  *****************************************************************************/
15 #ifndef ROO_PARAMETRIC_STEP_FUNCTION
16 #define ROO_PARAMETRIC_STEP_FUNCTION
17 
18 #include "TArrayD.h"
19 #include "RooAbsPdf.h"
20 #include "RooRealProxy.h"
21 #include "RooListProxy.h"
22 
23 class RooRealVar;
24 class RooArgList ;
25 
27 public:
28 
30 
31  RooParametricStepFunction(const char *name, const char *title,
32  RooAbsReal& x, const RooArgList& coefList, TArrayD& limits, Int_t nBins=1) ;
33 
34  RooParametricStepFunction(const RooParametricStepFunction& other, const char* name = 0);
35  virtual TObject* clone(const char* newname) const { return new RooParametricStepFunction(*this, newname); }
36  virtual ~RooParametricStepFunction() ;
37 
38  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
39  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
40  Int_t getnBins();
42 
43 protected:
44 
45  Double_t lastBinValue() const ;
46 
51  TIterator* _coefIter ; //! do not persist
52 
53  Double_t evaluate() const;
54 
55  ClassDef(RooParametricStepFunction,1) // Parametric Step Function Pdf
56 };
57 
58 #endif
virtual TObject * clone(const char *newname) const
The Parametric Step Function PDF is a binned distribution whose parameters are the heights of each bi...
Double_t evaluate() const
do not persist
int Int_t
Definition: RtypesCore.h:41
Iterator abstract base class.
Definition: TIterator.h:30
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
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
Array of doubles (64 bits per element).
Definition: TArrayD.h:27
Mother of all ROOT objects.
Definition: TObject.h:37
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
virtual ~RooParametricStepFunction()
Destructor.
char name[80]
Definition: TGX11.cxx:109
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...