CMS 3D CMS Logo

L1GctChannelMask.h
Go to the documentation of this file.
1 #ifndef L1TObjects_L1GctChannelMask_h
2 #define L1TObjects_L1GctChannelMask_h
3 
5 
6 #include <ostream>
7 
9 public:
13 
15  void maskEmCrate(unsigned crate);
16 
18  void maskRegion(unsigned ieta, unsigned iphi);
19 
21  void maskTotalEt(unsigned ieta);
22 
24  void maskMissingEt(unsigned ieta);
25 
27  void maskTotalHt(unsigned ieta);
28 
30  void maskMissingHt(unsigned ieta);
31 
33  bool emCrateMask(unsigned crate) const;
34 
36  bool regionMask(unsigned ieta, unsigned iphi) const;
37 
38  // get total Et masks
39  bool totalEtMask(unsigned ieta) const;
40 
41  // get missing Et masks
42  bool missingEtMask(unsigned ieta) const;
43 
44  // get total Ht masks
45  bool totalHtMask(unsigned ieta) const;
46 
47  // get missing Ht masks
48  bool missingHtMask(unsigned ieta) const;
49 
50 private:
51  bool emCrateMask_[18]; // mask EM from RCT crate[n]
52  bool regionMask_[22][18]; // mask region[ieta][iphi]
53  bool tetMask_[22];
54  bool metMask_[22];
55  bool htMask_[22];
56  bool mhtMask_[22];
57 
59 };
60 
61 std::ostream& operator<<(std::ostream& os, const L1GctChannelMask obj);
62 
63 #endif
bool totalEtMask(unsigned ieta) const
void maskMissingEt(unsigned ieta)
mask eta range from missing Et sum
bool emCrateMask(unsigned crate) const
get EM masks for an RCT crate
void maskEmCrate(unsigned crate)
mask EM candidates from an RCT crate
void maskTotalHt(unsigned ieta)
mask eta range from total Ht sum
L1GctChannelMask()
default constructor sets all masks to false
bool regionMask(unsigned ieta, unsigned iphi) const
get region masks
void maskRegion(unsigned ieta, unsigned iphi)
mask a region
bool totalHtMask(unsigned ieta) const
bool regionMask_[22][18]
bool missingEtMask(unsigned ieta) const
void maskTotalEt(unsigned ieta)
mask eta range from total Et sum
std::ostream & operator<<(std::ostream &os, const L1GctChannelMask obj)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
bool missingHtMask(unsigned ieta) const
void maskMissingHt(unsigned ieta)
mask eta range from missing Ht sum