ATLAS Offline Software
Loading...
Searching...
No Matches
LArHEC_region.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARHEC_REGION_H
6#define LARHEC_REGION_H
7
8
9#include <vector>
10
11 enum { NOT_VALID_HEC_REGION = 63 };
12
19
21{
22public:
23
24 LArHEC_region(void);
25
26 LArHEC_region(unsigned int& minHash, short int& nbEtaBins, short int& nPhi,
27 float minEta, float granulEta, float minPhi, float granulPhi, bool fullSym,
28 short int& prevEtaReg, short int& nextEtaReg,
29 std::vector<short int>& prevEtaSamp, std::vector<short int>& nextEtaSamp);
30
32
34 short int numberOfEta() const;
35
37 short int phiN() const;
38
40 float etaGranularity() const;
41
43 float phiGranularity() const;
44
46 bool fullTwoPi() const;
47
49 float etaMin() const;
50
52 float etaMax() const;
53
55 float phiMin() const;
56
58 float phiMax() const;
59
61 unsigned int hashMin() const;
62
64 unsigned int hashMax() const;
65
67 short int prevEtaRegion() const;
68
70 short int nextEtaRegion() const;
71
73 bool isEtaMin(const unsigned int& index) const;
74
76 bool isEtaMax(const unsigned int& index) const;
77
79 bool isPhiMin(const unsigned int& index) const;
80
82 bool isPhiMax(const unsigned int& index) const;
83
85 const std::vector<short int>& prevSamplingRegion() const;
86
88 const std::vector<short int>& nextSamplingRegion() const;
89
90
91private:
92
93 unsigned int m_hashMin;
94 short int m_nbEtaBins;
95 short int m_nPhi;
96 float m_minEta;
98 float m_minPhi;
101
102 short int m_prevEtaReg;
103 short int m_nextEtaReg;
104 std::vector<short int> m_prevSampReg;
105 std::vector<short int> m_nextSampReg;
106
107};
108
109#endif // LARHEC_REGION_H
@ NOT_VALID_HEC_REGION
bool isEtaMax(const unsigned int &index) const
is the considered cell in the last eta bin of the region ?
float etaGranularity() const
eta granularity
bool isPhiMax(const unsigned int &index) const
is the considered cell in the last phi bin of the region ?
const std::vector< short int > & prevSamplingRegion() const
region number of the prev region in sampling
short int m_nbEtaBins
short int m_prevEtaReg
float etaMax() const
end eta
const std::vector< short int > & nextSamplingRegion() const
region number of the next region in sampling
short int nextEtaRegion() const
region number of the next region in eta
short int m_nextEtaReg
unsigned int hashMax() const
hash Id of the last cell of the region +1
std::vector< short int > m_prevSampReg
~LArHEC_region(void)
std::vector< short int > m_nextSampReg
unsigned int hashMin() const
hash Id of the first cell of the region
float phiMax() const
end phi
short int numberOfEta() const
number of eta bins in the whole region
float phiMin() const
starting phi
short int prevEtaRegion() const
region number of the previous region in eta
float phiGranularity() const
phi granularity
short int phiN() const
number of phi bins
unsigned int m_hashMin
short int m_nPhi
float etaMin() const
starting eta
bool isPhiMin(const unsigned int &index) const
is the considered cell in the first phi bin of the region ?
bool isEtaMin(const unsigned int &index) const
is the considered cell in the first eta bin of the region ?
bool fullTwoPi() const
true if detector covers full 2pi (== wraparound option in dictionary)
Definition index.py:1