CMS 3D CMS Logo

Measurement1DFloat.h
Go to the documentation of this file.
1 #ifndef _COMMONDET_MEASUREMENT1DFLOAT_H_
2 #define _COMMONDET_MEASUREMENT1DFLOAT_H_
3 
10 public:
11  // construct
12 
14 
15  Measurement1DFloat(const float& aValue) : theValue(aValue), theError(0.) {}
16 
17  Measurement1DFloat(const float& aValue, const float& aError) : theValue(aValue), theError(aError) {}
18 
19  //destruct
20 
22 
23  float value() const { return theValue; }
24 
25  float error() const { return theError; }
26 
27  float significance() const {
28  if (theError == 0)
29  return 0;
30  else
31  return theValue / theError;
32  }
33 
34 private:
35  float theValue;
36  float theError;
37 };
38 
39 #endif
Measurement1DFloat(const float &aValue)
float significance() const
Measurement1DFloat(const float &aValue, const float &aError)