ATLAS Offline Software
RPCpanelList.h
Go to the documentation of this file.
1 
2 #include <map>
3 
4 
5 typedef std::map<unsigned long, unsigned int>::const_iterator cRPCpanelListIterator;
6 
7 class RPCpanelList {
8 public:
11  RPCpanelList(const RPCpanelList &) = delete;
12  RPCpanelList & operator=(const RPCpanelList &) = delete;
13  void init(int inputLayer);
14  void init();
17  unsigned int size();
18  unsigned int getIndexInList(unsigned long panelID);
19  std::string getStringId(unsigned long panelID);
20  std::string getStName(unsigned long panelID);
21  unsigned short getLayer(unsigned long panelID);
22  unsigned short getView(unsigned long panelID);
23  double getEtaMin(unsigned long panelID);
24  double getEtaMax(unsigned long panelID);
25  double getPhiMin(unsigned long panelID);
26  double getPhiMax(unsigned long panelID);
27  double getZMin(unsigned long panelID);
28  double getZMax(unsigned long panelID);
30  if (flag) std::cout << "will accept proximity IDs " << std::endl;
32  }
34 
35 private:
36  static constexpr size_t arraySize{10000};
38  std::map<unsigned long, unsigned int>* m_entryInListMap{};
39  std::string m_stringIdArray[arraySize] ={};
40  std::string m_stNameArray[arraySize] ={};
47  short int m_viewArray[arraySize]={};
48  short int m_layerArray[arraySize]={};
49 
50  unsigned int indexInCache{};
51  unsigned int panelIDinCache{};
52 };
RPCpanelList::m_boundArrayPhiMax
double m_boundArrayPhiMax[arraySize]
Definition: RPCpanelList.h:44
RPCpanelList::arraySize
static constexpr size_t arraySize
Definition: RPCpanelList.h:36
RPCpanelList::init
void init(int inputLayer)
RPCpanelList::m_entryInListMap
std::map< unsigned long, unsigned int > * m_entryInListMap
Definition: RPCpanelList.h:38
RPCpanelList::m_stNameArray
std::string m_stNameArray[arraySize]
Definition: RPCpanelList.h:40
RPCpanelList::getIndexInList
unsigned int getIndexInList(unsigned long panelID)
RPCpanelList::m_boundArrayEtaMin
double m_boundArrayEtaMin[arraySize]
Definition: RPCpanelList.h:41
RPCpanelList::getStringId
std::string getStringId(unsigned long panelID)
RPCpanelList::m_stringIdArray
std::string m_stringIdArray[arraySize]
Definition: RPCpanelList.h:39
RPCpanelList
Definition: RPCpanelList.h:7
RPCpanelList::~RPCpanelList
~RPCpanelList()
RPCpanelList::m_acceptProximityID
bool m_acceptProximityID
Definition: RPCpanelList.h:37
RPCpanelList::getPhiMin
double getPhiMin(unsigned long panelID)
RPCpanelList::getStName
std::string getStName(unsigned long panelID)
RPCpanelList::getView
unsigned short getView(unsigned long panelID)
RPCpanelList::getAcceptProximityID
bool getAcceptProximityID()
Definition: RPCpanelList.h:33
RPCpanelList::getPhiMax
double getPhiMax(unsigned long panelID)
RPCpanelList::m_boundArrayZMin
double m_boundArrayZMin[arraySize]
Definition: RPCpanelList.h:45
master.flag
bool flag
Definition: master.py:29
RPCpanelList::RPCpanelList
RPCpanelList()
RPCpanelList::getLayer
unsigned short getLayer(unsigned long panelID)
RPCpanelList::begin
cRPCpanelListIterator begin()
RPCpanelList::m_layerArray
short int m_layerArray[arraySize]
Definition: RPCpanelList.h:48
RPCpanelList::init
void init()
RPCpanelList::m_boundArrayPhiMin
double m_boundArrayPhiMin[arraySize]
Definition: RPCpanelList.h:43
RPCpanelList::panelIDinCache
unsigned int panelIDinCache
Definition: RPCpanelList.h:51
cRPCpanelListIterator
std::map< unsigned long, unsigned int >::const_iterator cRPCpanelListIterator
Definition: RPCpanelList.h:5
RPCpanelList::getEtaMin
double getEtaMin(unsigned long panelID)
RPCpanelList::getZMax
double getZMax(unsigned long panelID)
RPCpanelList::RPCpanelList
RPCpanelList(const RPCpanelList &)=delete
RPCpanelList::size
unsigned int size()
RPCpanelList::indexInCache
unsigned int indexInCache
Definition: RPCpanelList.h:50
RPCpanelList::setAcceptProximityID
void setAcceptProximityID(bool flag)
Definition: RPCpanelList.h:29
RPCpanelList::m_boundArrayEtaMax
double m_boundArrayEtaMax[arraySize]
Definition: RPCpanelList.h:42
RPCpanelList::m_viewArray
short int m_viewArray[arraySize]
Definition: RPCpanelList.h:47
RPCpanelList::getZMin
double getZMin(unsigned long panelID)
RPCpanelList::getEtaMax
double getEtaMax(unsigned long panelID)
RPCpanelList::end
cRPCpanelListIterator end()
RPCpanelList::operator=
RPCpanelList & operator=(const RPCpanelList &)=delete
RPCpanelList::m_boundArrayZMax
double m_boundArrayZMax[arraySize]
Definition: RPCpanelList.h:46