CMS 3D CMS Logo

HcalSiPMParameter.h
Go to the documentation of this file.
1 #ifndef CondFormatsHcalObjectsHcalSiPMParameter_h
2 #define CondFormatsHcalObjectsHcalSiPMParameter_h
3 
5 #include <cstdint>
6 
8 public:
10  int getType() const { return type_; }
12  float getFCByPE() const { return fcByPE_; }
14  float getDarkCurrent() const { return darkCurrent_; }
15 
16  // functions below are not supposed to be used by consumer applications
17 
19 
20  HcalSiPMParameter(unsigned long fId, int type, float fcByPE, float darkCurrent, int auxi1 = 0, float auxi2 = 0)
21  : id_(fId), type_(type), fcByPE_(fcByPE), darkCurrent_(darkCurrent), auxi1_(auxi1), auxi2_(auxi2) {}
22 
23  uint32_t rawId() const { return id_; }
24  int getauxi1() const { return auxi1_; }
25  float getauxi2() const { return auxi2_; }
26 
27 private:
28  uint32_t id_;
29  int type_;
30  float fcByPE_;
31  float darkCurrent_;
32  int auxi1_;
33  float auxi2_;
34 
36 };
37 
38 #endif
HcalSiPMParameter::HcalSiPMParameter
HcalSiPMParameter(unsigned long fId, int type, float fcByPE, float darkCurrent, int auxi1=0, float auxi2=0)
Definition: HcalSiPMParameter.h:20
HcalSiPMParameter::getFCByPE
float getFCByPE() const
get fcByPE
Definition: HcalSiPMParameter.h:12
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
HcalSiPMParameter::getDarkCurrent
float getDarkCurrent() const
get dark current
Definition: HcalSiPMParameter.h:14
HcalSiPMParameter::rawId
uint32_t rawId() const
Definition: HcalSiPMParameter.h:23
HcalSiPMParameter::type_
int type_
Definition: HcalSiPMParameter.h:29
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
HcalSiPMParameter::darkCurrent_
float darkCurrent_
Definition: HcalSiPMParameter.h:31
Serializable.h
HcalSiPMParameter::getType
int getType() const
get SiPM type
Definition: HcalSiPMParameter.h:10
HcalSiPMParameter::id_
uint32_t id_
Definition: HcalSiPMParameter.h:28
HcalSiPMParameter::fcByPE_
float fcByPE_
Definition: HcalSiPMParameter.h:30
HcalSiPMParameter::getauxi2
float getauxi2() const
Definition: HcalSiPMParameter.h:25
HcalSiPMParameter::HcalSiPMParameter
HcalSiPMParameter()
Definition: HcalSiPMParameter.h:18
HcalSiPMParameter::auxi1_
int auxi1_
Definition: HcalSiPMParameter.h:32
HcalSiPMParameter::getauxi1
int getauxi1() const
Definition: HcalSiPMParameter.h:24
HcalSiPMParameter::auxi2_
float auxi2_
Definition: HcalSiPMParameter.h:33
HcalSiPMParameter
Definition: HcalSiPMParameter.h:7