Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/track/include/G4Track.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /track/include/G4Track.hh (Version 11.3.0) and /track/include/G4Track.hh (Version 9.6.p2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 // G4Track                                     << 
 27 //                                                 26 //
 28 // Class description:                          <<  27 // $Id$
 29 //                                                 28 //
 30 // This class describes the particle under tra <<  29 //
 31 // It includes information related to tracking <<  30 //---------------------------------------------------------------
                                                   >>  31 //
                                                   >>  32 // G4Track.hh
                                                   >>  33 //
                                                   >>  34 // Class Description:
                                                   >>  35 //   This class represents the partilce under tracking.
                                                   >>  36 //   It includes information related to tracking for examples:
 32 //     1) current position/time of the particl     37 //     1) current position/time of the particle,
 33 //     2) static particle information,             38 //     2) static particle information,
 34 //     3) the pointer to the physical volume w     39 //     3) the pointer to the physical volume where currently
 35 //        the particle exists                      40 //        the particle exists
 36                                                <<  41 //
 37 // Author: Katsuya Amako, KEK - 1995           <<  42 //---------------------------------------------------------------
 38 // Revisions: Hisaya Kurashige, 1998-2011      <<  43 //   Modification for G4TouchableHandle             22 Oct. 2001  R.Chytracek
 39 // ------------------------------------------- <<  44 //   Add MaterialCutCouple                          08 Oct. 2002  H.Kurashige
 40 #ifndef G4Track_hh                             <<  45 //   Add SetVelocityTableProperties                 02 Apr. 2011  H.Kurashige
 41 #define G4Track_hh 1                           <<  46 //   Add fVelocity and Set/GetVelocity              29 Apr. 2011  H.Kurashige
 42                                                <<  47 //   Use G4VelocityTable                     17 AUg. 2011 H.Kurashige
 43 #include <cmath>  // Include from 'system'     <<  48 
 44 #include <map>                                 <<  49 #ifndef G4Track_h
 45 #include <CLHEP/Units/PhysicalConstants.h>     <<  50 #define G4Track_h 1
 46                                                <<  51 
 47 #include "globals.hh"            // Include fr <<  52 #include "globals.hh"                 // Include from 'global'
 48 #include "trkdefs.hh"            // Include DL <<  53 #include <cmath>                      // Include from 'system'
 49 #include "G4ThreeVector.hh"      // Include fr <<  54 #include "G4ThreeVector.hh"           // Include from 'geometry'
 50 #include "G4LogicalVolume.hh"    // Include fr <<  55 #include "G4LogicalVolume.hh"         // Include from 'geometry'
 51 #include "G4VPhysicalVolume.hh"  // Include fr <<  56 #include "G4VPhysicalVolume.hh"       // Include from 'geometry'
 52 #include "G4Allocator.hh"        // Include fr <<  57 #include "G4Allocator.hh"             // Include from 'particle+matter'
 53 #include "G4DynamicParticle.hh"  // Include fr <<  58 #include "G4DynamicParticle.hh"       // Include from 'particle+matter'
 54 #include "G4TrackStatus.hh"      // Include fr <<  59 #include "G4TrackStatus.hh"           // Include from 'tracking'
 55 #include "G4TouchableHandle.hh"  // Include fr <<  60 #include "G4TouchableHandle.hh"       // Include from 'geometry'
 56 #include "G4VUserTrackInformation.hh"              61 #include "G4VUserTrackInformation.hh"
 57 #include "G4PhysicsModelCatalog.hh"            <<  62 
 58 #include "G4Material.hh"                           63 #include "G4Material.hh"
 59                                                    64 
 60 class G4Step;  // Forward declaration          <<  65 class G4Step;                         // Forward declaration
 61 class G4MaterialCutsCouple;                        66 class G4MaterialCutsCouple;
 62 class G4VAuxiliaryTrackInformation;            <<  67 class G4VelocityTable;
 63 class G4VProcess;                              << 
 64                                                    68 
                                                   >>  69 //////////////
 65 class G4Track                                      70 class G4Track
                                                   >>  71 ////////////// 
 66 {                                                  72 {
 67   public:                                      << 
 68     G4Track();                                 << 
 69       // Default constructor                   << 
 70     G4Track(G4DynamicParticle* apValueDynamicP << 
 71             G4double aValueTime,               << 
 72             const G4ThreeVector& aValuePositio << 
 73       // Constructor - aValueTime is a global  << 
 74                                                    73 
 75     G4Track(const G4Track&,G4bool copyTouchabl <<  74 //--------
 76       // Copy Constructor - copies members oth <<  75 public: // With description
 77                                                    76 
 78     ~G4Track();                                <<  77 // Constructor
 79       // Destructor                            <<  78    G4Track();
                                                   >>  79    G4Track(G4DynamicParticle* apValueDynamicParticle,
                                                   >>  80            G4double aValueTime,
                                                   >>  81            const G4ThreeVector& aValuePosition);
                                                   >>  82       // aValueTime is a global time
                                                   >>  83    G4Track(const G4Track&);
                                                   >>  84    // Copy Constructor copys members other than tracking information
                                                   >>  85  
                                                   >>  86 private:
                                                   >>  87   // Hide assignment operator as private
                                                   >>  88    G4Track& operator=(const  G4Track&);
                                                   >>  89 
                                                   >>  90 //--------
                                                   >>  91 public: // With description
                                                   >>  92 
                                                   >>  93 // Destrcutor
                                                   >>  94    ~G4Track();
 80                                                    95 
 81     inline void* operator new(std::size_t);    <<  96 // Operators
                                                   >>  97    inline void *operator new(size_t);
 82       // Override "new" for "G4Allocator".         98       // Override "new" for "G4Allocator".
 83     inline void operator delete(void* aTrack); <<  99    inline void operator delete(void *aTrack);
 84       // Override "delete" for "G4Allocator".     100       // Override "delete" for "G4Allocator".
 85                                                   101 
 86     G4Track& operator=(const G4Track&);        << 102    G4bool operator==( const G4Track& );
 87       // Assignment operator                   << 103   
 88                                                << 104 //--------
 89     inline G4bool operator==(const G4Track&);  << 105 public: // With description
 90     inline G4bool operator!=(const G4Track&);  << 106 // Copy information of the track (w/o tracking information)
 91       // Equality operators                    << 107    void CopyTrackInfo(const G4Track&);
                                                   >> 108 
                                                   >> 109 // Get/Set functions
                                                   >> 110   // track ID
                                                   >> 111    G4int GetTrackID() const;
                                                   >> 112    void SetTrackID(const G4int aValue);
                                                   >> 113 
                                                   >> 114    G4int GetParentID() const;
                                                   >> 115    void SetParentID(const G4int aValue);
                                                   >> 116 
                                                   >> 117   // dynamic particle 
                                                   >> 118    const G4DynamicParticle* GetDynamicParticle() const;
                                                   >> 119 
                                                   >> 120   // particle definition
                                                   >> 121     const G4ParticleDefinition* GetParticleDefinition() const;
                                                   >> 122    //  following method of GetDefinition remains 
                                                   >> 123    //  because of backward compatiblity. It will be removed in future 
                                                   >> 124    G4ParticleDefinition* GetDefinition() const;
                                                   >> 125 
                                                   >> 126    // position, time 
                                                   >> 127    const G4ThreeVector& GetPosition() const;
                                                   >> 128    void SetPosition(const G4ThreeVector& aValue);
                                                   >> 129 
                                                   >> 130    G4double GetGlobalTime() const;
                                                   >> 131    void SetGlobalTime(const G4double aValue);
                                                   >> 132      // Time since the event in which the track belongs is created.
                                                   >> 133 
                                                   >> 134    G4double GetLocalTime() const;
                                                   >> 135    void SetLocalTime(const G4double aValue);
                                                   >> 136       // Time since the current track is created.
 92                                                   137 
 93     void CopyTrackInfo(const G4Track&, G4bool  << 138    G4double GetProperTime() const;
 94       // Copy information of the track (w/o tr << 139    void SetProperTime(const G4double aValue);
                                                   >> 140       // Proper time of the current track
 95                                                   141 
 96     inline G4int GetTrackID() const;           << 142   // volume, material, touchable
 97     inline void SetTrackID(const G4int aValue) << 143    G4VPhysicalVolume* GetVolume() const;
 98       // Get/Set functions track ID            << 144    G4VPhysicalVolume* GetNextVolume() const;
 99                                                   145 
100     inline G4int GetParentID() const;          << 146    G4Material* GetMaterial() const;
101     inline void SetParentID(const G4int aValue << 147    G4Material* GetNextMaterial() const;
102                                                   148 
103     inline const G4DynamicParticle* GetDynamic << 149    const G4MaterialCutsCouple* GetMaterialCutsCouple() const;
104       // Dynamic particle                      << 150    const G4MaterialCutsCouple* GetNextMaterialCutsCouple() const;
105                                                   151 
106     inline const G4ParticleDefinition* GetPart << 152    const G4VTouchable*      GetTouchable() const;
107       // Particle definition                   << 153    const G4TouchableHandle& GetTouchableHandle() const;
108     inline G4ParticleDefinition* GetDefinition << 154    void SetTouchableHandle( const G4TouchableHandle& apValue);
109       // Obsolete, for backwards compatibility << 
110                                                   155 
111     inline const G4ThreeVector& GetPosition()  << 156    const G4VTouchable*      GetNextTouchable() const;
112     inline void SetPosition(const G4ThreeVecto << 157    const G4TouchableHandle& GetNextTouchableHandle() const;
113       // Position, time                        << 158    void SetNextTouchableHandle( const G4TouchableHandle& apValue);
114                                                   159 
115     inline G4double GetGlobalTime() const;     << 160    const G4VTouchable*      GetOriginTouchable() const;
116     inline void SetGlobalTime(const G4double a << 161    const G4TouchableHandle& GetOriginTouchableHandle() const;
117       // Time since the event in which the tra << 162    void SetOriginTouchableHandle( const G4TouchableHandle& apValue);
118                                                   163 
119     inline G4double GetLocalTime() const;      << 164   // energy
120     inline void SetLocalTime(const G4double aV << 165    G4double GetKineticEnergy() const;
121       // Time since the current track is creat << 166    void SetKineticEnergy(const G4double aValue);
122                                                   167 
123     inline G4double GetProperTime() const;     << 168    G4double GetTotalEnergy() const;
124     inline void SetProperTime(const G4double a << 
125       // Proper time of the current track      << 
126                                                   169 
127     inline G4VPhysicalVolume* GetVolume() cons << 
128     inline G4VPhysicalVolume* GetNextVolume()  << 
129       // Volume, material, touchable           << 
130                                                << 
131     inline G4Material* GetMaterial() const;    << 
132     inline G4Material* GetNextMaterial() const << 
133                                                << 
134     inline const G4MaterialCutsCouple* GetMate << 
135     inline const G4MaterialCutsCouple* GetNext << 
136                                                << 
137     inline const G4VTouchable* GetTouchable()  << 
138     inline const G4TouchableHandle& GetTouchab << 
139     inline void SetTouchableHandle(const G4Tou << 
140                                                << 
141     inline const G4VTouchable* GetNextTouchabl << 
142     inline const G4TouchableHandle& GetNextTou << 
143     inline void SetNextTouchableHandle(const G << 
144                                                << 
145     inline const G4VTouchable* GetOriginToucha << 
146     inline const G4TouchableHandle& GetOriginT << 
147     inline void SetOriginTouchableHandle(const << 
148                                                << 
149     inline G4double GetKineticEnergy() const;  << 
150     inline G4double GetTotalEnergy() const;    << 
151     inline void SetKineticEnergy(const G4doubl << 
152       // Energy                                << 
153                                                << 
154     inline G4ThreeVector GetMomentum() const;  << 
155     inline const G4ThreeVector& GetMomentumDir << 
156     inline void SetMomentumDirection(const G4T << 
157       // Momentum                              << 
158                                                << 
159     inline G4double GetVelocity() const;       << 
160     inline void SetVelocity(G4double val);     << 
161       // Velocity                              << 
162                                                << 
163     inline G4double CalculateVelocity() const; << 
164     G4double CalculateVelocityForOpticalPhoton << 
165                                                << 
166     inline G4bool UseGivenVelocity() const;    << 
167     inline void UseGivenVelocity(G4bool val);  << 
168                                                << 
169     inline const G4ThreeVector& GetPolarizatio << 
170     inline void SetPolarization(const G4ThreeV << 
171       // Polarization                          << 
172                                                << 
173     inline G4TrackStatus GetTrackStatus() cons << 
174     inline void SetTrackStatus(const G4TrackSt << 
175       // Track status, flags for tracking      << 
176                                                << 
177     inline G4bool IsBelowThreshold() const;    << 
178     inline void SetBelowThresholdFlag(G4bool v << 
179       // The flag of "BelowThreshold" is set t << 
180       // If this track energy is below thresho << 
181       // in this material is determined by the << 
182                                                << 
183     inline G4bool IsGoodForTracking() const;   << 
184     inline void SetGoodForTrackingFlag(G4bool  << 
185       // The flag of "GoodForTracking" is set  << 
186       // if this track should be tracked       << 
187       // even if the energy is below threshold << 
188                                                << 
189     inline G4double GetTrackLength() const;    << 
190     inline void AddTrackLength(const G4double  << 
191       // Accumulated track length              << 
192                                                << 
193     inline const G4Step* GetStep() const;      << 
194     inline void SetStep(const G4Step* aValue); << 
195       // Step information                      << 
196                                                << 
197     inline G4int GetCurrentStepNumber() const; << 
198     inline void IncrementCurrentStepNumber();  << 
199                                                << 
200     inline G4double GetStepLength() const;     << 
201     inline void SetStepLength(G4double value); << 
202       // Before the end of the AlongStepDoIt() << 
203       // the initial value which is determined << 
204       // proposed by a physics process. After  << 
205       // it will be set equal to 'StepLength'  << 
206                                                << 
207     inline const G4ThreeVector& GetVertexPosit << 
208     inline void SetVertexPosition(const G4Thre << 
209       // Vertex (where this track was created) << 
210                                                << 
211     inline const G4ThreeVector& GetVertexMomen << 
212     inline void SetVertexMomentumDirection(con << 
213                                                << 
214     inline G4double GetVertexKineticEnergy() c << 
215     inline void SetVertexKineticEnergy(const G << 
216                                                << 
217     inline const G4LogicalVolume* GetLogicalVo << 
218     inline void SetLogicalVolumeAtVertex(const << 
219                                                << 
220     inline const G4VProcess* GetCreatorProcess << 
221     inline void SetCreatorProcess(const G4VPro << 
222                                                << 
223     inline void SetCreatorModelID(const G4int  << 
224     inline G4int GetCreatorModelID() const;    << 
225     inline G4int GetCreatorModelIndex() const; << 
226     inline const G4String GetCreatorModelName( << 
227       // Identification of the physics model t << 
228       // each of the three information (ID, in << 
229       // (the model ID and its name are suppos << 
230       // code, whereas the index is meant for  << 
231                                                << 
232     inline const G4ParticleDefinition* GetPare << 
233     inline void SetParentResonanceDef(const G4 << 
234     inline G4int GetParentResonanceID() const; << 
235     inline void SetParentResonanceID(const G4i << 
236     inline G4bool HasParentResonance() const;  << 
237     inline G4int GetParentResonancePDGEncoding << 
238     inline G4String GetParentResonanceName() c << 
239     inline G4double GetParentResonanceMass() c << 
240       // Because short-lived resonances (e.g.  << 
241       // do not have corresponding track objec << 
242       // by a resonance parent, these methods  << 
243       // regarding this short-lived parent.    << 
244       // The ID is a unique (integer) identifi << 
245       // corresponds to the rounded integer of << 
246       // in keV), which allows to know if two  << 
247       // from the same parent resonance: this  << 
248       // the parent-track-ID (fParentID) which << 
249       // ancestor which is not a short-lived r << 
250       // a corresponding track object).        << 
251       // In the case of a track non originatin << 
252       // the above "Get" methods return, respe << 
253       // 0, "", 0.                             << 
254                                                << 
255     inline G4double GetWeight() const;         << 
256     inline void SetWeight(G4double aValue);    << 
257       // Track weight; methods for manipulatin << 
258                                                << 
259     inline G4VUserTrackInformation* GetUserInf << 
260     inline void SetUserInformation(G4VUserTrac << 
261       // User information                      << 
262                                                << 
263     void SetAuxiliaryTrackInformation(G4int id << 
264                                       G4VAuxil << 
265     G4VAuxiliaryTrackInformation* GetAuxiliary << 
266     inline std::map<G4int, G4VAuxiliaryTrackIn << 
267            GetAuxiliaryTrackInformationMap() c << 
268                                                << 
269     void RemoveAuxiliaryTrackInformation(G4int << 
270     void RemoveAuxiliaryTrackInformation(G4Str << 
271       // Note: G4VAuxiliaryTrackInformation ob << 
272                                                << 
273   private:                                     << 
274                                                << 
275     void ClearAuxiliaryTrackInformation();     << 
276                                                << 
277     // Member data                             << 
278                                                << 
279     G4ThreeVector fPosition;                   << 
280       // Current positon                       << 
281     G4double fGlobalTime = 0.0;                << 
282       // Time since the event is created       << 
283     G4double fLocalTime = 0.0;                 << 
284       // Time since the track is created       << 
285     G4double fTrackLength = 0.0;               << 
286       // Accumulated track length              << 
287                                                   170  
288     G4double fVelocity = 0.0;                  << 171   // moemtnum
                                                   >> 172    const G4ThreeVector& GetMomentumDirection() const;
                                                   >> 173    void SetMomentumDirection(const G4ThreeVector& aValue);
                                                   >> 174 
                                                   >> 175    G4ThreeVector GetMomentum() const;
                                                   >> 176 
                                                   >> 177    // velocity
                                                   >> 178    G4double GetVelocity() const;
                                                   >> 179    void     SetVelocity(G4double val);
                                                   >> 180  
                                                   >> 181    G4double CalculateVelocity() const;
                                                   >> 182    G4double CalculateVelocityForOpticalPhoton() const;
                                                   >> 183 
                                                   >> 184    G4bool   UseGivenVelocity() const; 
                                                   >> 185    void     UseGivenVelocity(G4bool val);
289                                                   186 
290     G4TouchableHandle fpTouchable;             << 187   // polarization 
291     G4TouchableHandle fpNextTouchable;         << 188    const G4ThreeVector& GetPolarization() const;
292     G4TouchableHandle fpOriginTouchable;       << 189    void SetPolarization(const G4ThreeVector& aValue);
293       // Touchable Handle                      << 190 
294                                                << 191   // track status, flags for tracking
295     G4DynamicParticle* fpDynamicParticle = nul << 192    G4TrackStatus GetTrackStatus() const;
296     mutable G4TrackStatus fTrackStatus = fAliv << 193    void SetTrackStatus(const G4TrackStatus aTrackStatus);
297                                                << 194 
298     G4double fStepLength = 0.0;                << 195    G4bool IsBelowThreshold() const;
299       // Before the end of the AlongStepDoIt l << 196    void   SetBelowThresholdFlag(G4bool value = true);
300       // Step length which is determined by th << 197      // The flag of "BelowThreshold" is set to true 
                                                   >> 198      // if this track energy is below threshold energy 
                                                   >> 199      //  in this material determined by the range cut value
                                                   >> 200 
                                                   >> 201    G4bool IsGoodForTracking() const;
                                                   >> 202    void   SetGoodForTrackingFlag(G4bool value = true);
                                                   >> 203      // The flag of "GoodForTracking" is set by processes 
                                                   >> 204      // if this track should be tracked
                                                   >> 205      // even if the energy is below threshold
                                                   >> 206 
                                                   >> 207   // track length
                                                   >> 208    G4double GetTrackLength() const;
                                                   >> 209    void AddTrackLength(const G4double aValue);
                                                   >> 210       // Accumulated the track length
                                                   >> 211 
                                                   >> 212   // step information
                                                   >> 213    const G4Step* GetStep() const;
                                                   >> 214    void SetStep(const G4Step* aValue);
                                                   >> 215 
                                                   >> 216    G4int GetCurrentStepNumber() const;
                                                   >> 217    void IncrementCurrentStepNumber();
                                                   >> 218 
                                                   >> 219    G4double GetStepLength() const;
                                                   >> 220    void SetStepLength(G4double value);
                                                   >> 221       // Before the end of the AlongStepDoIt loop,StepLength keeps 
                                                   >> 222       // the initial value which is determined by the shortest geometrical Step 
301       // proposed by a physics process. After     223       // proposed by a physics process. After finishing the AlongStepDoIt,
302       // this will be set equal to 'StepLength << 224       // it will be set equal to 'StepLength' in G4Step.
303                                                   225 
304     G4double fWeight = 1.0;                    << 226   // vertex (,where this track was created) information  
305       // This is a weight for this track       << 227    const G4ThreeVector& GetVertexPosition() const;
                                                   >> 228    void SetVertexPosition(const G4ThreeVector& aValue);
306                                                   229 
307     const G4Step* fpStep = nullptr;            << 230    const G4ThreeVector& GetVertexMomentumDirection() const;
                                                   >> 231    void SetVertexMomentumDirection(const G4ThreeVector& aValue);
308                                                   232 
309     G4ThreeVector fVtxPosition;                << 233    G4double GetVertexKineticEnergy() const;
310       // (x,y,z) of the vertex                 << 234    void SetVertexKineticEnergy(const G4double aValue);
311     G4ThreeVector fVtxMomentumDirection;       << 
312       // Momentum direction at the vertex      << 
313     G4double fVtxKineticEnergy = 0.0;          << 
314       // Kinetic energy at the vertex          << 
315     const G4LogicalVolume* fpLVAtVertex = null << 
316       // Logical Volume at the vertex          << 
317     const G4VProcess* fpCreatorProcess = nullp << 
318       // Process which created the track       << 
319                                                << 
320     mutable G4VUserTrackInformation* fpUserInf << 
321                                                << 
322     mutable G4Material* prev_mat = nullptr;    << 
323     mutable G4MaterialPropertyVector* groupvel << 
324     mutable G4double prev_velocity = 0.0;      << 
325     mutable G4double prev_momentum = 0.0;      << 
326       // cached values for CalculateVelocity   << 
327                                                << 
328     mutable std::map<G4int, G4VAuxiliaryTrackI << 
329             fpAuxiliaryTrackInformationMap = n << 
330                                                << 
331     G4int fCurrentStepNumber = 0;              << 
332       // Total steps number up to now          << 
333                                                << 
334     G4int fCreatorModelID = -1;                << 
335       // ID of the physics model which created << 
336                                                << 
337     const G4ParticleDefinition* fParentResonan << 
338       // Pointer to the particle definition of << 
339       // in the case that the track is produce << 
340       // (which does not have a corresponding  << 
341     G4int fParentResonanceID = 0;              << 
342       // Unique ID for the parent resonance, i << 
343       // is produced by a resonance parent, el << 
344                                                << 
345     G4int fParentID = 0;                       << 
346     G4int fTrackID = 0;                        << 
347                                                << 
348     G4bool fBelowThreshold = false;            << 
349       // This flag is set to true if this trac << 
350       // threshold energy in this material det << 
351     G4bool fGoodForTracking = false;           << 
352       // This flag is set by processes if this << 
353       // even if the energy is below threshold << 
354                                                   235 
355     G4bool is_OpticalPhoton = false;           << 236    const G4LogicalVolume* GetLogicalVolumeAtVertex() const;
                                                   >> 237    void SetLogicalVolumeAtVertex(const G4LogicalVolume* );
356                                                   238 
357     G4bool useGivenVelocity = false;           << 239    const G4VProcess* GetCreatorProcess() const;
358       // do not calculate velocity and just us << 240    void SetCreatorProcess(const G4VProcess* aValue);
359       // if this flag is set                   << 241 
                                                   >> 242   // track weight
                                                   >> 243   // These are methods for manipulating a weight for this track.
                                                   >> 244    G4double GetWeight() const;
                                                   >> 245    void     SetWeight(G4double aValue);
360                                                   246 
361     G4bool fCopyTouchables = true;             << 247   // User information
362 };                                             << 248   G4VUserTrackInformation* GetUserInformation() const;
                                                   >> 249   void SetUserInformation(G4VUserTrackInformation* aValue);
                                                   >> 250  
                                                   >> 251   // Velocity table
                                                   >> 252   static void SetVelocityTableProperties(G4double t_max, G4double t_min, G4int nbin);
                                                   >> 253   static G4double GetMaxTOfVelocityTable();
                                                   >> 254   static G4double GetMinTOfVelocityTable();
                                                   >> 255   static G4int    GetNbinOfVelocityTable();
                                                   >> 256 
                                                   >> 257 //---------
                                                   >> 258    private:
                                                   >> 259 //---------
                                                   >> 260    // Member data
                                                   >> 261    G4int fCurrentStepNumber;       // Total steps number up to now
                                                   >> 262    G4ThreeVector fPosition;        // Current positon
                                                   >> 263    G4double fGlobalTime;           // Time since the event is created
                                                   >> 264    G4double fLocalTime;            // Time since the track is created
                                                   >> 265    G4double fTrackLength;          // Accumulated track length
                                                   >> 266    G4int    fParentID;
                                                   >> 267    G4int    fTrackID;
                                                   >> 268    G4double fVelocity; 
                                                   >> 269 
                                                   >> 270    G4TouchableHandle fpTouchable;
                                                   >> 271    G4TouchableHandle fpNextTouchable;
                                                   >> 272    G4TouchableHandle fpOriginTouchable;
                                                   >> 273   // Touchable Handle
                                                   >> 274 
                                                   >> 275    G4DynamicParticle* fpDynamicParticle;
                                                   >> 276    G4TrackStatus fTrackStatus;
                                                   >> 277 
                                                   >> 278    G4bool  fBelowThreshold;
                                                   >> 279    // This flag is set to true if this track energy is below
                                                   >> 280    // threshold energy in this material determined by the range cut value
                                                   >> 281    G4bool  fGoodForTracking;
                                                   >> 282    // This flag is set by processes if this track should be tracked
                                                   >> 283    // even if the energy is below threshold
                                                   >> 284 
                                                   >> 285    G4double fStepLength;           
                                                   >> 286       // Before the end of the AlongStepDoIt loop, this keeps the initial 
                                                   >> 287       // Step length which is determined by the shortest geometrical Step 
                                                   >> 288       // proposed by a physics process. After finishing the AlongStepDoIt,
                                                   >> 289       // this will be set equal to 'StepLength' in G4Step.
                                                   >> 290 
                                                   >> 291    G4double fWeight;
                                                   >> 292      // This is a weight for this track 
                                                   >> 293 
                                                   >> 294    const G4Step* fpStep;
                                                   >> 295 
                                                   >> 296    G4ThreeVector fVtxPosition;          // (x,y,z) of the vertex
                                                   >> 297    G4ThreeVector fVtxMomentumDirection; // Momentum direction at the vertex
                                                   >> 298    G4double fVtxKineticEnergy;          // Kinetic energy at the vertex
                                                   >> 299    const G4LogicalVolume* fpLVAtVertex; //Logical Volume at the vertex
                                                   >> 300    const G4VProcess* fpCreatorProcess; // Process which created the track
                                                   >> 301    
                                                   >> 302    G4VUserTrackInformation* fpUserInformation;
                                                   >> 303 
                                                   >> 304    // cached values for CalculateVelocity  
                                                   >> 305    mutable G4Material*               prev_mat;
                                                   >> 306    mutable G4MaterialPropertyVector* groupvel;
                                                   >> 307    mutable G4double                  prev_velocity;
                                                   >> 308    mutable G4double                  prev_momentum;
                                                   >> 309 
                                                   >> 310    G4bool          is_OpticalPhoton; 
                                                   >> 311    static G4VelocityTable*  velTable;
                                                   >> 312  
                                                   >> 313    G4bool          useGivenVelocity;
                                                   >> 314       // do not calclulate velocity and just use current fVelocity
                                                   >> 315       // if this flag is set
                                                   >> 316       
                                                   >> 317 };  
363                                                   318 
364 #include "G4Track.icc"                            319 #include "G4Track.icc"
365                                                   320 
366 #endif                                            321 #endif
                                                   >> 322 
                                                   >> 323 
                                                   >> 324 
                                                   >> 325 
                                                   >> 326 
                                                   >> 327 
                                                   >> 328 
                                                   >> 329 
                                                   >> 330 
                                                   >> 331 
                                                   >> 332 
                                                   >> 333 
                                                   >> 334 
                                                   >> 335 
                                                   >> 336 
367                                                   337