CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/L1TObjects/interface/L1RCTChannelMask.h

Go to the documentation of this file.
00001 #ifndef L1TObjects_L1RCTChannelMask_h
00002 #define L1TObjects_L1RCTChannelMask_h
00003 #include <ostream>
00004 
00005 
00006 struct L1RCTChannelMask {
00007 
00008   bool ecalMask[18][2][28];
00009   bool hcalMask[18][2][28];
00010   bool hfMask[18][2][4];
00011   void print(std::ostream& s) const{
00012     s << "Printing record L1RCTChannelMaskRcd " << std::endl;
00013     s << "Masked channels in L1RCTChannelMask" <<std::endl;
00014      for(int i = 0; i< 18; i++)
00015        for(int j =0; j< 2; j++){
00016          for(int k =0; k<28; k++){
00017            if(ecalMask[i][j][k])
00018              s << "ECAL masked channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00019            if(hcalMask[i][j][k])
00020              s << "HCAL masked channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00021          }
00022          for(int k =0; k<4;k++)
00023            if(hfMask[i][j][k])
00024              s << "HF masked channel: RCT crate " << i << " iphi " << j <<" ieta " <<k <<std::endl; 
00025        }
00026 
00027   }
00028 };
00029 
00030 #endif