#include <BesSensitiveDetector.hh>
Inheritance diagram for BesSensitiveDetector:
Public Member Functions | |
virtual void | BeginOfTrack (const G4Track *) |
virtual void | BeginOfTrack (const G4Track *) |
virtual void | BeginOfTruthEvent (const G4Event *) |
virtual void | BeginOfTruthEvent (const G4Event *) |
BesSensitiveDetector (const G4String name) | |
BesSensitiveDetector (const G4String name) | |
virtual void | EndOfTrack (const G4Track *) |
virtual void | EndOfTrack (const G4Track *) |
virtual void | EndOfTruthEvent (const G4Event *) |
virtual void | EndOfTruthEvent (const G4Event *) |
virtual | ~BesSensitiveDetector () |
virtual | ~BesSensitiveDetector () |
Protected Member Functions | |
void | GetCurrentTrackIndex (G4int &trackIndex, G4int &g4TrackId) const |
void | GetCurrentTrackIndex (G4int &trackIndex, G4int &g4TrackId) const |
|
00022 : G4VSensitiveDetector(name) 00023 { 00024 BesSensitiveManager* manager = BesSensitiveManager::GetSensitiveManager(); 00025 manager->AddSensitiveDetector(this); 00026 }
|
|
00049 {;}
|
|
|
|
00049 {;}
|
|
00072 {;}
|
|
00072 {;}
|
|
Reimplemented in BesEmcSD, BesMdcSD, BesMucSD, BesTofSD, BesEmcSD, BesMdcSD, BesMucSD, and BesTofSD. 00059 {;}
|
|
Reimplemented in BesEmcSD, BesMdcSD, BesMucSD, BesTofSD, BesEmcSD, BesMdcSD, BesMucSD, and BesTofSD. 00059 {;}
|
|
00074 {;}
|
|
00074 {;}
|
|
Reimplemented in BesEmcSD, BesMdcSD, BesMucSD, BesTofSD, BesEmcSD, BesMdcSD, BesMucSD, and BesTofSD. 00060 {;}
|
|
Reimplemented in BesEmcSD, BesMdcSD, BesMucSD, BesTofSD, BesEmcSD, BesMdcSD, BesMucSD, and BesTofSD. 00060 {;}
|
|
|
|
00031 { 00032 BesSensitiveManager* manager = BesSensitiveManager::GetSensitiveManager(); 00033 if(manager) 00034 { 00035 trackIndex = manager->GetCurrentTrackIndex(); 00036 std::vector<BesTruthTrack*>* trackList = manager->GetTrackList(); 00037 if(trackList) 00038 { 00039 G4int size = trackList->size(); 00040 if(size>0) 00041 { 00042 for(G4int i=0;i<size;i++) 00043 { 00044 if( (*trackList)[i]->GetIndex() == trackIndex ) 00045 { 00046 g4TrackId = (*trackList)[i]->GetG4TrackId(); 00047 break; 00048 } 00049 } 00050 } 00051 } 00052 } 00053 }
|