ATLAS Offline Software
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 
6 class CaloDivision;
7 
9 
10  public:
11 
13  PPM = 0,
14  CPM,
15  JEM,
19  NONE
20  };
21 
32  None
33  };
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
83  int m_etaIdx;
84  int m_phiIdx;
85  double m_etaBinWidth;
86  double m_phiBinWidth;
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
L1CaloDetectorRegion::objectTypeToString
std::string objectTypeToString()
Method to convert the enumerated type 'object' to string.
Definition: L1CaloDetectorRegion.cxx:87
L1CaloDetectorRegion::isEtaPhiDisabled
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...
Definition: L1CaloDetectorRegion.cxx:251
L1CaloDetectorRegion::PPM
@ PPM
Definition: L1CaloDetectorRegion.h:13
L1CaloDetectorRegion::m_phiIdx
int m_phiIdx
phi index
Definition: L1CaloDetectorRegion.h:84
L1CaloDetectorRegion::HadFcal2
@ HadFcal2
Definition: L1CaloDetectorRegion.h:25
L1CaloDetectorRegion::Front
@ Front
Definition: L1CaloDetectorRegion.h:28
L1CaloDetectorRegion::getPhiLetterBit
unsigned int getPhiLetterBit() const
Method to return the bit number of the phi "letter".
Definition: L1CaloDetectorRegion.cxx:198
L1CaloDetectorRegion::getLayer
LayerTypeEnum getLayer() const
Definition: L1CaloDetectorRegion.h:52
L1CaloDetectorRegion::NONE
@ NONE
Definition: L1CaloDetectorRegion.h:19
L1CaloDetectorRegion::getEtaLetterBit
unsigned int getEtaLetterBit() const
Method to return the bit number of the eta "letter".
Definition: L1CaloDetectorRegion.cxx:179
L1CaloDetectorRegion::getEtaMax
double getEtaMax() const
Definition: L1CaloDetectorRegion.h:54
L1CaloDetectorRegion::Back
@ Back
Definition: L1CaloDetectorRegion.h:30
L1CaloDetectorRegion::isCaloDisabled
bool isCaloDisabled(unsigned int caloDivisionsDisabled) const
Method to check this region against patterns of disabled areas: caloDisabled bit pattern of disabled ...
Definition: L1CaloDetectorRegion.cxx:235
L1CaloDetectorRegion::getCaloDivision
CaloDivision getCaloDivision() const
Method to return the calorimeter partition for this region.
Definition: L1CaloDetectorRegion.cxx:140
L1CaloDetectorRegion::layerToString
std::string layerToString()
Method to convert the enumerated type 'layer' to string.
Definition: L1CaloDetectorRegion.cxx:110
L1CaloDetectorRegion::Presampler
@ Presampler
Definition: L1CaloDetectorRegion.h:27
L1CaloDetectorRegion::getValidity
bool getValidity() const
Definition: L1CaloDetectorRegion.h:50
L1CaloDetectorRegion::LayerTypeEnum
LayerTypeEnum
Definition: L1CaloDetectorRegion.h:22
L1CaloDetectorRegion::getEtaCoordinate
double getEtaCoordinate() const
Definition: L1CaloDetectorRegion.h:48
L1CaloDetectorRegion::GFEX
@ GFEX
Definition: L1CaloDetectorRegion.h:18
L1CaloDetectorRegion::Hadronic
@ Hadronic
Definition: L1CaloDetectorRegion.h:24
L1CaloDetectorRegion::operator==
bool operator==(const L1CaloDetectorRegion &rhs)
Definition: L1CaloDetectorRegion.cxx:66
L1CaloDetectorRegion::m_phiMin
double m_phiMin
lower phi bounds of tower
Definition: L1CaloDetectorRegion.h:91
L1CaloDetectorRegion::m_valid
bool m_valid
validity of the mapped channel
Definition: L1CaloDetectorRegion.h:80
L1CaloDetectorRegion::getPhiBinWidth
double getPhiBinWidth() const
Definition: L1CaloDetectorRegion.h:47
L1CaloDetectorRegion::m_etaMax
double m_etaMax
upper eta bounds of tower
Definition: L1CaloDetectorRegion.h:90
L1CaloDetectorRegion::getPhiMax
double getPhiMax() const
Definition: L1CaloDetectorRegion.h:56
L1CaloDetectorRegion::None
@ None
Definition: L1CaloDetectorRegion.h:32
L1CaloDetectorRegion::m_object
ObjectTypeEnum m_object
Definition: L1CaloDetectorRegion.h:78
L1CaloDetectorRegion::~L1CaloDetectorRegion
~L1CaloDetectorRegion()
Definition: L1CaloDetectorRegion.cxx:58
L1CaloDetectorRegion::JEM
@ JEM
Definition: L1CaloDetectorRegion.h:15
L1CaloDetectorRegion::EFEX
@ EFEX
Definition: L1CaloDetectorRegion.h:16
L1CaloDetectorRegion::Electromagnetic
@ Electromagnetic
Definition: L1CaloDetectorRegion.h:23
L1CaloDetectorRegion::getPhiMin
double getPhiMin() const
Definition: L1CaloDetectorRegion.h:55
L1CaloDetectorRegion::getEtaBinWidth
double getEtaBinWidth() const
Definition: L1CaloDetectorRegion.h:46
L1CaloDetectorRegion::m_etaCoord
double m_etaCoord
eta coordinate of the trigger tower
Definition: L1CaloDetectorRegion.h:87
L1CaloDetectorRegion::getEtaMin
double getEtaMin() const
Definition: L1CaloDetectorRegion.h:53
L1CaloDetectorRegion::m_phiMax
double m_phiMax
upper phi bounds of tower
Definition: L1CaloDetectorRegion.h:92
L1CaloDetectorRegion::L1CaloDetectorRegion
L1CaloDetectorRegion()
Definition: L1CaloDetectorRegion.cxx:18
L1CaloDetectorRegion::isDisabled
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 ...
Definition: L1CaloDetectorRegion.cxx:214
L1CaloDetectorRegion::m_phiBinWidth
double m_phiBinWidth
phi granularity
Definition: L1CaloDetectorRegion.h:86
L1CaloDetectorRegion::CPM
@ CPM
Definition: L1CaloDetectorRegion.h:14
L1CaloDetectorRegion::getEtaIndex
int getEtaIndex() const
Definition: L1CaloDetectorRegion.h:44
L1CaloDetectorRegion::m_phiCoord
double m_phiCoord
phi coordinate of the trigger tower
Definition: L1CaloDetectorRegion.h:88
L1CaloDetectorRegion::ObjectTypeEnum
ObjectTypeEnum
Definition: L1CaloDetectorRegion.h:12
L1CaloDetectorRegion
Definition: L1CaloDetectorRegion.h:8
L1CaloDetectorRegion::m_etaBinWidth
double m_etaBinWidth
eta granularity
Definition: L1CaloDetectorRegion.h:85
L1CaloDetectorRegion::getObjectType
ObjectTypeEnum getObjectType() const
Definition: L1CaloDetectorRegion.h:51
L1CaloDetectorRegion::getPhiIndex
int getPhiIndex() const
Definition: L1CaloDetectorRegion.h:45
L1CaloDetectorRegion::HadFcal3
@ HadFcal3
Definition: L1CaloDetectorRegion.h:26
L1CaloDetectorRegion::m_layer
LayerTypeEnum m_layer
Definition: L1CaloDetectorRegion.h:79
L1CaloDetectorRegion::m_etaMin
double m_etaMin
lower eta bounds of tower
Definition: L1CaloDetectorRegion.h:89
L1CaloDetectorRegion::printInfo
void printInfo()
Print the content of the L1CaloDetectorRegion object.
Definition: L1CaloDetectorRegion.cxx:268
L1CaloDetectorRegion::Both
@ Both
Definition: L1CaloDetectorRegion.h:31
L1CaloDetectorRegion::getPhiCoordinate
double getPhiCoordinate() const
Definition: L1CaloDetectorRegion.h:49
L1CaloDetectorRegion::Middle
@ Middle
Definition: L1CaloDetectorRegion.h:29
CaloDivision
Definition: CaloDivision.h:14
L1CaloDetectorRegion::m_etaIdx
int m_etaIdx
eta index
Definition: L1CaloDetectorRegion.h:83
L1CaloDetectorRegion::JFEX
@ JFEX
Definition: L1CaloDetectorRegion.h:17