Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:14

0001 #ifndef CondFormatsHcalObjectsHcalTPChannelParameter_h
0002 #define CondFormatsHcalObjectsHcalTPChannelParameter_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 #include <cstdint>
0006 
0007 class HcalTPChannelParameter {
0008 public:
0009   /// get mask for channel validity and self trigger information
0010   uint32_t getMask() const { return mask_; }
0011   /// get FG bit information
0012   uint32_t getFGBitInfo() const { return fgBitInfo_; }
0013   /// get Detector ID
0014   uint32_t rawId() const { return id_; }
0015   int getauxi1() const { return auxi1_; }
0016   int getauxi2() const { return auxi2_; }
0017 
0018   // functions below are not supposed to be used by consumer applications
0019 
0020   HcalTPChannelParameter() : id_(0), mask_(0), fgBitInfo_(0), auxi1_(0), auxi2_(0) {}
0021 
0022   HcalTPChannelParameter(uint32_t fId, uint32_t mask, uint32_t bitInfo, int auxi1 = 0, int auxi2 = 0)
0023       : id_(fId), mask_(mask), fgBitInfo_(bitInfo), auxi1_(auxi1), auxi2_(auxi2) {}
0024 
0025 private:
0026   uint32_t id_;
0027   uint32_t mask_;
0028   uint32_t fgBitInfo_;
0029   int auxi1_;
0030   int auxi2_;
0031 
0032   COND_SERIALIZABLE;
0033 };
0034 
0035 #endif