test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
15
#include <boost/cstdint.hpp>
16
17
class
CastorPedestal
{
18
public
:
20
const
float
*
getValues
()
const
{
return
&
mValue0
;}
22
float
getValue
(
int
fCapId)
const
{
return
*(
getValues
() + fCapId);}
23
25
const
float
*
getWidths
()
const
{
return
&
mWidth0
;}
27
float
getWidth
(
int
fCapId)
const
{
return
*(
getWidths
() + fCapId);}
28
29
// functions below are not supposed to be used by consumer applications
30
31
CastorPedestal
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0),
32
mWidth0
(0),
mWidth1
(0),
mWidth2
(0),
mWidth3
(0) {}
33
34
CastorPedestal
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3,
35
float
wCap0 = 0,
float
wCap1 = 0,
float
wCap2 = 0,
float
wCap3 = 0) :
36
mId
(fId),
mValue0
(fCap0),
mValue1
(fCap1),
mValue2
(fCap2),
mValue3
(fCap3),
37
mWidth0
(wCap0),
mWidth1
(wCap1),
mWidth2
(wCap2),
mWidth3
(wCap3) {}
38
39
uint32_t
rawId
()
const
{
return
mId
;}
40
private
:
41
uint32_t
mId
;
42
float
mValue0
;
43
float
mValue1
;
44
float
mValue2
;
45
float
mValue3
;
46
float
mWidth0
;
47
float
mWidth1
;
48
float
mWidth2
;
49
float
mWidth3
;
50
51
COND_SERIALIZABLE
;
52
};
53
54
#endif
CastorPedestal::rawId
uint32_t rawId() const
Definition:
CastorPedestal.h:39
CastorPedestal::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
CastorPedestal.h:22
CastorPedestal::mWidth1
float mWidth1
Definition:
CastorPedestal.h:47
CastorPedestal::mWidth3
float mWidth3
Definition:
CastorPedestal.h:49
CastorPedestal::mValue3
float mValue3
Definition:
CastorPedestal.h:45
CastorPedestal::getWidth
float getWidth(int fCapId) const
get width for capId = 0..3
Definition:
CastorPedestal.h:27
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:34
CastorPedestal::mId
uint32_t mId
Definition:
CastorPedestal.h:41
CastorPedestal::mValue1
float mValue1
Definition:
CastorPedestal.h:43
CastorPedestal::mValue2
float mValue2
Definition:
CastorPedestal.h:44
CastorPedestal
Definition:
CastorPedestal.h:17
CastorPedestal::getWidths
const float * getWidths() const
get width for all capId = 0..3
Definition:
CastorPedestal.h:25
CastorPedestal::mValue0
float mValue0
Definition:
CastorPedestal.h:42
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:30
CastorPedestal::mWidth0
float mWidth0
Definition:
CastorPedestal.h:46
CastorPedestal::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
CastorPedestal.h:20
CastorPedestal::mWidth2
float mWidth2
Definition:
CastorPedestal.h:48
Serializable.h
CastorPedestal::CastorPedestal
CastorPedestal()
Definition:
CastorPedestal.h:31
Generated for CMSSW Reference Manual by
1.8.5