Main Page
Namespaces
Classes
Package Documentation
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
public
:
13
// construct
14
15
Measurement1D
() :
theValue
(0.),
theError
(0.){};
16
17
Measurement1D
(
const
double
& aValue) :
theValue
(aValue),
theError
(0.){};
18
19
Measurement1D
(
const
double
& aValue,
const
double
& aError) :
theValue
(aValue),
theError
(aError){};
20
21
//destruct
22
23
~Measurement1D
(){};
24
25
double
value
()
const
{
return
theValue
; }
26
27
double
error
()
const
{
return
theError
; }
28
29
double
significance
()
const
{
30
if
(
theError
== 0)
31
return
0;
32
else
33
return
theValue
/
theError
;
34
}
35
36
private
:
37
double
theValue
;
38
double
theError
;
39
};
40
41
#endif
Measurement1D::Measurement1D
Measurement1D()
Definition:
Measurement1D.h:15
Measurement1D::error
double error() const
Definition:
Measurement1D.h:27
Measurement1D::~Measurement1D
~Measurement1D()
Definition:
Measurement1D.h:23
Measurement1D::theError
double theError
Definition:
Measurement1D.h:38
Measurement1D::significance
double significance() const
Definition:
Measurement1D.h:29
Measurement1D::value
double value() const
Definition:
Measurement1D.h:25
Measurement1D
Definition:
Measurement1D.h:11
Measurement1D::Measurement1D
Measurement1D(const double &aValue)
Definition:
Measurement1D.h:17
Measurement1D::Measurement1D
Measurement1D(const double &aValue, const double &aError)
Definition:
Measurement1D.h:19
Measurement1D::theValue
double theValue
Definition:
Measurement1D.h:37
Generated for CMSSW Reference Manual by
1.8.11