ATLAS Offline Software
|
#include <L1CaloDetectorRegion.h>
Public Types | |
enum | ObjectTypeEnum { PPM = 0, CPM, JEM, EFEX, JFEX, GFEX, NONE } |
enum | LayerTypeEnum { Electromagnetic = 0, Hadronic, HadFcal2, HadFcal3, Presampler, Front, Middle, Back, Both, None } |
Public Member Functions | |
L1CaloDetectorRegion () | |
L1CaloDetectorRegion (ObjectTypeEnum, LayerTypeEnum, bool, int, int, double, double, double, double) | |
~L1CaloDetectorRegion () | |
bool | operator== (const L1CaloDetectorRegion &rhs) |
int | getEtaIndex () const |
int | getPhiIndex () const |
double | getEtaBinWidth () const |
double | getPhiBinWidth () const |
double | getEtaCoordinate () const |
double | getPhiCoordinate () const |
bool | getValidity () const |
ObjectTypeEnum | getObjectType () const |
LayerTypeEnum | getLayer () const |
double | getEtaMin () const |
double | getEtaMax () const |
double | getPhiMin () const |
double | getPhiMax () const |
std::string | layerToString () |
Method to convert the enumerated type 'layer' to string. More... | |
std::string | objectTypeToString () |
Method to convert the enumerated type 'object' to string. More... | |
CaloDivision | getCaloDivision () const |
Method to return the calorimeter partition for this region. More... | |
unsigned int | getEtaLetterBit () const |
Method to return the bit number of the eta "letter". More... | |
unsigned int | getPhiLetterBit () const |
Method to return the bit number of the phi "letter". More... | |
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 divisions of the calorimeter etaDisabled bit pattern of disabled strips in eta (mainly 0.4) phiDisabled bit pattern of disabled strips in phi (0.4) More... | |
bool | isCaloDisabled (unsigned int caloDivisionsDisabled) const |
Method to check this region against patterns of disabled areas: caloDisabled bit pattern of disabled divisions of the calorimeter. More... | |
bool | isEtaPhiDisabled (unsigned int etaLetterBitsDisabled, unsigned int phiLetterBitsDisabled) const |
Method to check this region against patterns of disabled areas: etaDisabled bit pattern of disabled strips in eta (mainly 0.4) phiDisabled bit pattern of disabled strips in phi (0.4) More... | |
void | printInfo () |
Print the content of the L1CaloDetectorRegion object. More... | |
Private Attributes | |
ObjectTypeEnum | m_object |
LayerTypeEnum | m_layer |
bool | m_valid |
validity of the mapped channel More... | |
int | m_etaIdx |
eta index More... | |
int | m_phiIdx |
phi index More... | |
double | m_etaBinWidth |
eta granularity More... | |
double | m_phiBinWidth |
phi granularity More... | |
double | m_etaCoord |
eta coordinate of the trigger tower More... | |
double | m_phiCoord |
phi coordinate of the trigger tower More... | |
double | m_etaMin |
lower eta bounds of tower More... | |
double | m_etaMax |
upper eta bounds of tower More... | |
double | m_phiMin |
lower phi bounds of tower More... | |
double | m_phiMax |
upper phi bounds of tower More... | |
Simple class to mainly store eta/phi information (indices, granularity, trigger tower coordinates) as determined by the channel mappings classes. Additionally, it stores information about the object and detector layer types (as enumerated types), and about the validity of the mapped channel (as boolean value).
Definition at line 8 of file L1CaloDetectorRegion.h.
Enumerator | |
---|---|
Electromagnetic | |
Hadronic | |
HadFcal2 | |
HadFcal3 | |
Presampler | |
Front | |
Middle | |
Back | |
Both | |
None |
Definition at line 22 of file L1CaloDetectorRegion.h.
L1CaloDetectorRegion::L1CaloDetectorRegion | ( | ) |
Definition at line 18 of file L1CaloDetectorRegion.cxx.
L1CaloDetectorRegion::L1CaloDetectorRegion | ( | ObjectTypeEnum | object, |
LayerTypeEnum | layer, | ||
bool | valid, | ||
int | etaIdx, | ||
int | phiIdx, | ||
double | etaBinWidth, | ||
double | phiBinWidth, | ||
double | etaCoord, | ||
double | phiCoord | ||
) |
Definition at line 33 of file L1CaloDetectorRegion.cxx.
L1CaloDetectorRegion::~L1CaloDetectorRegion | ( | ) |
Definition at line 58 of file L1CaloDetectorRegion.cxx.
CaloDivision L1CaloDetectorRegion::getCaloDivision | ( | ) | const |
Method to return the calorimeter partition for this region.
There are sixteen possibilities, roughly following the TTC partitions in the calorimeters (four Tile, six LAr) but with some extra divisions for the EM barrel/endcap overlap regions and with the FCAL separate from the EMEC and HEC partitions.
Definition at line 140 of file L1CaloDetectorRegion.cxx.
|
inline |
Definition at line 46 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 48 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 44 of file L1CaloDetectorRegion.h.
unsigned int L1CaloDetectorRegion::getEtaLetterBit | ( | ) | const |
Method to return the bit number of the eta "letter".
Here we just use 16 bits which each roughly correspond to a 0.4 strip in eta except towards the endcaps. In contrast to the cabling document which adds non hex letters Z and G to represent the FCAL, here we lump the FCAL in with the neighbouring areas (letters 0 and F). So bits 0,F are +-2.9 to +-4.9, bits 1,E are +-2.4 to +-2.9 and all the rest are regular divisions of 0.4.
Definition at line 179 of file L1CaloDetectorRegion.cxx.
|
inline |
Definition at line 54 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 53 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 52 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 51 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 47 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 49 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 45 of file L1CaloDetectorRegion.h.
unsigned int L1CaloDetectorRegion::getPhiLetterBit | ( | ) | const |
Method to return the bit number of the phi "letter".
The follows the cabling document using hex letters to divide the 64 phi bins into 16 strips of 0.4 each.
Definition at line 198 of file L1CaloDetectorRegion.cxx.
|
inline |
Definition at line 56 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 55 of file L1CaloDetectorRegion.h.
|
inline |
Definition at line 50 of file L1CaloDetectorRegion.h.
bool L1CaloDetectorRegion::isCaloDisabled | ( | unsigned int | caloDivisionsDisabled | ) | const |
Method to check this region against patterns of disabled areas: caloDisabled bit pattern of disabled divisions of the calorimeter.
Definition at line 235 of file L1CaloDetectorRegion.cxx.
bool L1CaloDetectorRegion::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 divisions of the calorimeter etaDisabled bit pattern of disabled strips in eta (mainly 0.4) phiDisabled bit pattern of disabled strips in phi (0.4)
Definition at line 214 of file L1CaloDetectorRegion.cxx.
bool L1CaloDetectorRegion::isEtaPhiDisabled | ( | unsigned int | etaLetterBitsDisabled, |
unsigned int | phiLetterBitsDisabled | ||
) | const |
Method to check this region against patterns of disabled areas: etaDisabled bit pattern of disabled strips in eta (mainly 0.4) phiDisabled bit pattern of disabled strips in phi (0.4)
Definition at line 251 of file L1CaloDetectorRegion.cxx.
std::string L1CaloDetectorRegion::layerToString | ( | ) |
Method to convert the enumerated type 'layer' to string.
Definition at line 110 of file L1CaloDetectorRegion.cxx.
std::string L1CaloDetectorRegion::objectTypeToString | ( | ) |
Method to convert the enumerated type 'object' to string.
Definition at line 87 of file L1CaloDetectorRegion.cxx.
bool L1CaloDetectorRegion::operator== | ( | const L1CaloDetectorRegion & | rhs | ) |
Definition at line 66 of file L1CaloDetectorRegion.cxx.
void L1CaloDetectorRegion::printInfo | ( | ) |
Print the content of the L1CaloDetectorRegion object.
Definition at line 268 of file L1CaloDetectorRegion.cxx.
|
private |
eta granularity
Definition at line 85 of file L1CaloDetectorRegion.h.
|
private |
eta coordinate of the trigger tower
Definition at line 87 of file L1CaloDetectorRegion.h.
|
private |
eta index
Definition at line 83 of file L1CaloDetectorRegion.h.
|
private |
upper eta bounds of tower
Definition at line 90 of file L1CaloDetectorRegion.h.
|
private |
lower eta bounds of tower
Definition at line 89 of file L1CaloDetectorRegion.h.
|
private |
Definition at line 79 of file L1CaloDetectorRegion.h.
|
private |
Definition at line 78 of file L1CaloDetectorRegion.h.
|
private |
phi granularity
Definition at line 86 of file L1CaloDetectorRegion.h.
|
private |
phi coordinate of the trigger tower
Definition at line 88 of file L1CaloDetectorRegion.h.
|
private |
phi index
Definition at line 84 of file L1CaloDetectorRegion.h.
|
private |
upper phi bounds of tower
Definition at line 92 of file L1CaloDetectorRegion.h.
|
private |
lower phi bounds of tower
Definition at line 91 of file L1CaloDetectorRegion.h.
|
private |
validity of the mapped channel
Definition at line 80 of file L1CaloDetectorRegion.h.