Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:24

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 #ifndef DDG4_GEANT4TRACKINFORMATION_H
0015 #define DDG4_GEANT4TRACKINFORMATION_H
0016 
0017 // Framework include files
0018 #include <G4VUserTrackInformation.hh>
0019 
0020 /// Namespace for the AIDA detector description toolkit
0021 namespace dd4hep {
0022 
0023   /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit
0024   namespace sim {
0025 
0026     /// Unused.
0027     /**
0028      *
0029      * @author  M.Frank
0030      * @version 1.0
0031      */
0032     class Geant4TrackInformation : public G4VUserTrackInformation {
0033     public:
0034       enum {
0035         STORE = 1 << 0, LAST = 1 << 31
0036       };
0037     protected:
0038       int m_flags;
0039 
0040     public:
0041       /// Default constructor
0042       Geant4TrackInformation();
0043       /// Standard destructor
0044       virtual ~Geant4TrackInformation();
0045       /// Access flag if track should be stored
0046       bool storeTrack() const {
0047         return (m_flags & STORE) != 0;
0048       }
0049       /// Access flag if track should be stored
0050       Geant4TrackInformation& storeTrack(bool value);
0051     };
0052 
0053 
0054   }    // End namespace sim
0055 }      // End namespace dd4hep
0056 
0057 #endif // DDG4_GEANT4TRACKINFORMATION_H