| 172 | } |
| 173 | |
| 174 | G4int G4Event::StoreSubEvent(G4int ty,G4SubEvent* se) |
| 175 | { |
| 176 | G4AutoLock lock(&SubEventMutex); |
| 177 | std::set<G4SubEvent*>* sev = nullptr; |
| 178 | auto ses = fSubEvtStackMap.find(ty); |
| 179 | if(ses==fSubEvtStackMap.end()) |
| 180 | { |
| 181 | sev = new std::set<G4SubEvent*>; |
| 182 | fSubEvtStackMap[ty] = sev; |
| 183 | } |
| 184 | else |
| 185 | { sev = ses->second; } |
| 186 | sev->insert(se); |
| 187 | return (G4int)sev->size(); |
| 188 | } |
| 189 | |
| 190 | G4SubEvent* G4Event::PopSubEvent(G4int ty) |
| 191 | { |
no test coverage detected