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
TwoBodyDecay::thePrimaryWidth
double thePrimaryWidth
Definition: TwoBodyDecay.h:57
TwoBodyDecay::isValid
bool isValid(void) const
Definition: TwoBodyDecay.h:46
funct::false
false
Definition: Factorize.h:34
TwoBodyDecay::hasError
bool hasError(void) const
Definition: TwoBodyDecay.h:42
TwoBodyDecay::TwoBodyDecay
TwoBodyDecay(void)
Definition: TwoBodyDecay.h:19
TwoBodyDecay::theValidityFlag
bool theValidityFlag
Definition: TwoBodyDecay.h:55
TwoBodyDecay::TwoBodyDecay
TwoBodyDecay(const TwoBodyDecayParameters &param, double chi2, bool valid, const TwoBodyDecayVirtualMeasurement &vm)
Definition: TwoBodyDecay.h:22
TwoBodyDecay::primaryMass
double primaryMass(void) const
Definition: TwoBodyDecay.h:49
TwoBodyDecay::setInvalid
void setInvalid(void)
Definition: TwoBodyDecay.h:47
TwoBodyDecayParameters::parameters
const AlgebraicVector & parameters(void) const
Get decay parameters.
Definition: TwoBodyDecayParameters.h:34
TwoBodyDecay::~TwoBodyDecay
~TwoBodyDecay(void)
Definition: TwoBodyDecay.h:29
validateGeometry_cfg.valid
valid
Definition: validateGeometry_cfg.py:21
TwoBodyDecay::decayParameters
const TwoBodyDecayParameters & decayParameters(void) const
Definition: TwoBodyDecay.h:31
TwoBodyDecayParameters::hasError
bool hasError(void) const
Definition: TwoBodyDecayParameters.h:50
TwoBodyDecayParameters.h
TwoBodyDecay::operator()
double operator()(ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:40
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
TwoBodyDecay::primaryWidth
double primaryWidth(void) const
Definition: TwoBodyDecay.h:50
TwoBodyDecay::parameters
const AlgebraicVector & parameters(void) const
Definition: TwoBodyDecay.h:33
TwoBodyDecayVirtualMeasurement.h
TwoBodyDecay::ParameterName
TwoBodyDecayParameters::ParameterName ParameterName
Definition: TwoBodyDecay.h:17
TwoBodyDecayVirtualMeasurement
Definition: TwoBodyDecayVirtualMeasurement.h:19
TwoBodyDecay::covariance
const AlgebraicSymMatrix & covariance(void) const
Definition: TwoBodyDecay.h:34
TwoBodyDecay::theDecayParameters
TwoBodyDecayParameters theDecayParameters
Definition: TwoBodyDecay.h:53
TwoBodyDecayParameters
Definition: TwoBodyDecayParameters.h:14
TwoBodyDecay::theChi2
double theChi2
Definition: TwoBodyDecay.h:54
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
TwoBodyDecay::operator[]
double operator[](ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:37
TwoBodyDecayParameters::covariance
const AlgebraicSymMatrix & covariance(void) const
Get error matrix.
Definition: TwoBodyDecayParameters.h:37
TwoBodyDecay
Definition: TwoBodyDecay.h:15
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TwoBodyDecay::chi2
double chi2(void) const
Definition: TwoBodyDecay.h:44
TwoBodyDecayParameters::ParameterName
ParameterName
Define order of parameters.
Definition: TwoBodyDecayParameters.h:17
TwoBodyDecay::thePrimaryMass
double thePrimaryMass
Definition: TwoBodyDecay.h:56