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

#include <AGDDSimpleMaterial.h>

Inheritance diagram for AGDDSimpleMaterial:
Collaboration diagram for AGDDSimpleMaterial:

Public Member Functions

 AGDDSimpleMaterial (AGDDMaterialStore &ms, const std::string &n, double d)
 
virtual ~AGDDSimpleMaterial ()
 
void RegisterToStore (AGDDMaterialStore &ms, AGDDSimpleMaterial *)
 
const std::string & GetName () const
 
double GetDensity () const
 
material_type GetMaterialType () const
 
void Created (bool b)
 
bool Extant () 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
 

Friends

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

Detailed Description

Definition at line 14 of file AGDDSimpleMaterial.h.

Constructor & Destructor Documentation

◆ AGDDSimpleMaterial()

AGDDSimpleMaterial::AGDDSimpleMaterial ( AGDDMaterialStore ms,
const std::string &  n,
double  d 
)
inline

Definition at line 17 of file AGDDSimpleMaterial.h.

18  :
20  {
22  RegisterToStore(ms, this);
23  }

◆ ~AGDDSimpleMaterial()

virtual AGDDSimpleMaterial::~AGDDSimpleMaterial ( )
inlinevirtual

Definition at line 24 of file AGDDSimpleMaterial.h.

24 {}

Member Function Documentation

◆ Created()

void AGDDSimpleMaterial::Created ( bool  b)
inline

Definition at line 29 of file AGDDSimpleMaterial.h.

29 {m_created=b;}

◆ Extant()

bool AGDDSimpleMaterial::Extant ( ) const
inline

Definition at line 30 of file AGDDSimpleMaterial.h.

30 {return m_created;}

◆ GetDensity()

double AGDDSimpleMaterial::GetDensity ( ) const
inline

Definition at line 27 of file AGDDSimpleMaterial.h.

27 {return m_density;}

◆ GetMaterial()

void* AGDDSimpleMaterial::GetMaterial ( )
inline

Definition at line 31 of file AGDDSimpleMaterial.h.

31 {return m_theMaterial;}

◆ GetMaterialType()

material_type AGDDSimpleMaterial::GetMaterialType ( ) const
inline

Definition at line 28 of file AGDDSimpleMaterial.h.

28 {return m_mType;}

◆ GetName()

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

Definition at line 23 of file AGDDSimpleMaterial.cxx.

24 {
25  return m_name;
26 }

◆ RegisterToStore()

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

Definition at line 17 of file AGDDSimpleMaterial.cxx.

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

◆ SetMaterial()

void AGDDSimpleMaterial::SetMaterial ( void *  mat)
inline

Definition at line 32 of file AGDDSimpleMaterial.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 10 of file AGDDSimpleMaterial.cxx.

11 {
12  os<<"- Material "<<obj.m_name<<" type="<<obj.m_mType<<" density="<<obj.m_density<<std::endl;
13  return os;
14 }

Member Data Documentation

◆ m_created

bool AGDDSimpleMaterial::m_created
protected

Definition at line 36 of file AGDDSimpleMaterial.h.

◆ m_density

double AGDDSimpleMaterial::m_density
protected

Definition at line 35 of file AGDDSimpleMaterial.h.

◆ m_mType

material_type AGDDSimpleMaterial::m_mType
protected

Definition at line 38 of file AGDDSimpleMaterial.h.

◆ m_name

std::string AGDDSimpleMaterial::m_name
protected

Definition at line 34 of file AGDDSimpleMaterial.h.

◆ m_theMaterial

void* AGDDSimpleMaterial::m_theMaterial
protected

Definition at line 39 of file AGDDSimpleMaterial.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
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
AGDDSimpleMaterial::RegisterToStore
void RegisterToStore(AGDDMaterialStore &ms, AGDDSimpleMaterial *)
Definition: AGDDSimpleMaterial.cxx:17
beamspotman.n
n
Definition: beamspotman.py:731
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Region::Undefined
@ Undefined
AGDDSimpleMaterial::m_density
double m_density
Definition: AGDDSimpleMaterial.h:35
AGDDSimpleMaterial::m_created
bool m_created
Definition: AGDDSimpleMaterial.h:36
python.PyAthena.obj
obj
Definition: PyAthena.py:132
AGDDSimpleMaterial::m_name
std::string m_name
Definition: AGDDSimpleMaterial.h:34
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition: AGDDSimpleMaterial.h:38