BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTrackingAction.cc
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2////// BOOST --- BESIII Object_Oriented Simulation Tool //
3//////---------------------------------------------------------------------------//
4//////Description: operate on every track in simulation
5// PreUserTrackingAction: at the beginning of a track
6// PostUserTrackingAction: at the end of a track
7//////Author : Dengzy
8//
9// ////Created: Aug, 2004
10// ////Modified:
11// ////Comment:
12// ////---------------------------------------------------------------------------//
13// //// $Id:BesTrackingAction.cc
14
15#include "BesTrackingAction.hh"
16#include "BesRunAction.hh"
17#include "G4RunManager.hh"
18#include "G4VProcess.hh"
19#include "TruSim/BesSensitiveManager.hh"
20
21BesTrackingAction::BesTrackingAction( BesRunAction* runAction ) : m_runAction( runAction ) {
22 ;
23}
24
26
27void BesTrackingAction::PreUserTrackingAction( const G4Track* track ) {
28 if ( m_runAction->GetMCTruthFlag() != 0 )
29 {
31 sensitiveManager->BeginOfTrack( track );
32 }
33}
34
35void BesTrackingAction::PostUserTrackingAction( const G4Track* track ) {
36 if ( m_runAction->GetMCTruthFlag() != 0 )
37 {
39 sensitiveManager->EndOfTrack( track, fpTrackingManager );
40 }
41}
void BeginOfTrack(const G4Track *track)
void EndOfTrack(const G4Track *track, G4TrackingManager *)
void PostUserTrackingAction(const G4Track *track)
void PreUserTrackingAction(const G4Track *track)
BesTrackingAction(BesRunAction *)