src
DataFormats
GeometryCommonDetAlgo
interface
Measurement1DFloat.h
Go to the documentation of this file.
1
#ifndef _COMMONDET_MEASUREMENT1DFLOAT_H_
2
#define _COMMONDET_MEASUREMENT1DFLOAT_H_
3
9
class
Measurement1DFloat
{
10
public
:
11
// construct
12
13
Measurement1DFloat
() :
theValue
(0.),
theError
(0.) {}
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
21
~Measurement1DFloat
() {}
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::theValue
float theValue
Definition:
Measurement1DFloat.h:35
Measurement1DFloat::theError
float theError
Definition:
Measurement1DFloat.h:36
Measurement1DFloat::error
float error() const
Definition:
Measurement1DFloat.h:25
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat(const float &aValue)
Definition:
Measurement1DFloat.h:15
Measurement1DFloat::significance
float significance() const
Definition:
Measurement1DFloat.h:27
Measurement1DFloat
Definition:
Measurement1DFloat.h:9
Measurement1DFloat::value
float value() const
Definition:
Measurement1DFloat.h:23
Measurement1DFloat::~Measurement1DFloat
~Measurement1DFloat()
Definition:
Measurement1DFloat.h:21
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat()
Definition:
Measurement1DFloat.h:13
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat(const float &aValue, const float &aError)
Definition:
Measurement1DFloat.h:17
Generated for CMSSW Reference Manual by
1.8.14