ATLAS Offline Software
AGDDMaterialStore.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AGDDMaterialStore_H
6 #define AGDDMaterialStore_H
7 
8 #include <string>
9 #include <map>
10 
11 class AGDDSimpleMaterial;
12 class AGDDElement;
13 
14 #include <iostream>
15 
16 
17 typedef std::map<std::string,AGDDSimpleMaterial* > AGDDMaterialMap;
18 typedef std::map<std::string,AGDDElement* > AGDDElementMap;
19 
20 typedef AGDDMaterialMap::const_iterator MaterialIterator;
21 typedef AGDDElementMap::const_iterator ElementIterator;
22 
24 public:
28  AGDDSimpleMaterial* GetMaterial(std::string);
29  AGDDElement* GetElement(std::string);
30 
33 
38 
39 
40  void PrintElementNames();
41  void PrintMaterialNames();
42  void PrintElement(const std::string& n);
43  void PrintMaterial(const std::string& n);
44 
45 private:
48 
51 
52 };
53 
54 #endif
AGDDMaterialStore::m_theMaterials
AGDDMaterialMap m_theMaterials
Definition: AGDDMaterialStore.h:46
AGDDMaterialStore::PrintElement
void PrintElement(const std::string &n)
Definition: AGDDMaterialStore.cxx:90
AGDDMaterialStore::m_theElements
AGDDElementMap m_theElements
Definition: AGDDMaterialStore.h:47
AGDDMaterialStore::RegisterElement
void RegisterElement(AGDDElement *)
Definition: AGDDMaterialStore.cxx:17
AGDDMaterialStore::m_nrOfElements
int m_nrOfElements
Definition: AGDDMaterialStore.h:50
AGDDMaterialStore::NumberOfElements
int NumberOfElements()
Definition: AGDDMaterialStore.h:32
ElementIterator
AGDDElementMap::const_iterator ElementIterator
Definition: AGDDMaterialStore.h:21
AGDDMaterialStore::GetMaterial
AGDDSimpleMaterial * GetMaterial(std::string)
Definition: AGDDMaterialStore.cxx:41
AGDDMaterialStore::MaterialBegin
MaterialIterator MaterialBegin()
Definition: AGDDMaterialStore.h:34
AGDDMaterialStore::AGDDMaterialStore
AGDDMaterialStore()
Definition: AGDDMaterialStore.cxx:11
beamspotman.n
n
Definition: beamspotman.py:731
AGDDMaterialMap
std::map< std::string, AGDDSimpleMaterial * > AGDDMaterialMap
Definition: AGDDMaterialStore.h:12
AGDDMaterialStore::RegisterMaterial
void RegisterMaterial(AGDDSimpleMaterial *)
Definition: AGDDMaterialStore.cxx:29
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
AGDDMaterialStore::NumberOfMaterials
int NumberOfMaterials()
Definition: AGDDMaterialStore.h:31
MaterialIterator
AGDDMaterialMap::const_iterator MaterialIterator
Definition: AGDDMaterialStore.h:20
AGDDSimpleMaterial
Definition: AGDDSimpleMaterial.h:14
AGDDMaterialStore::PrintElementNames
void PrintElementNames()
Definition: AGDDMaterialStore.cxx:62
AGDDMaterialStore::MaterialEnd
MaterialIterator MaterialEnd()
Definition: AGDDMaterialStore.h:35
AGDDMaterialStore::ElementEnd
ElementIterator ElementEnd()
Definition: AGDDMaterialStore.h:37
AGDDElement
Definition: AGDDElement.h:11
AGDDMaterialStore::PrintMaterial
void PrintMaterial(const std::string &n)
Definition: AGDDMaterialStore.cxx:98
AGDDMaterialStore::GetElement
AGDDElement * GetElement(std::string)
Definition: AGDDMaterialStore.cxx:51
AGDDMaterialStore::ElementBegin
ElementIterator ElementBegin()
Definition: AGDDMaterialStore.h:36
AGDDElementMap
std::map< std::string, AGDDElement * > AGDDElementMap
Definition: AGDDMaterialStore.h:18
AGDDMaterialStore::m_nrOfMaterials
int m_nrOfMaterials
Definition: AGDDMaterialStore.h:49
AGDDMaterialStore::PrintMaterialNames
void PrintMaterialNames()
Definition: AGDDMaterialStore.cxx:76