BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesSensitiveDetector Class Reference

#include <BesSensitiveDetector.hh>

+ Inheritance diagram for BesSensitiveDetector:

Public Member Functions

 BesSensitiveDetector (const G4String name)
 
virtual ~BesSensitiveDetector ()
 
virtual void BeginOfTruthEvent (const G4Event *)
 
virtual void EndOfTruthEvent (const G4Event *)
 
virtual void BeginOfTrack (const G4Track *)
 
virtual void EndOfTrack (const G4Track *)
 
 BesSensitiveDetector (const G4String name)
 
virtual ~BesSensitiveDetector ()
 
virtual void BeginOfTruthEvent (const G4Event *)
 
virtual void EndOfTruthEvent (const G4Event *)
 
virtual void BeginOfTrack (const G4Track *)
 
virtual void EndOfTrack (const G4Track *)
 

Protected Member Functions

void GetCurrentTrackIndex (G4int &trackIndex, G4int &g4TrackId) const
 
void GetCurrentTrackIndex (G4int &trackIndex, G4int &g4TrackId) const
 

Detailed Description

Constructor & Destructor Documentation

◆ BesSensitiveDetector() [1/2]

BesSensitiveDetector::BesSensitiveDetector ( const G4String  name)

Definition at line 21 of file BesSensitiveDetector.cc.

◆ ~BesSensitiveDetector() [1/2]

virtual BesSensitiveDetector::~BesSensitiveDetector ( )
inlinevirtual

◆ BesSensitiveDetector() [2/2]

BesSensitiveDetector::BesSensitiveDetector ( const G4String  name)

◆ ~BesSensitiveDetector() [2/2]

virtual BesSensitiveDetector::~BesSensitiveDetector ( )
inlinevirtual

Member Function Documentation

◆ BeginOfTrack() [1/2]

virtual void BesSensitiveDetector::BeginOfTrack ( const G4Track *  )
inlinevirtual

◆ BeginOfTrack() [2/2]

virtual void BesSensitiveDetector::BeginOfTrack ( const G4Track *  )
inlinevirtual

◆ BeginOfTruthEvent() [1/2]

virtual void BesSensitiveDetector::BeginOfTruthEvent ( const G4Event *  )
inlinevirtual

◆ BeginOfTruthEvent() [2/2]

virtual void BesSensitiveDetector::BeginOfTruthEvent ( const G4Event *  )
inlinevirtual

◆ EndOfTrack() [1/2]

virtual void BesSensitiveDetector::EndOfTrack ( const G4Track *  )
inlinevirtual

◆ EndOfTrack() [2/2]

virtual void BesSensitiveDetector::EndOfTrack ( const G4Track *  )
inlinevirtual

◆ EndOfTruthEvent() [1/2]

virtual void BesSensitiveDetector::EndOfTruthEvent ( const G4Event *  )
inlinevirtual

◆ EndOfTruthEvent() [2/2]

virtual void BesSensitiveDetector::EndOfTruthEvent ( const G4Event *  )
inlinevirtual

◆ GetCurrentTrackIndex() [1/2]

void BesSensitiveDetector::GetCurrentTrackIndex ( G4int &  trackIndex,
G4int &  g4TrackId 
) const
protected

Definition at line 30 of file BesSensitiveDetector.cc.

31{
33 if(manager)
34 {
35 trackIndex = manager->GetCurrentTrackIndex();
36 std::vector<BesTruthTrack*>* trackList = manager->GetTrackList();
37 if(trackList)
38 {
39 G4int size = trackList->size();
40 if(size>0)
41 {
42 for(G4int i=0;i<size;i++)
43 {
44 if( (*trackList)[i]->GetIndex() == trackIndex )
45 {
46 g4TrackId = (*trackList)[i]->GetG4TrackId();
47 break;
48 }
49 }
50 }
51 }
52 }
53}

Referenced by BesEmcSD::ProcessHits(), BesMdcSD::ProcessHits(), BesMucSD::ProcessHits(), and BesTofSD::ProcessHits().

◆ GetCurrentTrackIndex() [2/2]

void BesSensitiveDetector::GetCurrentTrackIndex ( G4int &  trackIndex,
G4int &  g4TrackId 
) const
protected

The documentation for this class was generated from the following files: