Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HcalL1TriggerObject_h
0002 #define HcalL1TriggerObject_h
0003 
0004 /*
0005 \class HcalL1TriggerObject
0006 \author Radek Ofierzynski
0007 
0008 */
0009 
0010 #include "CondFormats/Serialization/interface/Serializable.h"
0011 #include <cstdint>
0012 
0013 class HcalL1TriggerObject {
0014 public:
0015   HcalL1TriggerObject() : mId(0), mAvrgPed(0.), mRespCorrGain(0.), mFlag(0) {}
0016 
0017   HcalL1TriggerObject(unsigned long fId, float fAvrgPed, float fRespCorrGain, unsigned long fFlag = 0)
0018       : mId(fId), mAvrgPed(fAvrgPed), mRespCorrGain(fRespCorrGain), mFlag(fFlag) {}
0019 
0020   uint32_t rawId() const { return mId; }
0021 
0022   float getPedestal() const { return mAvrgPed; }
0023   float getRespGain() const { return mRespCorrGain; }
0024   uint32_t getFlag() const { return mFlag; }
0025 
0026 private:
0027   uint32_t mId;
0028   float mAvrgPed;
0029   float mRespCorrGain;
0030   uint32_t mFlag;
0031 
0032   COND_SERIALIZABLE;
0033 };
0034 
0035 #endif