ATLAS Offline Software
AGDDDetectorStore.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AGDDDetectorStore_H
6 #define AGDDDetectorStore_H
7 
8 class AGDDDetector;
9 class AGDDTechnology;
10 
11 #include <map>
12 #include <string>
13 #include <vector>
14 
15 typedef std::map<std::string,AGDDDetector*> detectorList;
16 typedef std::map<std::string,AGDDTechnology*> technologyList;
17 
19 public:
21  AGDDDetector* GetDetector(const std::string& s) {return m_the_detectors[s];}
22  AGDDTechnology* GetTechnology(const std::string& s) {return m_the_technologies[s];}
25  void PrintAllDetectors();
27 
28  const detectorList& GetDetectorList() const ;
29  std::vector<AGDDDetector*> GetDetectorsByType(const std::string&) const ;
30  AGDDDetector* GetDetectorByID(const std::string&) const ;
31  template<class T> std::vector<T*> GetDetectorsByType() const ;
32  template<class T> T* GetDetectorByID(const std::string&) const ;
33 private:
36 };
37 
38 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
AGDDDetectorStore::m_the_detectors
detectorList m_the_detectors
Definition: AGDDDetectorStore.h:34
AGDDDetectorStore::GetDetectorByID
AGDDDetector * GetDetectorByID(const std::string &) const
Definition: AGDDDetectorStore.cxx:67
AGDDDetectorStore::RegisterDetector
void RegisterDetector(AGDDDetector *)
Definition: AGDDDetectorStore.cxx:17
detectorList
std::map< std::string, AGDDDetector * > detectorList
Definition: AGDDDetectorStore.h:9
AGDDDetectorStore::PrintAllDetectors
void PrintAllDetectors()
Definition: AGDDDetectorStore.cxx:34
AGDDDetectorStore::GetDetector
AGDDDetector * GetDetector(const std::string &s)
Definition: AGDDDetectorStore.h:21
AGDDDetectorStore::AGDDDetectorStore
AGDDDetectorStore()
Definition: AGDDDetectorStore.cxx:14
AGDDDetector
Definition: AGDDDetector.h:15
technologyList
std::map< std::string, AGDDTechnology * > technologyList
Definition: AGDDDetectorStore.h:16
AGDDDetectorStore::GetDetectorList
detectorList & GetDetectorList()
Definition: AGDDDetectorStore.h:26
AGDDDetectorStore
Definition: AGDDDetectorStore.h:18
AGDDDetectorStore::GetTechnology
AGDDTechnology * GetTechnology(const std::string &s)
Definition: AGDDDetectorStore.h:22
AGDDTechnology
Definition: AGDDTechnology.h:15
AGDDDetectorStore::RegisterTechnology
void RegisterTechnology(AGDDTechnology *)
Definition: AGDDDetectorStore.cxx:26
AGDDDetectorStore::GetDetectorsByType
std::vector< T * > GetDetectorsByType() const
Definition: AGDDDetectorStore.cxx:79
AGDDDetectorStore::m_the_technologies
technologyList m_the_technologies
Definition: AGDDDetectorStore.h:35
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35