ATLAS Offline Software
Loading...
Searching...
No Matches
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
int layerDiskNumber(int hashId) const
int hashId(int value) const
std::vector< double > m_etaMax
std::vector< int > m_number
std::vector< double > m_etaMin
double etaMax(int hashId) const
std::vector< int > m_position
void additem(const int hashId, const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int layerDiskPosition)
std::vector< double > m_phiMax
int layerDiskPosition(int hashId) const
double phiMin(int hashId) const
int robId(int hashId) const
unsigned int maxHash(void) const
double etaMin(int hashId) const
RegionSelectorLUT(unsigned int maxHash)
std::vector< int > m_hashId
std::vector< int > m_robId
std::vector< double > m_phiMin
int sampling(int hashId) const
double phiMax(int hashId) const