Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4TruthTrackingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TruthTrackingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4TRUTHTRACKINGACTION_H
4
#define G4MAIN_PHG4TRUTHTRACKINGACTION_H
5
6
#include "
PHG4TrackingAction.h
"
7
8
#include <Geant4/G4ThreeVector.hh>
9
10
#include <map>
11
#include <vector>
12
13
class
G4Track;
14
class
PHCompositeNode
;
15
class
PHG4TruthInfoContainer
;
16
class
PHG4TruthEventAction
;
17
class
PHG4Particle
;
18
class
PHG4VtxPoint
;
19
20
class
PHG4TruthTrackingAction
:
public
PHG4TrackingAction
21
{
22
public
:
24
PHG4TruthTrackingAction
(
PHG4TruthEventAction
*);
25
27
~PHG4TruthTrackingAction
()
override
{}
28
30
void
PreUserTrackingAction
(
const
G4Track*)
override
;
31
32
void
PostUserTrackingAction
(
const
G4Track*)
override
;
33
35
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
36
37
int
ResetEvent
(
PHCompositeNode
*)
override
;
38
39
private
:
40
std::map<G4ThreeVector, int>
m_VertexMap
;
41
43
PHG4TruthEventAction
*
m_EventAction
;
44
46
PHG4TruthInfoContainer
*
m_TruthInfoList
;
47
48
PHG4Particle
*
AddParticle
(
PHG4TruthInfoContainer
&, G4Track&);
49
PHG4VtxPoint
*
AddVertex
(
PHG4TruthInfoContainer
&,
const
G4Track&);
50
54
void
UpdateG4ParticleStack
(
const
G4Track*);
55
56
struct
G4ParticleInfo
{
int
g4track_id
,
particle_id
,
vertex_id
; };
57
std::vector<G4ParticleInfo>
m_G4ParticleStack
;
58
G4ParticleInfo
m_CurrG4Particle
;
60
};
61
62
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4TruthTrackingAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration