BOSS
7.1.1
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Symbols
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
j
k
l
m
n
p
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
BOSS
Used Packages
Requirements
►
How to use the ERS package
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
7.1.1
►
Analysis
►
BesCxxPolicy
►
BesExamples
►
BesPolicy
►
Calibration
►
Control
►
Database
►
DetectorDescription
►
DistBoss
►
DQA
►
Emc
►
Event
►
EventDisplay
►
EventFilter
►
EvtPreSelect
►
External
►
Generator
►
InstallArea
►
LumTauAlg
►
MagneticField
►
Mdc
►
Muc
►
OfflineEvtFilter
►
Reconstruction
►
RootPolicy
▼
Simulation
►
BesEventMixer
▼
BOOST
▼
BesSim
▼
BesSim-00-01-30
►
BesSim
▼
src
BesActionInitializer.cc
BesAsciiIO.cc
BesDetectorConstruction.cc
BesEventAction.cc
BesLogSession.cc
►
BesMagneticField.cc
BesMagneticFieldMessenger.cc
BesMcTruthWriter.cc
BesPip.cc
BesPipParameter.cc
BesRawDataWriter.cc
BesRootIO.cc
BesRunAction.cc
BesRunActionMessenger.cc
BesSCM.cc
BesSCMParameter.cc
BesSim.cc
BesSteppingAction.cc
BesTDSWriter.cc
BesTrackingAction.cc
BesTuningIO.cc
►
EmcSim
►
GenSim
►
MdcSim
►
MdcTunningSvc
►
MucSim
►
PhySim
►
PrintMcInfo
►
SimUtil
►
TofSim
►
TruSim
►
G4Svc
►
McTestAlg
►
Realization
►
SimHelpers
►
Tof
►
Trigger
►
Utilities
►
Validation
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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 "
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
{;}
21
BesTrackingAction::BesTrackingAction
(
BesRunAction
* runAction) {
…
}
24
25
BesTrackingAction::~BesTrackingAction
()
26
{;}
25
BesTrackingAction::~BesTrackingAction
() {
…
}
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
}
28
void
BesTrackingAction::PreUserTrackingAction
(
const
G4Track* track) {
…
}
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
}
37
void
BesTrackingAction::PostUserTrackingAction
(
const
G4Track* track) {
…
}
45
BesRunAction.hh
BesSensitiveManager.hh
BesTrackingAction.hh
BesRunAction
Definition
BesRunAction.hh:25
BesRunAction::GetMCTruthFlag
G4int GetMCTruthFlag()
Definition
BesRunAction.hh:35
BesSensitiveManager
Definition
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
BesSensitiveManager.hh:85
BesTrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *track)
Definition
BesTrackingAction.cc:37
BesTrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *track)
Definition
BesTrackingAction.cc:28
BesTrackingAction::BesTrackingAction
BesTrackingAction(BesRunAction *)
Definition
BesTrackingAction.cc:21
BesTrackingAction::~BesTrackingAction
~BesTrackingAction()
Definition
BesTrackingAction.cc:25
7.1.1
Simulation
BOOST
BesSim
BesSim-00-01-30
src
BesTrackingAction.cc
Generated by
1.12.0