91 case PPM:
object =
"PPM";
break;
92 case CPM:
object =
"CPM";
break;
93 case JEM:
object =
"JEM";
break;
94 case EFEX:
object =
"EFEX";
break;
95 case JFEX:
object =
"JFEX";
break;
96 case GFEX:
object =
"GFEX";
break;
97 case NONE:
object =
"NONE";
break;
115 case Hadronic: layer =
"Hadronic";
break;
116 case HadFcal2: layer =
"HadFcal2";
break;
117 case HadFcal3: layer =
"HadFcal3";
break;
119 case Front: layer =
"Front";
break;
120 case Middle: layer =
"Middle";
break;
121 case Back: layer =
"Back";
break;
122 case Both: layer =
"Both";
break;
123 case None: layer =
"None";
break;
180 unsigned int bit = 16;
182 else if (
m_etaIdx < -24) { bit = 1; }
183 else if (
m_etaIdx >= 29) { bit = 15; }
184 else if (
m_etaIdx >= 24) { bit = 14; }
185 else { bit = ((
m_etaIdx + 24) / 4) + 2; }
199 unsigned int bit = 16;
215 unsigned int etaLetterBitsDisabled,
216 unsigned int phiLetterBitsDisabled)
const {
221 bool ret = (((1 << caloBit) & caloDivisionsDisabled) != 0) ||
222 (((1 << etaBit) & etaLetterBitsDisabled) != 0) ||
223 (((1 << phiBit) & phiLetterBitsDisabled) != 0);
238 bool ret = (((1 << caloBit) & caloDivisionsDisabled) != 0);
252 unsigned int phiLetterBitsDisabled)
const {
256 bool ret = (((1 << etaBit) & etaLetterBitsDisabled) != 0) ||
257 (((1 << phiBit) & phiLetterBitsDisabled) != 0);
272 std::cout <<
" Valid Channel: "
284 std::cout << std::endl;
CaloDivisionEnum getEnum() const
void printInfo()
Print the content of the L1CaloDetectorRegion object.
double m_etaMin
lower eta bounds of tower
CaloDivision getCaloDivision() const
Method to return the calorimeter partition for this region.
double getEtaCoordinate() const
ObjectTypeEnum getObjectType() const
double m_phiMax
upper phi bounds of tower
bool isEtaPhiDisabled(unsigned int etaLetterBitsDisabled, unsigned int phiLetterBitsDisabled) const
Method to check this region against patterns of disabled areas: etaDisabled bit pattern of disabled s...
std::string layerToString()
Method to convert the enumerated type 'layer' to string.
unsigned int getPhiLetterBit() const
Method to return the bit number of the phi "letter".
bool m_valid
validity of the mapped channel
double m_etaBinWidth
eta granularity
double getEtaBinWidth() const
LayerTypeEnum getLayer() const
unsigned int getEtaLetterBit() const
Method to return the bit number of the eta "letter".
double m_etaCoord
eta coordinate of the trigger tower
double m_phiMin
lower phi bounds of tower
bool operator==(const L1CaloDetectorRegion &rhs)
std::string objectTypeToString()
Method to convert the enumerated type 'object' to string.
double m_phiCoord
phi coordinate of the trigger tower
double m_etaMax
upper eta bounds of tower
double getPhiBinWidth() const
bool isCaloDisabled(unsigned int caloDivisionsDisabled) const
Method to check this region against patterns of disabled areas: caloDisabled bit pattern of disabled ...
double m_phiBinWidth
phi granularity
bool isDisabled(unsigned int caloDivisionsDisabled, unsigned int etaLetterBitsDisabled, unsigned int phiLetterBitsDisabled) const
Method to check this region against patterns of disabled areas: caloDisabled bit pattern of disabled ...
double getPhiCoordinate() const