Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
CastorObjects
interface
CastorGainWidth.h
Go to the documentation of this file.
1
#ifndef CastorGainWidth_h
2
#define CastorGainWidth_h
3
9
#include "
CondFormats/Serialization/interface/Serializable.h
"
10
11
#include <boost/cstdint.hpp>
12
13
class
CastorGainWidth
{
14
public
:
16
const
float
*
getValues
()
const
{
return
&
mValue0
;}
18
float
getValue
(
int
fCapId)
const
{
return
*(
getValues
() + fCapId);}
19
20
// functions below are not supposed to be used by consumer applications
21
22
CastorGainWidth
() :
mId
(0),
mValue0
(0),
mValue1
(0),
mValue2
(0),
mValue3
(0) {}
23
24
CastorGainWidth
(
unsigned
long
fId,
float
fCap0,
float
fCap1,
float
fCap2,
float
fCap3) :
25
mId
(fId),
26
mValue0
(fCap0),
27
mValue1
(fCap1),
28
mValue2
(fCap2),
29
mValue3
(fCap3) {}
30
31
uint32_t
rawId
()
const
{
return
mId
;}
32
33
private
:
34
uint32_t
mId
;
35
float
mValue0
;
36
float
mValue1
;
37
float
mValue2
;
38
float
mValue3
;
39
40
COND_SERIALIZABLE
;
41
};
42
43
#endif
CastorGainWidth::CastorGainWidth
CastorGainWidth()
Definition:
CastorGainWidth.h:22
CastorGainWidth::getValue
float getValue(int fCapId) const
get value for capId = 0..3
Definition:
CastorGainWidth.h:18
CastorGainWidth::mId
uint32_t mId
Definition:
CastorGainWidth.h:34
CastorGainWidth::rawId
uint32_t rawId() const
Definition:
CastorGainWidth.h:31
CastorGainWidth::mValue1
float mValue1
Definition:
CastorGainWidth.h:36
CastorGainWidth
Definition:
CastorGainWidth.h:13
CastorGainWidth::getValues
const float * getValues() const
get value for all capId = 0..3
Definition:
CastorGainWidth.h:16
CastorGainWidth::mValue3
float mValue3
Definition:
CastorGainWidth.h:38
Serializable.h
CastorGainWidth::mValue2
float mValue2
Definition:
CastorGainWidth.h:37
CastorGainWidth::mValue0
float mValue0
Definition:
CastorGainWidth.h:35
CastorGainWidth::COND_SERIALIZABLE
COND_SERIALIZABLE
Definition:
CastorGainWidth.h:40
CastorGainWidth::CastorGainWidth
CastorGainWidth(unsigned long fId, float fCap0, float fCap1, float fCap2, float fCap3)
Definition:
CastorGainWidth.h:24
Generated for CMSSW Reference Manual by
1.8.5