Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
11
public
:
12
// construct
13
14
Measurement1DFloat
() :
theValue
(0.) ,
theError
(0.) {}
15
16
Measurement1DFloat
(
const
float
& aValue) :
17
theValue
(aValue) ,
theError
(0.) {}
18
19
Measurement1DFloat
(
const
float
& aValue,
const
float
& aError)
20
:
theValue
(aValue) ,
theError
(aError) {}
21
22
//destruct
23
24
~Measurement1DFloat
() {} ;
25
26
float
value
()
const
{
return
theValue
; }
27
28
float
error
()
const
{
return
theError
; }
29
30
float
significance
()
const
{
31
if
(
theError
== 0)
return
0;
32
else
return
theValue
/
theError
;
33
}
34
35
private
:
36
37
float
theValue
;
38
float
theError
;
39
40
};
41
42
43
44
#endif
45
46
47
48
49
50
51
52
53
54
Measurement1DFloat::theValue
float theValue
Definition:
Measurement1DFloat.h:37
Measurement1DFloat::theError
float theError
Definition:
Measurement1DFloat.h:38
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat(const float &aValue)
Definition:
Measurement1DFloat.h:16
Measurement1DFloat::error
float error() const
Definition:
Measurement1DFloat.h:28
Measurement1DFloat::significance
float significance() const
Definition:
Measurement1DFloat.h:30
Measurement1DFloat
Definition:
Measurement1DFloat.h:9
Measurement1DFloat::~Measurement1DFloat
~Measurement1DFloat()
Definition:
Measurement1DFloat.h:24
Measurement1DFloat::value
float value() const
Definition:
Measurement1DFloat.h:26
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat()
Definition:
Measurement1DFloat.h:14
Measurement1DFloat::Measurement1DFloat
Measurement1DFloat(const float &aValue, const float &aError)
Definition:
Measurement1DFloat.h:19
Generated for CMSSW Reference Manual by
1.8.5