130 std::ostringstream os;
135 std::string stid(os.str());
136 ostr << std::setw(6) << stid;
144 ostr.setf(std::ios::fixed);
145 ostr <<
": P(" << std::setw(7) << std::setprecision(3)
149 <<
"," << std::setw(7) << std::setprecision(3)
155 ostr <<
" %" <<
vertex->GetCreatorProcessName() <<
G4endl;
157 std::ostringstream osv;
159 if(
vertex->GetStoreFlag())
161 osv << cqv <<
vertex->GetID() <<
'\0';
162 std::string svid(osv.str());
163 ostr <<
" " << std::setw(6) << svid;
165 ostr.unsetf(std::ios::fixed);
166 ostr.setf(std::ios::scientific | std::ios::right | std::ios::showpoint);
167 ostr <<
"- X(" << std::setw(9) << std::setprecision(2)
168 <<
vertex->GetPosition().x() / mm <<
"," << std::setw(9)
169 << std::setprecision(2) <<
vertex->GetPosition().y() / mm <<
","
170 << std::setw(9) << std::setprecision(2)
171 <<
vertex->GetPosition().z() / mm <<
"," << std::setw(9)
172 << std::setprecision(2) <<
vertex->GetTime() /
ns <<
")";
173 ostr.unsetf(std::ios::scientific);
175 ostr <<
" @" <<
vertex->GetVolumeName() <<
"-" <<
vertex->GetVolumeNumber();
G4MCTSimParticle * GetParentParticle() const
void Print(std::ostream &ostr=std::cout, G4bool qrevorder=false) const
void SetStoreFlagToParentTree(G4bool q=true)
virtual ~G4MCTSimParticle()
G4MCTSimParticle * parentParticle
G4MCTSimParticle * GetAssociatedParticle(G4int i) const
G4LorentzVector momentumAtVertex
G4int GetTreeLevel() const
void SetParentParticle(const G4MCTSimParticle *p)
void PrintSingle(std::ostream &ostr=std::cout) const
G4int AssociateParticle(G4MCTSimParticle *p)
G4int GetNofAssociatedParticles() const
std::vector< G4MCTSimParticle * > associatedParticleList