meerkat is hosted by Hepforge, IPPP Durham
Meerkat  v1r3
Multidimensional kernel density estimation package
ParametricPhaseSpace Class Reference

#include <ParametricPhaseSpace.hh>

Inheritance diagram for ParametricPhaseSpace:
AbsPhaseSpace

Public Member Functions

 ParametricPhaseSpace (const char *phspName, AbsPhaseSpace *basePhaseSpace, const char *lowerFormula, const char *upperFormula, Double_t lowerLimit, Double_t upperLimit)
 Constructor. More...
 
virtual ~ParametricPhaseSpace ()
 Destructor. More...
 
UInt_t dimensionality ()
 Get dimensionality of the phase space. More...
 
Bool_t withinLimits (std::vector< Double_t > &x)
 Check if the point is within the phase space limits. More...
 
Double_t lowerLimit (UInt_t var)
 Get lower limit. More...
 
Double_t upperLimit (UInt_t var)
 Get upper limit. More...
 
Bool_t limits (UInt_t var, std::vector< Double_t > &x, Double_t *lower, Double_t *upper)
 Return limits (lower and upper) for the variable at the certain point of the phase space. More...
 
- Public Member Functions inherited from AbsPhaseSpace
 AbsPhaseSpace (const char *phaseSpaceName)
 Constructor. More...
 
virtual ~AbsPhaseSpace ()
 Destructor. More...
 
const char * name (void)
 Return the name of the phase space. More...
 

Private Attributes

Double_t m_lowerLimit
 Lower limit in additional variable. More...
 
Double_t m_upperLimit
 Upper limit in additional variable. More...
 
TFormula * m_lowerFormula
 Lower limit formula. More...
 
TFormula * m_upperFormula
 Upper limit formula. More...
 
UInt_t m_dim
 Cached dimensionality. More...
 
AbsPhaseSpacem_phaseSpace
 Base phase space. More...
 

Additional Inherited Members

- Protected Attributes inherited from AbsPhaseSpace
char m_name [256]
 Phase space name. More...
 

Detailed Description

Class which describes the parametric phase space It adds one dimension on top of another phase space with the upper and lower limits determined by TFormula expressions.

Definition at line 16 of file ParametricPhaseSpace.hh.

Constructor & Destructor Documentation

ParametricPhaseSpace::ParametricPhaseSpace ( const char *  phspName,
AbsPhaseSpace basePhaseSpace,
const char *  lowerFormula,
const char *  upperFormula,
Double_t  lowerLimit,
Double_t  upperLimit 
)

Constructor.

Parameters
[in]phspNamephase space name
[in]basePhaseSpacebase phase space
[in]lowerFormulaformula expression for lower limit of additional variable
[in]upperFormulaformula expression for upper limit of additional variable
[in]lowerLimitglobal lower limit of the additional variable
[in]upperLimitglobal upper limit of the additional variable

Definition at line 12 of file ParametricPhaseSpace.cpp.

ParametricPhaseSpace::~ParametricPhaseSpace ( )
virtual

Destructor.

Definition at line 50 of file ParametricPhaseSpace.cpp.

Member Function Documentation

UInt_t ParametricPhaseSpace::dimensionality ( )
inlinevirtual

Get dimensionality of the phase space.

Implements AbsPhaseSpace.

Definition at line 40 of file ParametricPhaseSpace.hh.

Bool_t ParametricPhaseSpace::limits ( UInt_t  var,
std::vector< Double_t > &  x,
Double_t *  lower,
Double_t *  upper 
)
virtual

Return limits (lower and upper) for the variable at the certain point of the phase space.

Parameters
[in]varnumber of the variable
[in]xpoint in the phase space
[out]lowerlower limit
[out]upperupper limit

Implements AbsPhaseSpace.

Definition at line 93 of file ParametricPhaseSpace.cpp.

Double_t ParametricPhaseSpace::lowerLimit ( UInt_t  var)
virtual

Get lower limit.

Implements AbsPhaseSpace.

Definition at line 76 of file ParametricPhaseSpace.cpp.

Double_t ParametricPhaseSpace::upperLimit ( UInt_t  var)
virtual

Get upper limit.

Implements AbsPhaseSpace.

Definition at line 84 of file ParametricPhaseSpace.cpp.

Bool_t ParametricPhaseSpace::withinLimits ( std::vector< Double_t > &  x)
virtual

Check if the point is within the phase space limits.

Implements AbsPhaseSpace.

Definition at line 54 of file ParametricPhaseSpace.cpp.

Member Data Documentation

UInt_t ParametricPhaseSpace::m_dim
private

Cached dimensionality.

Definition at line 75 of file ParametricPhaseSpace.hh.

TFormula* ParametricPhaseSpace::m_lowerFormula
private

Lower limit formula.

Definition at line 69 of file ParametricPhaseSpace.hh.

Double_t ParametricPhaseSpace::m_lowerLimit
private

Lower limit in additional variable.

Definition at line 63 of file ParametricPhaseSpace.hh.

AbsPhaseSpace* ParametricPhaseSpace::m_phaseSpace
private

Base phase space.

Definition at line 78 of file ParametricPhaseSpace.hh.

TFormula* ParametricPhaseSpace::m_upperFormula
private

Upper limit formula.

Definition at line 72 of file ParametricPhaseSpace.hh.

Double_t ParametricPhaseSpace::m_upperLimit
private

Upper limit in additional variable.

Definition at line 66 of file ParametricPhaseSpace.hh.


The documentation for this class was generated from the following files: