CGEM BOSS
6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
bak_BesSim-00-04-14/src/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 "BesSensitiveManager.hh"
17
#include "G4VProcess.hh"
18
#include "G4RunManager.hh"
19
#include "BesRunAction.hh"
20
21
BesTrackingAction::BesTrackingAction
(
BesRunAction
* runAction)
22
:m_runAction(runAction)
23
{;}
24
25
BesTrackingAction::~BesTrackingAction
()
26
{;}
27
28
void
BesTrackingAction::PreUserTrackingAction
(
const
G4Track* track)
29
{
30
if
(m_runAction->
GetMCTruthFlag
()!=0)
31
{
32
BesSensitiveManager
* sensitiveManager =
BesSensitiveManager::GetSensitiveManager
();
33
sensitiveManager->
BeginOfTrack
(track);
34
}
35
}
36
37
void
BesTrackingAction::PostUserTrackingAction
(
const
G4Track* track)
38
{
39
if
(m_runAction->
GetMCTruthFlag
()!=0)
40
{
41
BesSensitiveManager
* sensitiveManager =
BesSensitiveManager::GetSensitiveManager
();
42
sensitiveManager->
EndOfTrack
(track, fpTrackingManager);
43
}
44
}
45
BesRunAction
Definition:
InstallArea/include/BesSim/BesSim/BesRunAction.hh:25
BesRunAction::GetMCTruthFlag
G4int GetMCTruthFlag()
Definition:
InstallArea/include/BesSim/BesSim/BesRunAction.hh:35
BesSensitiveManager
Definition:
InstallArea/include/TruSim/TruSim/BesSensitiveManager.hh:73
BesSensitiveManager::BeginOfTrack
void BeginOfTrack(const G4Track *track)
Definition:
BesSensitiveManager.cc:252
BesSensitiveManager::EndOfTrack
void EndOfTrack(const G4Track *track, G4TrackingManager *)
Definition:
BesSensitiveManager.cc:279
BesSensitiveManager::GetSensitiveManager
static BesSensitiveManager * GetSensitiveManager()
Definition:
InstallArea/include/TruSim/TruSim/BesSensitiveManager.hh:85
BesTrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *track)
Definition:
bak_BesSim-00-04-14/src/BesTrackingAction.cc:37
BesTrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *track)
Definition:
bak_BesSim-00-04-14/src/BesTrackingAction.cc:28
BesTrackingAction::BesTrackingAction
BesTrackingAction(BesRunAction *)
Definition:
bak_BesSim-00-04-14/src/BesTrackingAction.cc:21
BesTrackingAction::~BesTrackingAction
~BesTrackingAction()
Definition:
bak_BesSim-00-04-14/src/BesTrackingAction.cc:25
source
Simulation
BOOST
BesSim
bak_BesSim-00-04-14
src
BesTrackingAction.cc
Generated by
1.9.6