48 : parentParticle(0), pdgID(0),
49 trackID(0), parentTrackID(0),
51 vertex(0), storeFlag(false)
121 for(nlevel=1;;nlevel++) {
123 if(p==0)
return nlevel;
142 std::ostringstream os;
146 std::string stid(os.str());
147 ostr << std::setw(6) << stid;
153 ostr.setf(std::ios::fixed);
156 <<
"," << std::setw(7) << std::setprecision(3)
158 <<
"," << std::setw(7) << std::setprecision(3)
160 <<
"," << std::setw(7) << std::setprecision(3)
165 ostr <<
" %" <<
vertex-> GetCreatorProcessName() <<
G4endl;
167 std::ostringstream osv;
170 osv << cqv <<
vertex-> GetID() <<
'\0';
171 std::string svid(osv.str());
172 ostr <<
" " << std::setw(6) << svid;
174 ostr.unsetf(std::ios::fixed);
176 ostr <<
"- X(" << std::setw(9) << std::setprecision(2)
178 <<
"," << std::setw(9) << std::setprecision(2)
180 <<
"," << std::setw(9) << std::setprecision(2)
182 <<
"," << std::setw(9) << std::setprecision(2)
184 ostr.unsetf(std::ios::scientific);
186 ostr <<
" @" <<
vertex-> GetVolumeName()
187 <<
"-" <<
vertex-> GetVolumeNumber();
201 SimParticleList::const_iterator itr;
204 (*itr)->
Print(ostr);
G4bool GetStoreFlag() const
void SetStoreFlag(G4bool q)
void SetStoreFlagToParentTree(G4bool q=true)
G4MCTSimParticle * parentParticle
void PrintSingle(std::ostream &ostr=std::cout) const
G4MCTSimParticle * GetParentParticle() const
G4LorentzVector momentumAtVertex
void SetParentParticle(const G4MCTSimParticle *p)
int AssociateParticle(G4MCTSimParticle *p)
std::vector< G4MCTSimParticle * > associatedParticleList
void Print(std::ostream &ostr=std::cout, G4bool qrevorder=false) const
virtual ~G4MCTSimParticle()
G4MCTSimParticle * GetAssociatedParticle(int i) const
int GetNofAssociatedParticles() const