ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDElement Class Reference

#include <AGDDElement.h>

Collaboration diagram for AGDDElement:

Public Member Functions

 AGDDElement (AGDDMaterialStore &ms, const std::string &n, const std::string &s, int z, double a)
void RegisterToStore (AGDDMaterialStore &ms, AGDDElement *)
const std::string & GetName () const
const std::string & GetSymbol () const
int GetZ () const
double GetA () const
void Created (bool b)
bool Extant ()
void * GetElement ()
void SetElement (void *el)

Private Attributes

std::string m_name
std::string m_symbol
int m_z
double m_a
bool m_created
void * m_theElement

Friends

std::ostream & operator<< (std::ostream &os, const AGDDElement &obj)

Detailed Description

Definition at line 11 of file AGDDElement.h.

Constructor & Destructor Documentation

◆ AGDDElement()

AGDDElement::AGDDElement ( AGDDMaterialStore & ms,
const std::string & n,
const std::string & s,
int z,
double a )
inline

Definition at line 14 of file AGDDElement.h.

17 :
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 }
static Double_t a
#define z
std::string m_name
Definition AGDDElement.h:32
void RegisterToStore(AGDDMaterialStore &ms, AGDDElement *)
std::string m_symbol
Definition AGDDElement.h:33
void * m_theElement
Definition AGDDElement.h:38

Member Function Documentation

◆ Created()

void AGDDElement::Created ( bool b)
inline

Definition at line 27 of file AGDDElement.h.

◆ Extant()

bool AGDDElement::Extant ( )
inline

Definition at line 28 of file AGDDElement.h.

28{return m_created;}

◆ GetA()

double AGDDElement::GetA ( ) const
inline

Definition at line 26 of file AGDDElement.h.

26{return m_a;}

◆ GetElement()

void * AGDDElement::GetElement ( )
inline

Definition at line 29 of file AGDDElement.h.

29{return m_theElement;}

◆ GetName()

const std::string & AGDDElement::GetName ( ) const

Definition at line 23 of file AGDDElement.cxx.

24{
25 return m_name;
26}

◆ GetSymbol()

const std::string & AGDDElement::GetSymbol ( ) const

Definition at line 28 of file AGDDElement.cxx.

29{
30 return m_symbol;
31}

◆ GetZ()

int AGDDElement::GetZ ( ) const
inline

Definition at line 25 of file AGDDElement.h.

25{return m_z;}

◆ RegisterToStore()

void AGDDElement::RegisterToStore ( AGDDMaterialStore & ms,
AGDDElement * e )

Definition at line 17 of file AGDDElement.cxx.

19{
20 ms.RegisterElement(e);
21}

◆ SetElement()

void AGDDElement::SetElement ( void * el)
inline

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const AGDDElement & obj )
friend

Definition at line 10 of file AGDDElement.cxx.

11{
12 os<<"- Element "<<obj.m_name<<" symbol="<<obj.m_symbol<<
13 " Z="<<obj.m_z<<" A="<<obj.m_a<<std::endl;
14 return os;
15}

Member Data Documentation

◆ m_a

double AGDDElement::m_a
private

Definition at line 35 of file AGDDElement.h.

◆ m_created

bool AGDDElement::m_created
private

Definition at line 36 of file AGDDElement.h.

◆ m_name

std::string AGDDElement::m_name
private

Definition at line 32 of file AGDDElement.h.

◆ m_symbol

std::string AGDDElement::m_symbol
private

Definition at line 33 of file AGDDElement.h.

◆ m_theElement

void* AGDDElement::m_theElement
private

Definition at line 38 of file AGDDElement.h.

◆ m_z

int AGDDElement::m_z
private

Definition at line 34 of file AGDDElement.h.


The documentation for this class was generated from the following files: