ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloDetectorRegion.h
Go to the documentation of this file.
1#ifndef L1CALO_DETECTOR_REGION_H
2#define L1CALO_DETECTOR_REGION_H
3
4#include <string>
5
6class CaloDivision;
7
9
10 public:
11
21
34
35 // Constructors
37 L1CaloDetectorRegion (ObjectTypeEnum, LayerTypeEnum, bool, int, int, double, double, double, double);
38 // Destructor
40
41 bool operator==( const L1CaloDetectorRegion& rhs );
42
43 // get methods
44 int getEtaIndex () const {return m_etaIdx;};
45 int getPhiIndex () const {return m_phiIdx;};
46 double getEtaBinWidth () const {return m_etaBinWidth;};
47 double getPhiBinWidth () const {return m_phiBinWidth;};
48 double getEtaCoordinate () const {return m_etaCoord;};
49 double getPhiCoordinate () const {return m_phiCoord;};
50 bool getValidity () const {return m_valid;};
52 LayerTypeEnum getLayer() const { return m_layer; }
53 double getEtaMin() const { return m_etaMin; }
54 double getEtaMax() const { return m_etaMax; }
55 double getPhiMin() const { return m_phiMin; }
56 double getPhiMax() const { return m_phiMax; }
57
58 // methods to convert enums to strings
59 std::string layerToString();
60 std::string objectTypeToString();
61
62 // check region against patterns of disabled areas
64 unsigned int getEtaLetterBit() const;
65 unsigned int getPhiLetterBit() const;
66 bool isDisabled(unsigned int caloDivisionsDisabled,
67 unsigned int etaLetterBitsDisabled,
68 unsigned int phiLetterBitsDisabled) const;
69 bool isCaloDisabled(unsigned int caloDivisionsDisabled) const;
70 bool isEtaPhiDisabled(unsigned int etaLetterBitsDisabled,
71 unsigned int phiLetterBitsDisabled) const;
72
73 void printInfo ();
74
75 private:
76
77 // data members
80 bool m_valid;
81
82 // eta-phi coordinates
87 double m_etaCoord;
88 double m_phiCoord;
89 double m_etaMin;
90 double m_etaMax;
91 double m_phiMin;
92 double m_phiMax;
93};
94
95#endif // L1CALO_DETECTOR_REGION_H
Simple class to mainly store eta/phi information (indices, granularity, trigger tower coordinates) as...
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
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
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