ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
AGDDMaterial Class Reference

#include <AGDDMaterial.h>

Inheritance diagram for AGDDMaterial:
Collaboration diagram for AGDDMaterial:

Public Member Functions

 AGDDMaterial (AGDDMaterialStore &ms, const std::string &, AGDDElement *, double)
 
 AGDDMaterial (AGDDMaterialStore &ms, const std::string &, int, double, double)
 
int GetZ () const
 
double GetA () const
 
AGDDElementGetElement ()
 
void Created (bool b)
 
bool Extant () const
 
void RegisterToStore (AGDDMaterialStore &ms, AGDDSimpleMaterial *)
 
const std::string & GetName () const
 
double GetDensity () const
 
material_type GetMaterialType () const
 
void * GetMaterial ()
 
void SetMaterial (void *mat)
 

Protected Attributes

std::string m_name
 
double m_density
 
bool m_created
 
material_type m_mType
 
void * m_theMaterial
 

Private Attributes

int m_z
 
double m_a
 
AGDDElementm_element
 
bool m_matCreated
 

Friends

std::ostream & operator<< (std::ostream &, const AGDDMaterial &)
 

Detailed Description

Definition at line 15 of file AGDDMaterial.h.

Constructor & Destructor Documentation

◆ AGDDMaterial() [1/2]

AGDDMaterial::AGDDMaterial ( AGDDMaterialStore ms,
const std::string &  n,
AGDDElement e,
double  d 
)

Definition at line 18 of file AGDDMaterial.cxx.

20  :
21  AGDDSimpleMaterial(ms,n,d),m_z(e->GetZ()),m_a(e->GetA()),m_element(e),m_matCreated(false)
22 {
24 }

◆ AGDDMaterial() [2/2]

AGDDMaterial::AGDDMaterial ( AGDDMaterialStore ms,
const std::string &  n,
int  z,
double  a,
double  d 
)

Definition at line 26 of file AGDDMaterial.cxx.

27  :
29 {
31 }

Member Function Documentation

◆ Created()

void AGDDMaterial::Created ( bool  b)
inline

Definition at line 25 of file AGDDMaterial.h.

25 {m_matCreated=b;}

◆ Extant()

bool AGDDMaterial::Extant ( ) const
inline

Definition at line 26 of file AGDDMaterial.h.

26 {return m_matCreated;}

◆ GetA()

double AGDDMaterial::GetA ( ) const
inline

Definition at line 23 of file AGDDMaterial.h.

23 {return m_a;}

◆ GetDensity()

double AGDDSimpleMaterial::GetDensity ( ) const
inlineinherited

Definition at line 27 of file AGDDSimpleMaterial.h.

27 {return m_density;}

◆ GetElement()

AGDDElement* AGDDMaterial::GetElement ( )
inline

Definition at line 24 of file AGDDMaterial.h.

24 {return m_element;}

◆ GetMaterial()

void* AGDDSimpleMaterial::GetMaterial ( )
inlineinherited

Definition at line 31 of file AGDDSimpleMaterial.h.

31 {return m_theMaterial;}

◆ GetMaterialType()

material_type AGDDSimpleMaterial::GetMaterialType ( ) const
inlineinherited

Definition at line 28 of file AGDDSimpleMaterial.h.

28 {return m_mType;}

◆ GetName()

const std::string & AGDDSimpleMaterial::GetName ( ) const
inherited

Definition at line 23 of file AGDDSimpleMaterial.cxx.

24 {
25  return m_name;
26 }

◆ GetZ()

int AGDDMaterial::GetZ ( ) const
inline

Definition at line 22 of file AGDDMaterial.h.

22 {return m_z;}

◆ RegisterToStore()

void AGDDSimpleMaterial::RegisterToStore ( AGDDMaterialStore ms,
AGDDSimpleMaterial e 
)
inherited

Definition at line 17 of file AGDDSimpleMaterial.cxx.

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

◆ SetMaterial()

void AGDDSimpleMaterial::SetMaterial ( void *  mat)
inlineinherited

Definition at line 32 of file AGDDSimpleMaterial.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 11 of file AGDDMaterial.cxx.

12 {
13  os<<"- Material "<<obj.m_name<<" type-Material density="<<obj.m_density<<
14  " Z="<<obj.m_z<<" A="<<obj.m_a<<std::endl;
15  return os;
16 }

Member Data Documentation

◆ m_a

double AGDDMaterial::m_a
private

Definition at line 29 of file AGDDMaterial.h.

◆ m_created

bool AGDDSimpleMaterial::m_created
protectedinherited

Definition at line 36 of file AGDDSimpleMaterial.h.

◆ m_density

double AGDDSimpleMaterial::m_density
protectedinherited

Definition at line 35 of file AGDDSimpleMaterial.h.

◆ m_element

AGDDElement* AGDDMaterial::m_element
private

Definition at line 30 of file AGDDMaterial.h.

◆ m_matCreated

bool AGDDMaterial::m_matCreated
private

Definition at line 31 of file AGDDMaterial.h.

◆ m_mType

material_type AGDDSimpleMaterial::m_mType
protectedinherited

Definition at line 38 of file AGDDSimpleMaterial.h.

◆ m_name

std::string AGDDSimpleMaterial::m_name
protectedinherited

Definition at line 34 of file AGDDSimpleMaterial.h.

◆ m_theMaterial

void* AGDDSimpleMaterial::m_theMaterial
protectedinherited

Definition at line 39 of file AGDDSimpleMaterial.h.

◆ m_z

int AGDDMaterial::m_z
private

Definition at line 28 of file AGDDMaterial.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
AGDDMaterial::m_element
AGDDElement * m_element
Definition: AGDDMaterial.h:30
hist_file_dump.d
d
Definition: hist_file_dump.py:137
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDSimpleMaterial::m_theMaterial
void * m_theMaterial
Definition: AGDDSimpleMaterial.h:39
z
#define z
beamspotman.n
n
Definition: beamspotman.py:731
AGDDMaterial::m_matCreated
bool m_matCreated
Definition: AGDDMaterial.h:31
AGDDMaterial::m_a
double m_a
Definition: AGDDMaterial.h:29
AGDDMaterial::m_z
int m_z
Definition: AGDDMaterial.h:28
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AGDDSimpleMaterial::AGDDSimpleMaterial
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)
Definition: AGDDSimpleMaterial.h:17
AGDDSimpleMaterial::m_density
double m_density
Definition: AGDDSimpleMaterial.h:35
a
TList * a
Definition: liststreamerinfos.cxx:10
python.PyAthena.obj
obj
Definition: PyAthena.py:132
Material
@ Material
Definition: MaterialTypes.h:8
AGDDSimpleMaterial::m_name
std::string m_name
Definition: AGDDSimpleMaterial.h:34
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition: AGDDSimpleMaterial.h:38