meerkat is hosted by Hepforge, IPPP Durham
Meerkat  v1r3
Multidimensional kernel density estimation package
OneDimPhaseSpace.hh
Go to the documentation of this file.
1 #ifndef ONEDIM_PHASE_SPACE
2 #define ONEDIM_PHASE_SPACE
3 
4 #include "AbsPhaseSpace.hh"
5 
6 #include "TMath.h"
7 
8 #include <vector>
9 
12 
14 
15  public:
16 
18 
23  OneDimPhaseSpace(const char* phaseSpaceName,
24  Double_t lowerLimit,
25  Double_t upperLimit);
26 
28  virtual ~OneDimPhaseSpace();
29 
31  UInt_t dimensionality() { return 1; }
32 
34  Bool_t withinLimits(std::vector<Double_t> &x);
35 
37  Double_t lowerLimit(UInt_t var);
38 
40  Double_t upperLimit(UInt_t var);
41 
43 
49  Bool_t limits(UInt_t var, std::vector<Double_t> &x, Double_t* lower, Double_t* upper);
50 
51  private:
52 
54  Double_t m_lowerLimit;
55 
57  Double_t m_upperLimit;
58 
59 };
60 
61 #endif
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...
Double_t m_lowerLimit
Lower limit.
Bool_t withinLimits(std::vector< Double_t > &x)
Check if the point is within the phase space limits.
Double_t m_upperLimit
Upper limit.
Double_t lowerLimit(UInt_t var)
Get lower limit.
UInt_t dimensionality()
Get dimensionality of the phase space. Always equals to one.
virtual ~OneDimPhaseSpace()
Destructor.
OneDimPhaseSpace(const char *phaseSpaceName, Double_t lowerLimit, Double_t upperLimit)
Constructor.
Abstract class which defines phase space interface.
Double_t upperLimit(UInt_t var)
Get upper limit.