4 for (
unsigned i = 0;
i < 18; ++
i) {
12 for (
unsigned i = 0;
i < 22; ++
i) {
93 os <<
"L1GctChannelMask :" << std::endl;
96 unsigned emCrateMask(0), tetMask(0), metMask(0), htMask(0), mhtMask(0);
97 for (
unsigned i = 0;
i < 18; ++
i) {
98 emCrateMask |= ((
obj.emCrateMask(
i) ? 1 : 0) <<
i);
101 for (
unsigned i = 0;
i < 22; ++
i) {
102 tetMask |= ((
obj.totalEtMask(
i) ? 1 : 0) <<
i);
103 metMask |= ((
obj.missingEtMask(
i) ? 1 : 0) <<
i);
104 htMask |= ((
obj.totalHtMask(
i) ? 1 : 0) <<
i);
105 mhtMask |= ((
obj.missingHtMask(
i) ? 1 : 0) <<
i);
108 os <<
" EM crate mask = " << std::hex << emCrateMask << std::endl;
109 os <<
" EtTot mask = " << std::hex << tetMask << std::endl;
110 os <<
" EtMiss mask = " << std::hex << metMask << std::endl;
111 os <<
" HtTot mask = " << std::hex << htMask << std::endl;
112 os <<
" HtMiss mask = " << std::hex << mhtMask << std::endl;
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 missingEtMask(unsigned ieta) const
void maskTotalEt(unsigned ieta)
mask eta range from total Et sum
bool missingHtMask(unsigned ieta) const
void maskMissingHt(unsigned ieta)
mask eta range from missing Ht sum
std::ostream & operator<<(std::ostream &os, const L1GctChannelMask obj)