ATLAS Offline Software
RegionSelectorLUT.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 REGIONSELECTORLUT_H
6 #define REGIONSELECTORLUT_H
7 
8 // Includes --------------------------------------------------------------
9 #include <vector>
10 #include <set>
11 #include <stdint.h>
12 // using namespace std;
13 // Class RegionSelectorLUT ----------------------------------------------------
15 
16  public:
17 
18  RegionSelectorLUT(unsigned int maxHash);
19  RegionSelectorLUT( void );
21 
22  // methods to add items
23  void additem(const int hashId,
24  const double etaMin, const double etaMax,
25  const double phiMin, const double phiMax,
26  const int layerDiskNumber, const int layerDiskPosition );
27 
28  void additem(const double etaMin, const double etaMax,
29  const double phiMin, const double phiMax,
30  const int layerDiskNumber, const int layerDiskPosition,
31  const int hashId, const int robId );
32 
33  void additem(const int sampling,
34  const double etaMin, const double etaMax,
35  const double phiMin, const double phiMax,
36  const int layerDiskNumber,
37  const int hashId, const int robId );
38 
39  // methods to retreive info
40  double etaMin( int hashId ) const;
41  double etaMax( int hashId ) const;
42  double phiMin( int hashId ) const;
43  double phiMax( int hashId ) const;
44  int sampling( int hashId ) const;
45  int robId( int hashId ) const;
46  int hashId( int value ) const;
47  int layerDiskPosition( int hashId ) const;// <0 negative endcap; >0 positive endcap; ==0 barrel
48  int layerDiskNumber( int hashId ) const;
49  unsigned int maxHash( void ) const;
50  double etaminElem( );
51  double etamaxElem( );
52  double phiminElem( );
53  double phimaxElem( );
54 
55  private:
56  unsigned int m_maxHash;
57  std::vector<int> m_number, m_position;
58  std::vector<double> m_phiMin, m_phiMax, m_etaMin, m_etaMax;
59  std::vector<int> m_robId, m_hashId;
60 
61 };
62 
63 #endif
RegionSelectorLUT::m_maxHash
unsigned int m_maxHash
Definition: RegionSelectorLUT.h:56
RegionSelectorLUT::RegionSelectorLUT
RegionSelectorLUT(void)
Definition: RegionSelectorLUT.cxx:19
RegionSelectorLUT::etaminElem
double etaminElem()
Definition: RegionSelectorLUT.cxx:72
RegionSelectorLUT::layerDiskPosition
int layerDiskPosition(int hashId) const
Definition: RegionSelectorLUT.cxx:32
RegionSelectorLUT::sampling
int sampling(int hashId) const
Definition: RegionSelectorLUT.cxx:56
athena.value
value
Definition: athena.py:124
RegionSelectorLUT::m_phiMin
std::vector< double > m_phiMin
Definition: RegionSelectorLUT.h:58
RegionSelectorLUT::maxHash
unsigned int maxHash(void) const
Definition: RegionSelectorLUT.cxx:68
RegionSelectorLUT::etaMin
double etaMin(int hashId) const
Definition: RegionSelectorLUT.cxx:40
RegionSelectorLUT::m_phiMax
std::vector< double > m_phiMax
Definition: RegionSelectorLUT.h:58
RegionSelectorLUT::m_etaMin
std::vector< double > m_etaMin
Definition: RegionSelectorLUT.h:58
RegionSelectorLUT::phiMax
double phiMax(int hashId) const
Definition: RegionSelectorLUT.cxx:52
RegionSelectorLUT::m_robId
std::vector< int > m_robId
Definition: RegionSelectorLUT.h:59
RegionSelectorLUT::m_number
std::vector< int > m_number
Definition: RegionSelectorLUT.h:57
RegionSelectorLUT::phimaxElem
double phimaxElem()
Definition: RegionSelectorLUT.cxx:111
RegionSelectorLUT::etamaxElem
double etamaxElem()
Definition: RegionSelectorLUT.cxx:85
RegionSelectorLUT::m_hashId
std::vector< int > m_hashId
Definition: RegionSelectorLUT.h:59
RegionSelectorLUT::robId
int robId(int hashId) const
Definition: RegionSelectorLUT.cxx:60
RegionSelectorLUT::layerDiskNumber
int layerDiskNumber(int hashId) const
Definition: RegionSelectorLUT.cxx:36
RegionSelectorLUT::etaMax
double etaMax(int hashId) const
Definition: RegionSelectorLUT.cxx:44
RegionSelectorLUT::phiminElem
double phiminElem()
Definition: RegionSelectorLUT.cxx:98
RegionSelectorLUT::~RegionSelectorLUT
~RegionSelectorLUT()
Definition: RegionSelectorLUT.h:20
RegionSelectorLUT::m_position
std::vector< int > m_position
Definition: RegionSelectorLUT.h:57
RegionSelectorLUT::m_etaMax
std::vector< double > m_etaMax
Definition: RegionSelectorLUT.h:58
RegionSelectorLUT::additem
void additem(const int hashId, const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int layerDiskPosition)
Definition: RegionSelectorLUT.cxx:125
RegionSelectorLUT::hashId
int hashId(int value) const
Definition: RegionSelectorLUT.cxx:64
RegionSelectorLUT
Definition: RegionSelectorLUT.h:14
RegionSelectorLUT::phiMin
double phiMin(int hashId) const
Definition: RegionSelectorLUT.cxx:48