58 int trackID= aparticle-> GetTrackID();
73 G4MCTSimParticleContainer::const_iterator
pos= particleMap.find(tid);
74 if(pos != particleMap.end()) {
85 int nv= vertexVec.size();
86 if(vid>=1 && vid<=nv) {
87 return vertexVec[vid-1];
97 G4MCTSimParticleContainer::iterator itr;
102 if (vertex-> GetID()<0) {
115 G4MCTSimParticleContainer::iterator itr;
121 G4MCTSimVertexContainer::iterator itrv;
134 G4MCTSimParticleContainer::const_iterator itr;
136 if(itr->
second-> GetStoreFlag()) n++;
146 G4MCTSimVertexContainer::const_iterator itr;
148 if((*itr)->GetStoreFlag()) n++;
158 ostr <<
"____________________________________________________"
159 "____________________________" <<
G4endl;
160 ostr <<
"SimEvent:" << G4endl <<
G4endl;
161 ostr <<
"Current Memory Usage: "
162 << particleMap.size() <<
" particles, "
163 << vertexVec.size() <<
" vertices."
165 ostr <<
"trk#<ptrk#: P(Px(GeV), Py, Pz, E ) @PDG %proc\n"
166 <<
" vtx#- X( X(mm), Y, Z, T(ns)) @vname-#"
168 ostr <<
"____________________________________________________"
169 "____________________________" <<
G4endl;
171 G4MCTSimParticleContainer::const_iterator itr;
172 for(itr= particleMap.begin(); itr!= particleMap.end(); ++itr) {
173 itr->
second-> PrintSingle(ostr);
175 ostr <<
"____________________________________________________"
176 "____________________________" <<
G4endl;
G4bool AddParticle(const G4MCTSimParticle *aparticle)
G4MCTSimParticle * FindParticle(int tid) const
void Print(std::ostream &ostr=std::cout) const
static constexpr double second
G4MCTSimVertexContainer vertexVec
G4MCTSimParticleContainer particleMap
void BuildVertexContainer()
int GetNofStoredParticles() const
G4MCTSimVertex * GetVertex(int vid) const
static const G4double pos
int GetNofStoredVertices() const