Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:26

0001 #ifndef SimG4Core_CurrentG4Track_H
0002 #define SimG4Core_CurrentG4Track_H
0003 
0004 #include "G4Track.hh"
0005 
0006 /** This class is NOT intended for general use.
0007  *  It provides immediate access to the currently tracked G4Track
0008  *  for places that can't access this information easily,
0009  *  like StackingAction.
0010  *  If an acceptable  geant4 mechanism is found for this,
0011  *  this class will be removed.
0012  */
0013 
0014 class CurrentG4Track {
0015 public:
0016   static const G4Track *track();
0017   static void setTrack(const G4Track *);
0018 
0019 private:
0020   static thread_local const G4Track *m_track;
0021 };
0022 
0023 #endif