ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
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 *)
 
std::string GetName () 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 &, const AGDDElement &)
 

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  :
19  {
20  RegisterToStore(ms, this);
21  }

Member Function Documentation

◆ Created()

void AGDDElement::Created ( bool  b)
inline

Definition at line 27 of file AGDDElement.h.

27 {m_created=b;}

◆ 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()

std::string AGDDElement::GetName ( ) const

Definition at line 23 of file AGDDElement.cxx.

24 {
25  return m_name;
26 }

◆ GetSymbol()

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

Definition at line 30 of file AGDDElement.h.

Friends And Related Function Documentation

◆ 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:
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
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDElement::m_created
bool m_created
Definition: AGDDElement.h:36
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
AGDDElement::m_theElement
void * m_theElement
Definition: AGDDElement.h:38
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
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
python.PyAthena.obj
obj
Definition: PyAthena.py:135
AGDDElement::m_a
double m_a
Definition: AGDDElement.h:35