Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:00

0001 #ifndef __INTTHOTMAP_H__
0002 #define __INTTHOTMAP_H__
0003 
0004 #include <vector>
0005 
0006 class InttHotMap {
0007   public:
0008     InttHotMap() : fail_counter_(0), debug_(false) {}
0009     virtual ~InttHotMap() {}
0010 
0011     bool Readfile(const char* hotfile);
0012     void setDebug(bool flag) { debug_ = flag; }
0013 
0014     bool isHot(unsigned int felix, unsigned int ladder, unsigned int chip, unsigned int channel);
0015 
0016   class hotchannel {
0017     public:
0018       hotchannel(unsigned int Felix, unsigned int Ladder, unsigned int Chip, unsigned int Channel):
0019        felix(Felix), ladder(Ladder), chip(Chip), channel(Channel)
0020        {}
0021 
0022       unsigned int felix;  // 0-7
0023       unsigned int ladder; // 0-13
0024       unsigned int chip;   // 0-25
0025       unsigned int channel;// 0-127
0026   };
0027 
0028   private:
0029     std::vector<hotchannel> vHot;
0030 
0031     int fail_counter_;
0032     bool debug_;
0033 };
0034 
0035 #endif