Geant4 VMC
Version 6.6
Loading...
Searching...
No Matches
source
physics
src
TG4TrackInformation.cxx
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Geant4 Virtual Monte Carlo package
3
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
14
15
#include "
TG4TrackInformation.h
"
16
18
G4ThreadLocal G4Allocator<TG4TrackInformation>*
gTrackInfoAllocator
= 0;
19
20
//_____________________________________________________________________________
21
TG4TrackInformation::TG4TrackInformation
()
22
:
G4VUserTrackInformation
(),
23
fTrackParticleID(-1),
24
fParentParticleID(-1),
25
fPDGLifetime(-1.0),
26
fPDGEncoding(0),
27
fIsUserTrack(false),
28
fStop(false),
29
fInterrupt(false),
30
fInitialTrackStatus(nullptr)
31
{
33
}
34
35
//_____________________________________________________________________________
36
TG4TrackInformation::TG4TrackInformation
(G4int trackParticleID)
37
:
G4VUserTrackInformation
(),
38
fTrackParticleID(trackParticleID),
39
fParentParticleID(-1),
40
fPDGLifetime(-1.0),
41
fPDGEncoding(0),
42
fIsUserTrack(false),
43
fStop(false),
44
fInterrupt(false),
45
fInitialTrackStatus(nullptr)
46
{
48
}
49
/*
50
//_____________________________________________________________________________
51
TG4TrackInformation::TG4TrackInformation(G4int trackParticleID,
52
G4int parentParticleID)
53
: G4VUserTrackInformation(),
54
fTrackParticleID(trackParticleID),
55
fParentParticleID(parentParticleID)
56
{
57
//
58
}
59
*/
60
//_____________________________________________________________________________
61
TG4TrackInformation::~TG4TrackInformation
()
62
{
64
}
65
66
//
67
// public methods
68
//
69
70
//_____________________________________________________________________________
71
void
TG4TrackInformation::Print
()
const
72
{
74
75
G4cout <<
"TrackParticleID: "
<<
fTrackParticleID
<<
" "
76
<<
"ParentParticleID: "
<<
fParentParticleID
;
77
78
if
(
fIsUserTrack
) G4cout <<
" userTrack"
;
79
if
(
fStop
) G4cout <<
" toStop"
;
80
81
if
(
fInitialTrackStatus
) {
82
fInitialTrackStatus
->Print();
83
}
84
85
G4cout << G4endl;
86
}
gTrackInfoAllocator
G4ThreadLocal G4Allocator< TG4TrackInformation > * gTrackInfoAllocator
Geant4 allocator for TG4TrackInformation objects.
Definition
TG4TrackInformation.cxx:18
TG4TrackInformation.h
Definition of the TG4TrackInformation class.
G4VUserTrackInformation
TG4TrackInformation::fInitialTrackStatus
TMCParticleStatus * fInitialTrackStatus
Definition
TG4TrackInformation.h:81
TG4TrackInformation::~TG4TrackInformation
virtual ~TG4TrackInformation()
Definition
TG4TrackInformation.cxx:61
TG4TrackInformation::fStop
G4bool fStop
true if track should be stopped
Definition
TG4TrackInformation.h:76
TG4TrackInformation::TG4TrackInformation
TG4TrackInformation()
Definition
TG4TrackInformation.cxx:21
TG4TrackInformation::Print
virtual void Print() const
Definition
TG4TrackInformation.cxx:71
TG4TrackInformation::fParentParticleID
G4int fParentParticleID
the index of parent track in VMC stack
Definition
TG4TrackInformation.h:72
TG4TrackInformation::fTrackParticleID
G4int fTrackParticleID
the index of track particle in VMC stack
Definition
TG4TrackInformation.h:71
TG4TrackInformation::fIsUserTrack
G4bool fIsUserTrack
true if defined by user and not primary track
Definition
TG4TrackInformation.h:75
Generated on Thu Nov 28 2024 11:31:07 for Geant4 VMC by
1.12.0