Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1TObjects_L1RCTChannelMask_h
0002 #define L1TObjects_L1RCTChannelMask_h
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <ostream>
0006 
0007 struct L1RCTChannelMask {
0008   bool ecalMask[18][2][28];
0009   bool hcalMask[18][2][28];
0010   bool hfMask[18][2][4];
0011   void print(std::ostream& s) const {
0012     s << "Printing record L1RCTChannelMaskRcd " << std::endl;
0013     s << "Masked channels in L1RCTChannelMask" << std::endl;
0014     for (int i = 0; i < 18; i++)
0015       for (int j = 0; j < 2; j++) {
0016         for (int k = 0; k < 28; k++) {
0017           if (ecalMask[i][j][k])
0018             s << "ECAL masked channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0019           if (hcalMask[i][j][k])
0020             s << "HCAL masked channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0021         }
0022         for (int k = 0; k < 4; k++)
0023           if (hfMask[i][j][k])
0024             s << "HF masked channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0025       }
0026   }
0027 
0028   COND_SERIALIZABLE;
0029 };
0030 
0031 #endif