ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
RegionSelectorLUT Class Reference

#include <RegionSelectorLUT.h>

Collaboration diagram for RegionSelectorLUT:

Public Member Functions

 RegionSelectorLUT (unsigned int maxHash)
 
 RegionSelectorLUT (void)
 
 ~RegionSelectorLUT ()
 
void additem (const int hashId, const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int layerDiskPosition)
 
void additem (const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int layerDiskPosition, const int hashId, const int robId)
 
void additem (const int sampling, const double etaMin, const double etaMax, const double phiMin, const double phiMax, const int layerDiskNumber, const int hashId, const int robId)
 
double etaMin (int hashId) const
 
double etaMax (int hashId) const
 
double phiMin (int hashId) const
 
double phiMax (int hashId) const
 
int sampling (int hashId) const
 
int robId (int hashId) const
 
int hashId (int value) const
 
int layerDiskPosition (int hashId) const
 
int layerDiskNumber (int hashId) const
 
unsigned int maxHash (void) const
 
double etaminElem ()
 
double etamaxElem ()
 
double phiminElem ()
 
double phimaxElem ()
 

Private Attributes

unsigned int m_maxHash
 
std::vector< int > m_number
 
std::vector< int > m_position
 
std::vector< double > m_phiMin
 
std::vector< double > m_phiMax
 
std::vector< double > m_etaMin
 
std::vector< double > m_etaMax
 
std::vector< int > m_robId
 
std::vector< int > m_hashId
 

Detailed Description

Definition at line 14 of file RegionSelectorLUT.h.

Constructor & Destructor Documentation

◆ RegionSelectorLUT() [1/2]

RegionSelectorLUT::RegionSelectorLUT ( unsigned int  maxHash)

Definition at line 7 of file RegionSelectorLUT.cxx.

7  {
8  m_etaMin.resize( maxHash );
9  m_etaMax.resize( maxHash );
10  m_phiMin.resize( maxHash );
11  m_phiMax.resize( maxHash );
12  m_position.resize( maxHash );
13  m_number.resize( maxHash );
14  m_robId.resize( maxHash );
15  m_hashId.resize( maxHash );
16  m_maxHash = 0;
17 }

◆ RegionSelectorLUT() [2/2]

RegionSelectorLUT::RegionSelectorLUT ( void  )

Definition at line 19 of file RegionSelectorLUT.cxx.

19  {
20  unsigned int maxHash = 50000;
21  m_etaMin.resize( maxHash );
22  m_etaMax.resize( maxHash );
23  m_phiMin.resize( maxHash );
24  m_phiMax.resize( maxHash );
25  m_position.resize( maxHash );
26  m_number.resize( maxHash );
27  m_robId.resize( maxHash );
28  m_hashId.resize( maxHash );
29  m_maxHash = 0;
30 }

◆ ~RegionSelectorLUT()

RegionSelectorLUT::~RegionSelectorLUT ( )
inline

Definition at line 20 of file RegionSelectorLUT.h.

20 {};

Member Function Documentation

◆ additem() [1/3]

void RegionSelectorLUT::additem ( const double  etaMin,
const double  etaMax,
const double  phiMin,
const double  phiMax,
const int  layerDiskNumber,
const int  layerDiskPosition,
const int  hashId,
const int  robId 
)

Definition at line 140 of file RegionSelectorLUT.cxx.

143  {
152 
153  m_maxHash++;
154 
155 }

◆ additem() [2/3]

void RegionSelectorLUT::additem ( const int  hashId,
const double  etaMin,
const double  etaMax,
const double  phiMin,
const double  phiMax,
const int  layerDiskNumber,
const int  layerDiskPosition 
)

Definition at line 125 of file RegionSelectorLUT.cxx.

◆ additem() [3/3]

void RegionSelectorLUT::additem ( const int  sampling,
const double  etaMin,
const double  etaMax,
const double  phiMin,
const double  phiMax,
const int  layerDiskNumber,
const int  hashId,
const int  robId 
)

Definition at line 157 of file RegionSelectorLUT.cxx.

◆ etaMax()

double RegionSelectorLUT::etaMax ( int  hashId) const

Definition at line 44 of file RegionSelectorLUT.cxx.

44  {
45  return m_etaMax[ hashId ];
46 }

◆ etamaxElem()

double RegionSelectorLUT::etamaxElem ( )

Definition at line 85 of file RegionSelectorLUT.cxx.

85  {
86  double etamaxElem = -1000.0;
87  unsigned int i;
88 
89  if( m_maxHash > 0 ){
90  for( i = 0; i < m_maxHash; i++ ){
91  if( m_etaMax[i] > etamaxElem )
92  etamaxElem = m_etaMax[i];
93  }
94  }
95  return etamaxElem;
96 }

◆ etaMin()

double RegionSelectorLUT::etaMin ( int  hashId) const

Definition at line 40 of file RegionSelectorLUT.cxx.

40  {
41  return m_etaMin[ hashId ];
42 }

◆ etaminElem()

double RegionSelectorLUT::etaminElem ( )

Definition at line 72 of file RegionSelectorLUT.cxx.

72  {
73  double etaminElem = 1000.0;
74  unsigned int i;
75 
76  if( m_maxHash > 0 ){
77  for( i = 0; i < m_maxHash; i++ ){
78  if( m_etaMin[i] < etaminElem )
79  etaminElem = m_etaMin[i];
80  }
81  }
82  return etaminElem;
83 }

◆ hashId()

int RegionSelectorLUT::hashId ( int  value) const

Definition at line 64 of file RegionSelectorLUT.cxx.

64  {
65  return m_hashId[ value ];
66 }

◆ layerDiskNumber()

int RegionSelectorLUT::layerDiskNumber ( int  hashId) const

Definition at line 36 of file RegionSelectorLUT.cxx.

36  {
37  return m_number[ hashId ];
38 }

◆ layerDiskPosition()

int RegionSelectorLUT::layerDiskPosition ( int  hashId) const

Definition at line 32 of file RegionSelectorLUT.cxx.

32  {
33  return m_position[ hashId ];
34 }

◆ maxHash()

unsigned int RegionSelectorLUT::maxHash ( void  ) const

Definition at line 68 of file RegionSelectorLUT.cxx.

68  {
69  return m_maxHash;
70 }

◆ phiMax()

double RegionSelectorLUT::phiMax ( int  hashId) const

Definition at line 52 of file RegionSelectorLUT.cxx.

52  {
53  return m_phiMax[ hashId ];
54 }

◆ phimaxElem()

double RegionSelectorLUT::phimaxElem ( )

Definition at line 111 of file RegionSelectorLUT.cxx.

111  {
112  double phimaxElem = -1000.0;
113  unsigned int i;
114 
115  if( m_maxHash > 0 ){
116  for( i = 0; i < m_maxHash; i++ ){
117  if( m_phiMax[i] > phimaxElem )
118  phimaxElem = m_phiMax[i];
119  }
120  }
121 
122  return phimaxElem;
123 }

◆ phiMin()

double RegionSelectorLUT::phiMin ( int  hashId) const

Definition at line 48 of file RegionSelectorLUT.cxx.

48  {
49  return m_phiMin[ hashId ];
50 }

◆ phiminElem()

double RegionSelectorLUT::phiminElem ( )

Definition at line 98 of file RegionSelectorLUT.cxx.

98  {
99  double phiminElem = 1000.0;
100  unsigned int i;
101 
102  if( m_maxHash > 0 ){
103  for( i = 0; i < m_maxHash; i++ ){
104  if( m_phiMin[i] < phiminElem )
105  phiminElem = m_phiMin[i];
106  }
107  }
108  return phiminElem;
109 }

◆ robId()

int RegionSelectorLUT::robId ( int  hashId) const

Definition at line 60 of file RegionSelectorLUT.cxx.

60  {
61  return m_robId[ hashId ];
62 }

◆ sampling()

int RegionSelectorLUT::sampling ( int  hashId) const

Definition at line 56 of file RegionSelectorLUT.cxx.

56  {
57  return m_position[ hashId ];
58 }

Member Data Documentation

◆ m_etaMax

std::vector<double> RegionSelectorLUT::m_etaMax
private

Definition at line 58 of file RegionSelectorLUT.h.

◆ m_etaMin

std::vector<double> RegionSelectorLUT::m_etaMin
private

Definition at line 58 of file RegionSelectorLUT.h.

◆ m_hashId

std::vector<int> RegionSelectorLUT::m_hashId
private

Definition at line 59 of file RegionSelectorLUT.h.

◆ m_maxHash

unsigned int RegionSelectorLUT::m_maxHash
private

Definition at line 56 of file RegionSelectorLUT.h.

◆ m_number

std::vector<int> RegionSelectorLUT::m_number
private

Definition at line 57 of file RegionSelectorLUT.h.

◆ m_phiMax

std::vector<double> RegionSelectorLUT::m_phiMax
private

Definition at line 58 of file RegionSelectorLUT.h.

◆ m_phiMin

std::vector<double> RegionSelectorLUT::m_phiMin
private

Definition at line 58 of file RegionSelectorLUT.h.

◆ m_position

std::vector<int> RegionSelectorLUT::m_position
private

Definition at line 57 of file RegionSelectorLUT.h.

◆ m_robId

std::vector<int> RegionSelectorLUT::m_robId
private

Definition at line 59 of file RegionSelectorLUT.h.


The documentation for this class was generated from the following files:
RegionSelectorLUT::m_maxHash
unsigned int m_maxHash
Definition: RegionSelectorLUT.h:56
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:122
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
lumiFormat.i
int i
Definition: lumiFormat.py:92
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::m_position
std::vector< int > m_position
Definition: RegionSelectorLUT.h:57
RegionSelectorLUT::m_etaMax
std::vector< double > m_etaMax
Definition: RegionSelectorLUT.h:58
RegionSelectorLUT::hashId
int hashId(int value) const
Definition: RegionSelectorLUT.cxx:64
RegionSelectorLUT::phiMin
double phiMin(int hashId) const
Definition: RegionSelectorLUT.cxx:48