ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDElement.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef AGDDElement_H
6#define AGDDElement_H
7
8#include <string>
10
12 friend std::ostream& operator <<(std::ostream&, const AGDDElement &);
13public:
15 const std::string& n,
16 const std::string& s,
17 int z, double a):
18 m_name(n),m_symbol(s),m_z(z),m_a(a),m_created(false),m_theElement(0)
19 {
20 RegisterToStore(ms, this);
21 }
23 const std::string& GetName() const ;
24 const 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;}
31private:
32 std::string m_name;
33 std::string m_symbol;
34 int m_z;
35 double m_a;
37
39};
40
41#endif
static Double_t a
#define z
std::string m_name
Definition AGDDElement.h:32
const std::string & GetSymbol() const
void RegisterToStore(AGDDMaterialStore &ms, AGDDElement *)
std::string m_symbol
Definition AGDDElement.h:33
bool Extant()
Definition AGDDElement.h:28
int GetZ() const
Definition AGDDElement.h:25
void SetElement(void *el)
Definition AGDDElement.h:30
double GetA() const
Definition AGDDElement.h:26
void * m_theElement
Definition AGDDElement.h:38
const std::string & GetName() const
AGDDElement(AGDDMaterialStore &ms, const std::string &n, const std::string &s, int z, double a)
Definition AGDDElement.h:14
void Created(bool b)
Definition AGDDElement.h:27
friend std::ostream & operator<<(std::ostream &, const AGDDElement &)
void * GetElement()
Definition AGDDElement.h:29