CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondFormats/L1TObjects/interface/L1GctChannelMask.h

Go to the documentation of this file.
00001 #ifndef L1TObjects_L1GctChannelMask_h
00002 #define L1TObjects_L1GctChannelMask_h
00003 
00004 #include <ostream>
00005 
00006 class L1GctChannelMask {
00007  public:
00008   
00010   L1GctChannelMask();
00011   ~L1GctChannelMask() {}
00012 
00014   void maskEmCrate(unsigned crate);
00015 
00017   void maskRegion(unsigned ieta, unsigned iphi);
00018 
00020   void maskTotalEt(unsigned ieta);
00021 
00023   void maskMissingEt(unsigned ieta);
00024 
00026   void maskTotalHt(unsigned ieta);
00027 
00029   void maskMissingHt(unsigned ieta);
00030 
00032   bool emCrateMask(unsigned crate) const;
00033 
00035   bool regionMask(unsigned ieta, unsigned iphi) const;
00036 
00037   // get total Et masks
00038   bool totalEtMask(unsigned ieta) const;
00039 
00040   // get missing Et masks
00041   bool missingEtMask(unsigned ieta) const;
00042 
00043   // get total Ht masks
00044   bool totalHtMask(unsigned ieta) const;
00045 
00046   // get missing Ht masks
00047   bool missingHtMask(unsigned ieta) const;
00048 
00049  private:
00050   bool emCrateMask_[18];     // mask EM from RCT crate[n]
00051   bool regionMask_[22][18];  // mask region[ieta][iphi]
00052   bool tetMask_[22];
00053   bool metMask_[22];
00054   bool htMask_[22];
00055   bool mhtMask_[22];
00056 
00057 };
00058 
00059 std::ostream& operator << (std::ostream& os, const L1GctChannelMask obj);
00060 
00061 #endif
00062 
00063