CMS 3D CMS Logo

TwoBodyDecay.h
Go to the documentation of this file.
1 #ifndef Alignment_TwoBodyDecay_TwoBodyDecay_h
2 #define Alignment_TwoBodyDecay_TwoBodyDecay_h
3 
6 
15 class TwoBodyDecay {
16 public:
18 
21 
23  : theDecayParameters(param),
24  theChi2(chi2),
28 
29  ~TwoBodyDecay(void) {}
30 
31  inline const TwoBodyDecayParameters &decayParameters(void) const { return theDecayParameters; }
32 
33  inline const AlgebraicVector &parameters(void) const { return theDecayParameters.parameters(); }
34  inline const AlgebraicSymMatrix &covariance(void) const { return theDecayParameters.covariance(); }
35 
37  inline double operator[](ParameterName name) const { return theDecayParameters[name]; }
38 
40  inline double operator()(ParameterName name) const { return theDecayParameters(name); }
41 
42  inline bool hasError(void) const { return theDecayParameters.hasError(); }
43 
44  inline double chi2(void) const { return theChi2; }
45 
46  inline bool isValid(void) const { return theValidityFlag; }
47  inline void setInvalid(void) { theValidityFlag = false; }
48 
49  inline double primaryMass(void) const { return thePrimaryMass; }
50  inline double primaryWidth(void) const { return thePrimaryWidth; }
51 
52 private:
54  double theChi2;
58 };
59 
60 #endif
void setInvalid(void)
Definition: TwoBodyDecay.h:47
ParameterName
Define order of parameters.
double thePrimaryMass
Definition: TwoBodyDecay.h:56
~TwoBodyDecay(void)
Definition: TwoBodyDecay.h:29
double operator()(ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:40
double thePrimaryWidth
Definition: TwoBodyDecay.h:57
bool hasError(void) const
Definition: TwoBodyDecay.h:42
double primaryMass(void) const
Definition: TwoBodyDecay.h:49
TwoBodyDecay(void)
Definition: TwoBodyDecay.h:19
const AlgebraicVector & parameters(void) const
Definition: TwoBodyDecay.h:33
const AlgebraicVector & parameters(void) const
Get decay parameters.
double theChi2
Definition: TwoBodyDecay.h:54
const TwoBodyDecayParameters & decayParameters(void) const
Definition: TwoBodyDecay.h:31
double operator[](ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:37
double primaryWidth(void) const
Definition: TwoBodyDecay.h:50
CLHEP::HepVector AlgebraicVector
double chi2(void) const
Definition: TwoBodyDecay.h:44
TwoBodyDecayParameters::ParameterName ParameterName
Definition: TwoBodyDecay.h:17
const AlgebraicSymMatrix & covariance(void) const
Definition: TwoBodyDecay.h:34
TwoBodyDecayParameters theDecayParameters
Definition: TwoBodyDecay.h:53
CLHEP::HepSymMatrix AlgebraicSymMatrix
bool isValid(void) const
Definition: TwoBodyDecay.h:46
const AlgebraicSymMatrix & covariance(void) const
Get error matrix.
bool theValidityFlag
Definition: TwoBodyDecay.h:55
TwoBodyDecay(const TwoBodyDecayParameters &param, double chi2, bool valid, const TwoBodyDecayVirtualMeasurement &vm)
Definition: TwoBodyDecay.h:22