ATLAS Offline Software
AGDDElement.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 AGDDElement_H
6 #define AGDDElement_H
7 
8 #include <string>
10 
11 class AGDDElement {
12  friend std::ostream& operator <<(std::ostream&, const AGDDElement &);
13 public:
15  const std::string& n,
16  const std::string& s,
17  int z, double a):
19  {
20  RegisterToStore(ms, this);
21  }
23  std::string GetName() const ;
24  std::string GetSymbol() const ;
25  int GetZ() const {return m_z;}
26  double GetA() const {return m_a;}
27  void Created(bool b) {m_created=b;}
28  bool Extant() {return m_created;}
29  void* GetElement() {return m_theElement;}
30  void SetElement(void* el) {m_theElement=el;}
31 private:
32  std::string m_name;
33  std::string m_symbol;
34  int m_z;
35  double m_a;
36  bool m_created;
37 
38  void* m_theElement;
39 };
40 
41 #endif
AGDDElement::m_name
std::string m_name
Definition: AGDDElement.h:32
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
AGDDElement::m_symbol
std::string m_symbol
Definition: AGDDElement.h:33
AGDDElement::operator<<
friend std::ostream & operator<<(std::ostream &, const AGDDElement &)
Definition: AGDDElement.cxx:10
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDElement::GetA
double GetA() const
Definition: AGDDElement.h:26
AGDDElement::GetSymbol
std::string GetSymbol() const
Definition: AGDDElement.cxx:28
AGDDElement::m_created
bool m_created
Definition: AGDDElement.h:36
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
AGDDElement::SetElement
void SetElement(void *el)
Definition: AGDDElement.h:30
AGDDElement::GetZ
int GetZ() const
Definition: AGDDElement.h:25
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
AGDDElement::Extant
bool Extant()
Definition: AGDDElement.h:28
AGDDElement::GetElement
void * GetElement()
Definition: AGDDElement.h:29
AGDDElement::m_theElement
void * m_theElement
Definition: AGDDElement.h:38
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AGDDElement::GetName
std::string GetName() const
Definition: AGDDElement.cxx:23
AGDDElement
Definition: AGDDElement.h:11
a
TList * a
Definition: liststreamerinfos.cxx:10
AGDDElement::RegisterToStore
void RegisterToStore(AGDDMaterialStore &ms, AGDDElement *)
Definition: AGDDElement.cxx:17
AGDDElement::m_z
int m_z
Definition: AGDDElement.h:34
AGDDElement::AGDDElement
AGDDElement(AGDDMaterialStore &ms, const std::string &n, const std::string &s, int z, double a)
Definition: AGDDElement.h:14
AGDDElement::Created
void Created(bool b)
Definition: AGDDElement.h:27
AGDDElement::m_a
double m_a
Definition: AGDDElement.h:35