Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
GeometryCommonDetAlgo
interface
Measurement1D.h
Go to the documentation of this file.
1
#ifndef _COMMONDET_MEASUREMENT1D_H_
2
#define _COMMONDET_MEASUREMENT1D_H_
3
4
#include <string>
5
11
class
Measurement1D
{
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
26
~Measurement1D
() {} ;
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
Measurement1D::Measurement1D
Measurement1D()
Definition:
Measurement1D.h:16
Measurement1D::error
double error() const
Definition:
Measurement1D.h:30
Measurement1D::~Measurement1D
~Measurement1D()
Definition:
Measurement1D.h:26
Measurement1D::theError
double theError
Definition:
Measurement1D.h:40
Measurement1D::significance
double significance() const
Definition:
Measurement1D.h:32
Measurement1D::value
double value() const
Definition:
Measurement1D.h:28
Measurement1D
Definition:
Measurement1D.h:11
Measurement1D::Measurement1D
Measurement1D(const double &aValue)
Definition:
Measurement1D.h:18
Measurement1D::Measurement1D
Measurement1D(const double &aValue, const double &aError)
Definition:
Measurement1D.h:21
Measurement1D::theValue
double theValue
Definition:
Measurement1D.h:39
Generated for CMSSW Reference Manual by
1.8.11