Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1TObjects_L1RCTNoisyChannelMask_h
0002 #define L1TObjects_L1RCTNoisyChannelMask_h
0003 #include "CondFormats/Serialization/interface/Serializable.h"
0004 
0005 #include <ostream>
0006 
0007 struct L1RCTNoisyChannelMask {
0008   bool ecalMask[18][2][28];
0009   bool hcalMask[18][2][28];
0010   bool hfMask[18][2][4];
0011 
0012   float ecalThreshold;
0013   float hcalThreshold;
0014   float hfThreshold;
0015 
0016   void print(std::ostream& s) const {
0017     s << "Printing record L1RCTNoisyChannelMaskRcd " << std::endl;
0018 
0019     s << "ECAL noise mask threshold: ecalThreshold" << ecalThreshold << std::endl;
0020     s << "HCAL noise mask threshold: hcalThreshold" << hcalThreshold << std::endl;
0021     s << "HF noise mask threshold: hfThreshold" << hfThreshold << std::endl;
0022     s << "Noisy Masked channels in L1RCTNoisyChannelMask" << std::endl;
0023     for (int i = 0; i < 18; i++)
0024       for (int j = 0; j < 2; j++) {
0025         for (int k = 0; k < 28; k++) {
0026           if (ecalMask[i][j][k])
0027             s << "ECAL masked noisy channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0028           if (hcalMask[i][j][k])
0029             s << "HCAL masked noisy channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0030         }
0031         for (int k = 0; k < 4; k++)
0032           if (hfMask[i][j][k])
0033             s << "HF masked noisy channel: RCT crate " << i << " iphi " << j << " ieta " << k << std::endl;
0034       }
0035   }
0036 
0037   COND_SERIALIZABLE;
0038 };
0039 
0040 #endif