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

#include <AGDDMolecule.h>

Inheritance diagram for AGDDMolecule:
Collaboration diagram for AGDDMolecule:

Public Member Functions

 AGDDMolecule (AGDDMaterialStore &ms, const std::string &, double)
 
void AddElement (AGDDMaterialStore &ms, const std::string &)
 
void NAtoms (int)
 
int NComponents () const
 
AGDDElementElement (int i)
 
int Composition (int i) const
 
void RegisterToStore (AGDDMaterialStore &ms, AGDDSimpleMaterial *)
 
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
 

Private Attributes

std::vector< AGDDElement * > m_theElements
 
std::vector< int > m_theComposition
 

Friends

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

Detailed Description

Definition at line 16 of file AGDDMolecule.h.

Constructor & Destructor Documentation

◆ AGDDMolecule()

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

Definition at line 25 of file AGDDMolecule.cxx.

25  :
27 {
29 }

Member Function Documentation

◆ AddElement()

void AGDDMolecule::AddElement ( AGDDMaterialStore ms,
const std::string &  el 
)

Definition at line 31 of file AGDDMolecule.cxx.

32 {
33  AGDDElement* element=ms.GetElement(el);
34  m_theElements.push_back(element);
35 }

◆ Composition()

int AGDDMolecule::Composition ( int  i) const
inline

Definition at line 24 of file AGDDMolecule.h.

24 {return m_theComposition[i];}

◆ Created()

void AGDDSimpleMaterial::Created ( bool  b)
inlineinherited

Definition at line 29 of file AGDDSimpleMaterial.h.

29 {m_created=b;}

◆ Element()

AGDDElement* AGDDMolecule::Element ( int  i)
inline

Definition at line 23 of file AGDDMolecule.h.

23 {return m_theElements[i];}

◆ Extant()

bool AGDDSimpleMaterial::Extant ( ) const
inlineinherited

Definition at line 30 of file AGDDSimpleMaterial.h.

30 {return m_created;}

◆ GetDensity()

double AGDDSimpleMaterial::GetDensity ( ) const
inlineinherited

Definition at line 27 of file AGDDSimpleMaterial.h.

27 {return m_density;}

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

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

Definition at line 23 of file AGDDSimpleMaterial.cxx.

24 {
25  return m_name;
26 }

◆ NAtoms()

void AGDDMolecule::NAtoms ( int  i)

Definition at line 36 of file AGDDMolecule.cxx.

37 {
38  m_theComposition.push_back(i);
39 }

◆ NComponents()

int AGDDMolecule::NComponents ( ) const
inline

Definition at line 22 of file AGDDMolecule.h.

22 {return m_theElements.size();}

◆ 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 AGDDMolecule obj 
)
friend

Definition at line 12 of file AGDDMolecule.cxx.

13 {
14  os<<"- Material "<<obj.m_name<<" type=Molecule density="<<obj.m_density<<std::endl;
15  os<<"\tcomponents"<<std::endl;
16  for (unsigned int i=0;i<obj.m_theElements.size();i++)
17  {
18  const std::string ss=obj.m_theElements[i]->GetName();
19  const int ii=obj.m_theComposition[i];
20  os<<"\t\t element "<<ss<<" natoms="<<ii<<std::endl;
21  }
22  return os;
23 }

Member Data Documentation

◆ 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_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_theComposition

std::vector<int> AGDDMolecule::m_theComposition
private

Definition at line 27 of file AGDDMolecule.h.

◆ m_theElements

std::vector<AGDDElement*> AGDDMolecule::m_theElements
private

Definition at line 26 of file AGDDMolecule.h.

◆ m_theMaterial

void* AGDDSimpleMaterial::m_theMaterial
protectedinherited

Definition at line 39 of file AGDDSimpleMaterial.h.


The documentation for this class was generated from the following files:
Molecule
@ Molecule
Definition: MaterialTypes.h:8
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
hist_file_dump.d
d
Definition: hist_file_dump.py:137
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:53
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDSimpleMaterial::m_theMaterial
void * m_theMaterial
Definition: AGDDSimpleMaterial.h:39
AGDDMolecule::m_theComposition
std::vector< int > m_theComposition
Definition: AGDDMolecule.h:27
lumiFormat.i
int i
Definition: lumiFormat.py:92
beamspotman.n
n
Definition: beamspotman.py:731
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
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
AGDDElement
Definition: AGDDElement.h:11
AGDDSimpleMaterial::m_density
double m_density
Definition: AGDDSimpleMaterial.h:35
AGDDSimpleMaterial::m_created
bool m_created
Definition: AGDDSimpleMaterial.h:36
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
python.PyAthena.obj
obj
Definition: PyAthena.py:135
AGDDSimpleMaterial::m_name
std::string m_name
Definition: AGDDSimpleMaterial.h:34
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition: AGDDSimpleMaterial.h:38
AGDDMolecule::m_theElements
std::vector< AGDDElement * > m_theElements
Definition: AGDDMolecule.h:26