CMS 3D CMS Logo

L1GctChannelMask.cc

Go to the documentation of this file.
00001 #include "CondFormats/L1TObjects/interface/L1GctChannelMask.h"
00002 
00003 L1GctChannelMask::L1GctChannelMask() {
00004   for (unsigned i=0; i<18; ++i) {
00005     emCrateMask_[i] = false;
00006   }
00007   for (unsigned ieta=0; ieta<22; ++ieta) {
00008     for (unsigned iphi=0; iphi<18; ++iphi) {
00009       regionMask_[ieta][iphi] = false;
00010     }
00011   }
00012 }
00013 
00014 void L1GctChannelMask::maskEmCrate(unsigned crate) {
00015   if (crate < 18) emCrateMask_[crate] = true;
00016 }
00017 
00018 void L1GctChannelMask::maskRegion(unsigned ieta, unsigned iphi) {
00019   if (ieta < 22 && iphi < 18) regionMask_[ieta][iphi] = true;
00020 }
00021 
00022 bool L1GctChannelMask::emCrateMask(unsigned crate) const {
00023   if (crate < 18) { return emCrateMask_[crate]; }
00024   else return true;
00025 }
00026 
00027 bool L1GctChannelMask::regionMask(unsigned ieta, unsigned iphi) const {
00028   if (ieta < 22 && iphi < 18) { return regionMask_[ieta][iphi]; }
00029   else return true;
00030 }

Generated on Tue Jun 9 17:26:38 2009 for CMSSW by  doxygen 1.5.4