ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDMolecule.cxx File Reference
Include dependency graph for AGDDMolecule.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

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}
static Double_t ss