22 : G4VSensitiveDetector(name)
36 std::vector<BesTruthTrack*>* trackList = manager->
GetTrackList();
39 G4int size = trackList->size();
42 for(G4int i=0;i<size;i++)
44 if( (*trackList)[i]->GetIndex() == trackIndex )
46 g4TrackId = (*trackList)[i]->GetG4TrackId();
void GetCurrentTrackIndex(G4int &trackIndex, G4int &g4TrackId) const
BesSensitiveDetector(const G4String name)
G4int GetCurrentTrackIndex() const
void AddSensitiveDetector(BesSensitiveDetector *detector)
std::vector< BesTruthTrack * > * GetTrackList()
static BesSensitiveManager * GetSensitiveManager()