CMS 3D CMS Logo

Measurement1D.h
Go to the documentation of this file.
1 #ifndef _COMMONDET_MEASUREMENT1D_H_
2 #define _COMMONDET_MEASUREMENT1D_H_
3 
4 #include <string>
5 
12 
13 public:
14 // construct
15 
16 Measurement1D() : theValue(0.) , theError(0.) {};
17 
18 Measurement1D( const double& aValue) :
19  theValue(aValue) , theError(0.) {};
20 
21 Measurement1D( const double& aValue, const double& aError)
22  : theValue(aValue) , theError(aError) {};
23 
24 //destruct
25 
27 
28 double value() const { return theValue;}
29 
30 double error() const { return theError;}
31 
32 double significance() const {
33  if (theError == 0) return 0;
34  else return theValue/theError;
35 }
36 
37 private:
38 
39 double theValue;
40 double theError;
41 
42 };
43 
44 
45 
46 #endif
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
double error() const
Definition: Measurement1D.h:30
double significance() const
Definition: Measurement1D.h:32
double value() const
Definition: Measurement1D.h:28
Measurement1D(const double &aValue)
Definition: Measurement1D.h:18
Measurement1D(const double &aValue, const double &aError)
Definition: Measurement1D.h:21