CondFormats
EcalObjects
interface
EcalPedestals.h
Go to the documentation of this file.
1
#ifndef EcalPedestals_h
2
#define EcalPedestals_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include "
CondFormats/EcalObjects/interface/EcalCondObjectContainer.h
"
7
8
struct
EcalPedestal
{
9
EcalPedestal
() :
mean_x12
(0),
rms_x12
(0),
mean_x6
(0),
rms_x6
(0),
mean_x1
(0),
rms_x1
(0) {}
10
11
struct
Zero
{
12
Zero
() :
z1
(0),
z2
(0) {}
13
float
z1
;
14
float
z2
;
15
};
16
17
static
const
Zero
zero
;
18
19
float
mean_x12
;
20
float
rms_x12
;
21
float
mean_x6
;
22
float
rms_x6
;
23
float
mean_x1
;
24
float
rms_x1
;
25
26
public
:
27
float
const
*
mean_rms
(
int
i
)
const
{
28
if
(
i
== 0)
29
return
&
zero
.
z1
;
30
return
(&
mean_x12
) + (2 * (
i
- 1));
31
}
32
33
float
mean
(
int
i
)
const
{
34
if
(
i
== 0)
35
return
0.;
36
return
*(&
mean_x12
+ (2 * (
i
- 1)));
37
}
38
39
float
rms
(
int
i
)
const
{
40
if
(
i
== 0)
41
return
0.;
42
return
*(&
rms_x12
+ (2 * (
i
- 1)));
43
}
44
45
COND_SERIALIZABLE
;
46
};
47
48
typedef
EcalCondObjectContainer<EcalPedestal>
EcalPedestalsMap
;
49
typedef
EcalPedestalsMap::const_iterator
EcalPedestalsMapIterator
;
50
typedef
EcalPedestalsMap
EcalPedestals
;
51
52
#endif
mps_fire.i
i
Definition:
mps_fire.py:428
EcalPedestal::mean_x6
float mean_x6
Definition:
EcalPedestals.h:21
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
EcalPedestal::rms
float rms(int i) const
Definition:
EcalPedestals.h:39
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
EcalCondObjectContainer.h
EcalPedestal::mean_x1
float mean_x1
Definition:
EcalPedestals.h:23
EcalPedestalsMap
EcalCondObjectContainer< EcalPedestal > EcalPedestalsMap
Definition:
EcalPedestals.h:48
EcalPedestal::mean_x12
float mean_x12
Definition:
EcalPedestals.h:19
EcalPedestal::zero
static const Zero zero
Definition:
EcalPedestals.h:17
EcalPedestal::rms_x12
float rms_x12
Definition:
EcalPedestals.h:20
EcalPedestals
EcalPedestalsMap EcalPedestals
Definition:
EcalPedestals.h:50
EcalPedestal::Zero::z1
float z1
Definition:
EcalPedestals.h:13
EcalPedestal::Zero
Definition:
EcalPedestals.h:11
EcalPedestalsMapIterator
EcalPedestalsMap::const_iterator EcalPedestalsMapIterator
Definition:
EcalPedestals.h:49
Serializable.h
EcalPedestal::rms_x1
float rms_x1
Definition:
EcalPedestals.h:24
EcalPedestal
Definition:
EcalPedestals.h:8
EcalPedestal::EcalPedestal
EcalPedestal()
Definition:
EcalPedestals.h:9
EcalPedestal::mean_rms
float const * mean_rms(int i) const
Definition:
EcalPedestals.h:27
EcalCondObjectContainer::const_iterator
std::vector< Item >::const_iterator const_iterator
Definition:
EcalCondObjectContainer.h:19
EcalPedestal::mean
float mean(int i) const
Definition:
EcalPedestals.h:33
EcalPedestal::rms_x6
float rms_x6
Definition:
EcalPedestals.h:22
EcalPedestal::Zero::Zero
Zero()
Definition:
EcalPedestals.h:12
EcalPedestal::Zero::z2
float z2
Definition:
EcalPedestals.h:14
Generated for CMSSW Reference Manual by
1.8.16