ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDKernel
AGDDKernel
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
18
class
AGDDDetectorStore
{
19
public
:
20
AGDDDetectorStore
();
21
AGDDDetector
*
GetDetector
(
const
std::string& s) {
return
m_the_detectors
[s];}
22
AGDDTechnology
*
GetTechnology
(
const
std::string& s) {
return
m_the_technologies
[s];}
23
void
RegisterDetector
(
AGDDDetector
*);
24
void
RegisterTechnology
(
AGDDTechnology
*);
25
void
PrintAllDetectors
();
26
detectorList
&
GetDetectorList
() {
return
m_the_detectors
;}
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
:
34
detectorList
m_the_detectors
;
35
technologyList
m_the_technologies
;
36
};
37
38
#endif
detectorList
std::map< std::string, AGDDDetector * > detectorList
Definition
AGDDDetectorStore.h:15
technologyList
std::map< std::string, AGDDTechnology * > technologyList
Definition
AGDDDetectorStore.h:16
AGDDDetectorStore::GetDetectorList
detectorList & GetDetectorList()
Definition
AGDDDetectorStore.h:26
AGDDDetectorStore::GetTechnology
AGDDTechnology * GetTechnology(const std::string &s)
Definition
AGDDDetectorStore.h:22
AGDDDetectorStore::m_the_technologies
technologyList m_the_technologies
Definition
AGDDDetectorStore.h:35
AGDDDetectorStore::AGDDDetectorStore
AGDDDetectorStore()
Definition
AGDDDetectorStore.cxx:14
AGDDDetectorStore::GetDetectorByID
AGDDDetector * GetDetectorByID(const std::string &) const
Definition
AGDDDetectorStore.cxx:67
AGDDDetectorStore::GetDetector
AGDDDetector * GetDetector(const std::string &s)
Definition
AGDDDetectorStore.h:21
AGDDDetectorStore::RegisterDetector
void RegisterDetector(AGDDDetector *)
Definition
AGDDDetectorStore.cxx:17
AGDDDetectorStore::PrintAllDetectors
void PrintAllDetectors()
Definition
AGDDDetectorStore.cxx:34
AGDDDetectorStore::RegisterTechnology
void RegisterTechnology(AGDDTechnology *)
Definition
AGDDDetectorStore.cxx:26
AGDDDetectorStore::GetDetectorsByType
std::vector< T * > GetDetectorsByType() const
Definition
AGDDDetectorStore.cxx:79
AGDDDetectorStore::m_the_detectors
detectorList m_the_detectors
Definition
AGDDDetectorStore.h:34
AGDDDetector
Definition
AGDDDetector.h:15
AGDDTechnology
Definition
AGDDTechnology.h:15
Generated on
for ATLAS Offline Software by
1.17.0