Main Page
Namespaces
Classes
Package Documentation
CondFormats
CastorObjects
interface
CastorPedestal.h
Go to the documentation of this file.
1
#ifndef CastorPedestal_h
2
#define CastorPedestal_h
3
13
#include "
CondFormats/Serialization/interface/Serializable.h
"
14
#include <cstdint>
15
16
class
CastorPedestal
{
17
public
:
19
const
float
*
getValues
()
const
{
return
&
mValue0
; }
21
float
getValue
(
int
fCapId)
const
{
return
*(
getValues
() + fCapId); }
22
24
const
float
*
getWidths
()
const
{
return
&
mWidth0
; }
26
float
getWidth
(
int
fCapId)
const
{
return
*(
getWidths
() + fCapId); }
27
28
// functions below are not supposed to be used by consumer applications
29
30
CastorPedestal
()
31
:
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0),
mWidth0
(0),
mWidth1
(0),
mWidth2
(0),
mWidth3
(0) {}
32
33
CastorPedestal
(
unsigned
long
fId,
34
float
fCap0,
35
float
fCap1,
36
float
fCap2,
37
float
fCap3,
38
float
wCap0 = 0,
39
float
wCap1 = 0,
40
float
wCap2 = 0,
41
float
wCap3 = 0)
42
:
mId
(fId),
43
mValue0
(fCap0),
44
mValue1
(fCap1),
45
mValue2
(fCap2),
46
mValue3
(fCap3),
47
mWidth0
(wCap0),
48
mWidth1
(wCap1),
49
mWidth2
(wCap2),
50
mWidth3
(wCap3) {}
51
52
uint32_t
rawId
()
const
{
return
mId
; }
53
54
private
:
55
uint32_t
mId
;
56
float
mValue0
;
57
float
mValue1
;
58
float
mValue2
;
59
float
mValue3
;
60
float
mWidth0
;
61
float
mWidth1
;
62
float
mWidth2
;
63
float
mWidth3
;
64
65
COND_SERIALIZABLE
;
66
};
67
68
#endif
CastorPedestal::rawId
uint32_t rawId() const
Definition:
CastorPedestal.h:52
CastorPedestal::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
CastorPedestal.h:21
CastorPedestal::mWidth1
float mWidth1
Definition:
CastorPedestal.h:61
CastorPedestal::mWidth3
float mWidth3
Definition:
CastorPedestal.h:63
CastorPedestal::mValue3
float mValue3
Definition:
CastorPedestal.h:59
CastorPedestal::getWidth
float getWidth(int fCapId) const
get width for capId = 0..3
Definition:
CastorPedestal.h:26
CastorPedestal::CastorPedestal
CastorPedestal(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3, float wCap0=0, float wCap1=0, float wCap2=0, float wCap3=0)
Definition:
CastorPedestal.h:33
CastorPedestal::mId
uint32_t mId
Definition:
CastorPedestal.h:55
CastorPedestal::mValue1
float mValue1
Definition:
CastorPedestal.h:57
CastorPedestal::mValue2
float mValue2
Definition:
CastorPedestal.h:58
CastorPedestal
Definition:
CastorPedestal.h:16
CastorPedestal::getWidths
const float * getWidths() const
get width for all capId = 0..3
Definition:
CastorPedestal.h:24
CastorPedestal::mValue0
float mValue0
Definition:
CastorPedestal.h:56
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
CastorPedestal::mWidth0
float mWidth0
Definition:
CastorPedestal.h:60
CastorPedestal::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
CastorPedestal.h:19
CastorPedestal::mWidth2
float mWidth2
Definition:
CastorPedestal.h:62
Serializable.h
CastorPedestal::CastorPedestal
CastorPedestal()
Definition:
CastorPedestal.h:30
Generated for CMSSW Reference Manual by
1.8.11