Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
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
18G4ThreadLocal G4Allocator<TG4TrackInformation>* gTrackInfoAllocator = 0;
19
20//_____________________________________________________________________________
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//_____________________________________________________________________________
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//_____________________________________________________________________________
51TG4TrackInformation::TG4TrackInformation(G4int trackParticleID,
52 G4int parentParticleID)
53 : G4VUserTrackInformation(),
54 fTrackParticleID(trackParticleID),
55 fParentParticleID(parentParticleID)
56{
57//
58}
59*/
60//_____________________________________________________________________________
65
66//
67// public methods
68//
69
70//_____________________________________________________________________________
72{
74
75 G4cout << "TrackParticleID: " << fTrackParticleID << " "
76 << "ParentParticleID: " << fParentParticleID;
77
78 if (fIsUserTrack) G4cout << " userTrack";
79 if (fStop) G4cout << " toStop";
80
82 fInitialTrackStatus->Print();
83 }
84
85 G4cout << G4endl;
86}
G4ThreadLocal G4Allocator< TG4TrackInformation > * gTrackInfoAllocator
Geant4 allocator for TG4TrackInformation objects.
Definition of the TG4TrackInformation class.
TMCParticleStatus * fInitialTrackStatus
G4bool fStop
true if track should be stopped
virtual void Print() const
G4int fParentParticleID
the index of parent track in VMC stack
G4int fTrackParticleID
the index of track particle in VMC stack
G4bool fIsUserTrack
true if defined by user and not primary track