Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4tgrVolumeAssembly.cc File Reference

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 131 of file G4tgrVolumeAssembly.cc.

132{
133 os << "G4tgrVolumeAssembly= " << obj.theName;
134
135 for( size_t ii = 0; ii < obj.theComponentNames.size(); ii++ )
136 {
137 os << obj.theComponentNames[ii] << " RotMatName= "
138 << obj.theComponentRMs[ii] << " Position= "
139 << obj.theComponentPos[ii].x() << " "
140 << obj.theComponentPos[ii].y() << " "
141 << obj.theComponentPos[ii].z();
142 }
143 os << G4endl;
144
145 return os;
146}
#define G4endl
Definition: G4ios.hh:52
std::vector< G4ThreeVector > theComponentPos
std::vector< G4String > theComponentRMs
std::vector< G4String > theComponentNames
G4String theName
Definition: G4tgrVolume.hh:108