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