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