Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:09

0001 #ifndef CondFormatsHcalObjectsHcalSiPMParameter_h
0002 #define CondFormatsHcalObjectsHcalSiPMParameter_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 #include <cstdint>
0006 
0007 class HcalSiPMParameter {
0008 public:
0009   /// get SiPM type
0010   int getType() const { return type_; }
0011   /// get fcByPE
0012   float getFCByPE() const { return fcByPE_; }
0013   /// get dark current
0014   float getDarkCurrent() const { return darkCurrent_; }
0015 
0016   // functions below are not supposed to be used by consumer applications
0017 
0018   HcalSiPMParameter() : id_(0), type_(0), fcByPE_(0), darkCurrent_(0), auxi1_(0), auxi2_(0) {}
0019 
0020   HcalSiPMParameter(unsigned long fId, int type, float fcByPE, float darkCurrent, int auxi1 = 0, float auxi2 = 0)
0021       : id_(fId), type_(type), fcByPE_(fcByPE), darkCurrent_(darkCurrent), auxi1_(auxi1), auxi2_(auxi2) {}
0022 
0023   uint32_t rawId() const { return id_; }
0024   int getauxi1() const { return auxi1_; }
0025   float getauxi2() const { return auxi2_; }
0026 
0027 private:
0028   uint32_t id_;
0029   int type_;
0030   float fcByPE_;
0031   float darkCurrent_;
0032   int auxi1_;
0033   float auxi2_;
0034 
0035   COND_SERIALIZABLE;
0036 };
0037 
0038 #endif