Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics
include
TG4TrackInformation.h
Go to the documentation of this file.
1
#ifndef TG4_TRACK_INFORMATION_H
2
#define TG4_TRACK_INFORMATION_H
3
4
//------------------------------------------------
5
// The Geant4 Virtual Monte Carlo package
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
17
18
#include <G4Allocator.hh>
19
#include <G4VUserTrackInformation.hh>
20
#include <globals.hh>
21
22
class
G4ParticleDefinition
;
23
struct
TMCParticleStatus;
24
29
30
class
TG4TrackInformation
:
public
G4VUserTrackInformation
31
{
32
public
:
33
TG4TrackInformation
();
34
TG4TrackInformation
(G4int trackParticleID);
35
// TG4TrackInformation(G4int trackParticleID, G4int parentParticleID);
36
virtual
~TG4TrackInformation
();
37
38
// operators required by G4
39
41
inline
void
*
operator
new
(size_t);
43
inline
void
operator
delete
(
void
* trackInformation);
44
45
// methods
46
virtual
void
Print
()
const
;
47
48
// set methods
49
void
SetTrackParticleID
(G4int trackParticleID);
50
void
SetParentParticleID
(G4int parentParticleID);
51
void
SetPDGLifetime
(G4double pdgLifetime);
52
void
SetPDGEncoding
(G4int pdgEncoding);
53
void
SetInitialTrackStatus
(TMCParticleStatus* status);
54
void
SetIsUserTrack
(G4bool isUserTrack);
55
void
SetStop
(G4bool stop);
56
void
SetInterrupt
(G4bool interrupt);
57
58
// get methods
59
G4int
GetTrackParticleID
()
const
;
60
G4int
GetParentParticleID
()
const
;
61
G4double
GetPDGLifetime
()
const
;
62
G4int
GetPDGEncoding
()
const
;
63
const
TMCParticleStatus*
GetInitialTrackStatus
()
const
;
64
G4bool
IsUserTrack
()
const
;
65
G4bool
IsStop
()
const
;
66
G4bool
IsInterrupt
()
const
;
67
68
private
:
69
// data members
70
71
G4int
fTrackParticleID
;
72
G4int
fParentParticleID
;
73
G4double
fPDGLifetime
;
74
G4double
fPDGEncoding
;
75
G4bool
fIsUserTrack
;
76
G4bool
fStop
;
77
G4bool
fInterrupt
;
81
TMCParticleStatus*
fInitialTrackStatus
;
82
};
83
84
// inline methods
85
#include "
TG4TrackInformation.icc
"
86
87
#endif
// TG4_TRACK_INFORMATION_H
TG4TrackInformation.icc
G4ParticleDefinition
G4VUserTrackInformation
TG4TrackInformation::fInitialTrackStatus
TMCParticleStatus * fInitialTrackStatus
Definition
TG4TrackInformation.h:81
TG4TrackInformation::SetIsUserTrack
void SetIsUserTrack(G4bool isUserTrack)
TG4TrackInformation::GetPDGEncoding
G4int GetPDGEncoding() const
TG4TrackInformation::GetInitialTrackStatus
const TMCParticleStatus * GetInitialTrackStatus() const
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::SetParentParticleID
void SetParentParticleID(G4int parentParticleID)
TG4TrackInformation::SetInterrupt
void SetInterrupt(G4bool interrupt)
TG4TrackInformation::Print
virtual void Print() const
Definition
TG4TrackInformation.cxx:71
TG4TrackInformation::IsUserTrack
G4bool IsUserTrack() const
TG4TrackInformation::fParentParticleID
G4int fParentParticleID
the index of parent track in VMC stack
Definition
TG4TrackInformation.h:72
TG4TrackInformation::SetPDGLifetime
void SetPDGLifetime(G4double pdgLifetime)
TG4TrackInformation::GetTrackParticleID
G4int GetTrackParticleID() const
TG4TrackInformation::IsInterrupt
G4bool IsInterrupt() const
TG4TrackInformation::GetPDGLifetime
G4double GetPDGLifetime() const
TG4TrackInformation::SetInitialTrackStatus
void SetInitialTrackStatus(TMCParticleStatus *status)
TG4TrackInformation::fPDGLifetime
G4double fPDGLifetime
the original particle PDG lifetime
Definition
TG4TrackInformation.h:73
TG4TrackInformation::fPDGEncoding
G4double fPDGEncoding
the particle PDG encoding
Definition
TG4TrackInformation.h:74
TG4TrackInformation::fInterrupt
G4bool fInterrupt
Definition
TG4TrackInformation.h:77
TG4TrackInformation::fTrackParticleID
G4int fTrackParticleID
the index of track particle in VMC stack
Definition
TG4TrackInformation.h:71
TG4TrackInformation::SetPDGEncoding
void SetPDGEncoding(G4int pdgEncoding)
TG4TrackInformation::IsStop
G4bool IsStop() const
TG4TrackInformation::SetStop
void SetStop(G4bool stop)
TG4TrackInformation::SetTrackParticleID
void SetTrackParticleID(G4int trackParticleID)
TG4TrackInformation::fIsUserTrack
G4bool fIsUserTrack
true if defined by user and not primary track
Definition
TG4TrackInformation.h:75
TG4TrackInformation::GetParentParticleID
G4int GetParentParticleID() const
Generated on
for Geant4 VMC by
1.17.0