CMS 3D CMS Logo

TwoBodyDecayParameters.h
Go to the documentation of this file.
1 #ifndef Alignment_TwoBodyDecay_TwoBodyDecayParameters_h
2 #define Alignment_TwoBodyDecay_TwoBodyDecayParameters_h
3 
13 
15 public:
17  enum ParameterName { x = 0, y = 1, z = 2, px = 3, py = 4, pz = 5, theta = 6, phi = 7, mass = 8 };
18 
19  enum { dimension = 9 };
20 
22 
24  : theParameters(param), theCovariance(cov) {}
25 
27 
30 
32 
34  inline const AlgebraicVector &parameters(void) const { return theParameters; }
35 
37  inline const AlgebraicSymMatrix &covariance(void) const { return theCovariance; }
38 
40  inline double operator[](ParameterName name) const { return theParameters[name]; }
41 
43  inline double operator()(ParameterName name) const { return theParameters[name]; }
44 
47  return theParameters.sub(first + 1, last + 1);
48  }
49 
50  inline bool hasError(void) const { return (theCovariance.num_row() != 0); }
51 
52 private:
55 };
56 
57 #endif
TwoBodyDecayParameters::TwoBodyDecayParameters
TwoBodyDecayParameters(void)
Definition: TwoBodyDecayParameters.h:21
AlgebraicObjects.h
TwoBodyDecayParameters::phi
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::dimension
Definition: TwoBodyDecayParameters.h:19
TwoBodyDecayParameters::sub
const AlgebraicVector sub(ParameterName first, ParameterName last) const
Get specified range of decay parameters.
Definition: TwoBodyDecayParameters.h:46
TwoBodyDecayParameters::mass
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::parameters
const AlgebraicVector & parameters(void) const
Get decay parameters.
Definition: TwoBodyDecayParameters.h:34
TwoBodyDecayParameters::TwoBodyDecayParameters
TwoBodyDecayParameters(const AlgebraicVector &param)
Definition: TwoBodyDecayParameters.h:26
TwoBodyDecayParameters::pz
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::hasError
bool hasError(void) const
Definition: TwoBodyDecayParameters.h:50
dqmdumpme.last
last
Definition: dqmdumpme.py:56
TwoBodyDecayParameters::operator[]
double operator[](ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecayParameters.h:40
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
TwoBodyDecayParameters::operator()
double operator()(ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecayParameters.h:43
trackingPlots.other
other
Definition: trackingPlots.py:1460
TwoBodyDecayParameters::theta
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::~TwoBodyDecayParameters
~TwoBodyDecayParameters(void)
Definition: TwoBodyDecayParameters.h:31
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
TwoBodyDecayParameters::theCovariance
AlgebraicSymMatrix theCovariance
Definition: TwoBodyDecayParameters.h:54
TwoBodyDecayParameters
Definition: TwoBodyDecayParameters.h:14
TwoBodyDecayParameters::z
Definition: TwoBodyDecayParameters.h:17
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
TwoBodyDecayParameters::y
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::x
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::py
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::px
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::covariance
const AlgebraicSymMatrix & covariance(void) const
Get error matrix.
Definition: TwoBodyDecayParameters.h:37
TwoBodyDecayParameters::theParameters
AlgebraicVector theParameters
Definition: TwoBodyDecayParameters.h:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TwoBodyDecayParameters::ParameterName
ParameterName
Define order of parameters.
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecayParameters::TwoBodyDecayParameters
TwoBodyDecayParameters(const TwoBodyDecayParameters &other)
Definition: TwoBodyDecayParameters.h:28
TwoBodyDecayParameters::TwoBodyDecayParameters
TwoBodyDecayParameters(const AlgebraicVector &param, const AlgebraicSymMatrix &cov)
Definition: TwoBodyDecayParameters.h:23