4 for (
unsigned i=0;
i<18; ++
i) {
7 for (
unsigned ieta=0; ieta<22; ++ieta) {
8 for (
unsigned iphi=0; iphi<18; ++iphi) {
12 for (
unsigned i=0;
i<22; ++
i) {
27 if (ieta < 22 && iphi < 18)
regionMask_[ieta][iphi] =
true;
32 if (ieta < 22)
tetMask_[ieta] =
true;
37 if (ieta < 22)
metMask_[ieta] =
true;
42 if (ieta < 22)
htMask_[ieta] =
true;
47 if (ieta < 22)
mhtMask_[ieta] =
true;
58 if (ieta < 22 && iphi < 18) {
return regionMask_[ieta][iphi]; }
64 if (ieta < 22)
return tetMask_[ieta];
70 if (ieta < 22)
return metMask_[ieta];
76 if (ieta < 22)
return htMask_[ieta];
82 if (ieta < 22)
return mhtMask_[ieta];
87 os <<
"L1GctChannelMask :" << std::endl;
90 unsigned emCrateMask(0), tetMask(0), metMask(0), htMask(0), mhtMask(0);
91 for (
unsigned i=0;
i<18; ++
i) {
95 for (
unsigned i=0;
i<22; ++
i) {
102 os <<
" EM crate mask = " << std::hex <<
emCrateMask << std::endl;
103 os <<
" EtTot mask = " << std::hex << tetMask << std::endl;
104 os <<
" EtMiss mask = " << std::hex << metMask << std::endl;
105 os <<
" HtTot mask = " << std::hex << htMask << std::endl;
106 os <<
" HtMiss mask = " << std::hex << mhtMask << std::endl;
108 for (
unsigned ieta=0; ieta<22; ++ieta) {
109 for (
unsigned iphi=0; iphi<18; ++iphi) {
111 os <<
" Region mask : " <<
std::dec << ieta <<
", " << iphi << std::endl;
void maskMissingEt(unsigned ieta)
mask eta range from missing Et sum
bool totalHtMask(unsigned ieta) const
bool missingHtMask(unsigned ieta) const
void maskEmCrate(unsigned crate)
mask EM candidates from an RCT crate
bool emCrateMask(unsigned crate) const
get EM masks for an RCT crate
bool regionMask(unsigned ieta, unsigned iphi) const
get region masks
void maskTotalHt(unsigned ieta)
mask eta range from total Ht sum
L1GctChannelMask()
default constructor sets all masks to false
void maskRegion(unsigned ieta, unsigned iphi)
mask a region
void maskTotalEt(unsigned ieta)
mask eta range from total Et sum
bool totalEtMask(unsigned ieta) const
void maskMissingHt(unsigned ieta)
mask eta range from missing Ht sum
bool missingEtMask(unsigned ieta) const
std::ostream & operator<<(std::ostream &os, const L1GctChannelMask obj)