CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondFormats/L1TObjects/interface/L1RCTNoisyChannelMask.h

Go to the documentation of this file.
00001 #ifndef L1TObjects_L1RCTNoisyChannelMask_h
00002 #define L1TObjects_L1RCTNoisyChannelMask_h
00003 #include <ostream>
00004 
00005 
00006 struct L1RCTNoisyChannelMask {
00007 
00008   bool ecalMask[18][2][28];
00009   bool hcalMask[18][2][28];
00010   bool hfMask[18][2][4];
00011 
00012   float ecalThreshold;
00013   float hcalThreshold;
00014   float hfThreshold;
00015 
00016 
00017   void print(std::ostream& s) const{
00018     s << "Printing record L1RCTNoisyChannelMaskRcd " << std::endl;
00019 
00020      s << "ECAL noise mask threshold: ecalThreshold" << ecalThreshold << std::endl ;
00021      s << "HCAL noise mask threshold: hcalThreshold" << hcalThreshold << std::endl ;
00022      s << "HF noise mask threshold: hfThreshold" << hfThreshold << std::endl ;
00023     s << "Noisy Masked channels in L1RCTNoisyChannelMask" <<std::endl;
00024      for(int i = 0; i< 18; i++)
00025        for(int j =0; j< 2; j++){
00026          for(int k =0; k<28; k++){
00027            if(ecalMask[i][j][k])
00028              s << "ECAL masked noisy channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00029            if(hcalMask[i][j][k])
00030              s << "HCAL masked noisy channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00031          }
00032          for(int k =0; k<4;k++)
00033            if(hfMask[i][j][k])
00034              s << "HF masked noisy channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00035        }
00036 
00037   }
00038 };
00039 
00040 #endif