ATLAS Offline Software
Loading...
Searching...
No Matches
LArFCAL_region.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARFCAL_REGION_H
6#define LARFCAL_REGION_H
7
8#include <vector>
9
10 enum { NOT_VALID_FCAL_REGION = 63 };
11
18
20{
21public:
22
23 LArFCAL_region(void);
24
25 LArFCAL_region(unsigned int& minHash, short int& nbEtaBins, short int& nPhi,
26 float minEta, float granulEta, float minPhi, float granulPhi, bool fullSym,
27 short int& prevEtaSamp, short int& nextEtaSamp);
28
29 ~LArFCAL_region(void) = default;
30
32 short int numberOfEta() const;
33
35 short int phiN() const;
36
38 float etaGranularity() const;
39
41 float phiGranularity() const;
42
44 bool fullTwoPi() const;
45
47 float etaMin() const;
48
50 float etaMax() const;
51
53 float phiMin() const;
54
56 float phiMax() const;
57
59 unsigned int hashMin() const;
60
62 unsigned int hashMax() const;
63
65 bool isEtaMin(const unsigned int& index) const;
66
68 bool isEtaMax(const unsigned int& index) const;
69
71 bool isPhiMin(const unsigned int& index) const;
72
74 bool isPhiMax(const unsigned int& index) const;
75
77 short int prevSamplingRegion() const;
78
80 short int nextSamplingRegion() const;
81
82
83private:
84
85 unsigned int m_hashMin;
86 short int m_nbEtaBins;
87 short int m_nPhi;
88 float m_minEta;
90 float m_minPhi;
93
94 short int m_prevSampReg;
95 short int m_nextSampReg;
96
97};
98
99#endif // LARFCAL_REGION_H
@ NOT_VALID_FCAL_REGION
short int phiN() const
number of phi bins
bool isEtaMin(const unsigned int &index) const
is the considered cell in the first eta bin of the region ?
~LArFCAL_region(void)=default
float phiGranularity() const
phi granularity
unsigned int m_hashMin
unsigned int hashMin() const
hash Id of the first cell of the region
short int prevSamplingRegion() const
region number of the prev region in sampling
bool fullTwoPi() const
true if detector covers full 2pi (== wraparound option in dictionary)
float etaGranularity() const
eta granularity
float etaMax() const
end eta
short int numberOfEta() const
number of eta bins in the whole region
bool isPhiMax(const unsigned int &index) const
is the considered cell in the last phi bin of the region ?
short int m_nextSampReg
float phiMin() const
starting phi
float phiMax() const
end phi
short int m_prevSampReg
float etaMin() const
starting eta
bool isEtaMax(const unsigned int &index) const
is the considered cell in the last eta bin of the region ?
short int m_nbEtaBins
bool isPhiMin(const unsigned int &index) const
is the considered cell in the first phi bin of the region ?
short int nextSamplingRegion() const
region number of the next region in sampling
unsigned int hashMax() const
hash Id of the last cell of the region +1
Definition index.py:1