test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TwoBodyDecay.h
Go to the documentation of this file.
1 #ifndef Alignment_TwoBodyDecay_TwoBodyDecay_h
2 #define Alignment_TwoBodyDecay_TwoBodyDecay_h
3 
6 
17 {
18 
19 public:
20 
22 
23  TwoBodyDecay( void ) :
25  thePrimaryMass( 0. ), thePrimaryWidth( 0. ) {}
26 
27  TwoBodyDecay( const TwoBodyDecayParameters &param, double chi2, bool valid,
28  const TwoBodyDecayVirtualMeasurement &vm ) :
29  theDecayParameters( param ), theChi2( chi2 ), theValidityFlag( valid ),
31 
32  ~TwoBodyDecay( void ) {}
33 
34  inline const TwoBodyDecayParameters & decayParameters( void ) const { return theDecayParameters; }
35 
36  inline const AlgebraicVector & parameters( void ) const { return theDecayParameters.parameters(); }
37  inline const AlgebraicSymMatrix & covariance( void ) const { return theDecayParameters.covariance(); }
38 
40  inline double operator[]( ParameterName name ) const { return theDecayParameters[name]; }
41 
43  inline double operator()( ParameterName name ) const { return theDecayParameters(name); }
44 
45  inline bool hasError( void ) const { return theDecayParameters.hasError(); }
46 
47  inline double chi2( void ) const { return theChi2; }
48 
49  inline bool isValid( void ) const { return theValidityFlag; }
50  inline void setInvalid( void ) { theValidityFlag = false; }
51 
52  inline double primaryMass( void ) const { return thePrimaryMass; }
53  inline double primaryWidth( void ) const { return thePrimaryWidth; }
54 
55  private:
56 
58  double theChi2;
62 
63 };
64 
65 #endif
void setInvalid(void)
Definition: TwoBodyDecay.h:50
ParameterName
Define order of parameters.
bool hasError(void) const
Definition: TwoBodyDecay.h:45
double thePrimaryMass
Definition: TwoBodyDecay.h:60
~TwoBodyDecay(void)
Definition: TwoBodyDecay.h:32
double operator()(ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:43
const AlgebraicVector & parameters(void) const
Get decay parameters.
double thePrimaryWidth
Definition: TwoBodyDecay.h:61
double primaryMass(void) const
Definition: TwoBodyDecay.h:52
TwoBodyDecay(void)
Definition: TwoBodyDecay.h:23
const AlgebraicSymMatrix & covariance(void) const
Definition: TwoBodyDecay.h:37
double theChi2
Definition: TwoBodyDecay.h:58
bool isValid(void) const
Definition: TwoBodyDecay.h:49
CLHEP::HepVector AlgebraicVector
TwoBodyDecayParameters::ParameterName ParameterName
Definition: TwoBodyDecay.h:21
TwoBodyDecayParameters theDecayParameters
Definition: TwoBodyDecay.h:57
double primaryWidth(void) const
Definition: TwoBodyDecay.h:53
double chi2(void) const
Definition: TwoBodyDecay.h:47
double operator[](ParameterName name) const
Get specified decay parameter.
Definition: TwoBodyDecay.h:40
const AlgebraicVector & parameters(void) const
Definition: TwoBodyDecay.h:36
const AlgebraicSymMatrix & covariance(void) const
Get error matrix.
CLHEP::HepSymMatrix AlgebraicSymMatrix
const TwoBodyDecayParameters & decayParameters(void) const
Definition: TwoBodyDecay.h:34
volatile std::atomic< bool > shutdown_flag false
bool theValidityFlag
Definition: TwoBodyDecay.h:59
TwoBodyDecay(const TwoBodyDecayParameters &param, double chi2, bool valid, const TwoBodyDecayVirtualMeasurement &vm)
Definition: TwoBodyDecay.h:27