ATLAS Offline Software
AGDDMolecule.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
10 #include <iostream>
11 
12 std::ostream& operator <<(std::ostream& os, const AGDDMolecule &obj)
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 }
24 
25 AGDDMolecule::AGDDMolecule(AGDDMaterialStore& ms, const std::string& n, double d):
27 {
29 }
30 
31 void AGDDMolecule::AddElement(AGDDMaterialStore& ms, const std::string& el)
32 {
33  AGDDElement* element=ms.GetElement(el);
34  m_theElements.push_back(element);
35 }
37 {
38  m_theComposition.push_back(i);
39 }
AGDDMolecule
Definition: AGDDMolecule.h:16
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
AGDDMolecule.h
AGDDMaterialStore.h
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
operator<<
std::ostream & operator<<(std::ostream &os, const AGDDMolecule &obj)
Definition: AGDDMolecule.cxx:12
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
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
AGDDSimpleMaterial
Definition: AGDDSimpleMaterial.h:14
AGDDMolecule::NAtoms
void NAtoms(int)
Definition: AGDDMolecule.cxx:36
AGDDSimpleMaterial.h
AGDDElement.h
AGDDElement
Definition: AGDDElement.h:11
AGDDMolecule::AddElement
void AddElement(AGDDMaterialStore &ms, const std::string &)
Definition: AGDDMolecule.cxx:31
python.PyAthena.obj
obj
Definition: PyAthena.py:135
AGDDMolecule::AGDDMolecule
AGDDMolecule(AGDDMaterialStore &ms, const std::string &, double)
Definition: AGDDMolecule.cxx:25
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition: AGDDSimpleMaterial.h:38
AGDDMolecule::m_theElements
std::vector< AGDDElement * > m_theElements
Definition: AGDDMolecule.h:26