DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4TrackInformation.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 #ifndef DDG4_GEANT4TRACKINFORMATION_H
15 #define DDG4_GEANT4TRACKINFORMATION_H
16 
17 // Framework include files
18 #include <G4VUserTrackInformation.hh>
19 
21 namespace dd4hep {
22 
24  namespace sim {
25 
27 
33  public:
34  enum {
35  STORE = 1 << 0, LAST = 1 << 31
36  };
37  protected:
38  int m_flags;
39 
40  public:
44  virtual ~Geant4TrackInformation();
46  bool storeTrack() const {
47  return (m_flags & STORE) != 0;
48  }
51  };
52 
53 
54  } // End namespace sim
55 } // End namespace dd4hep
56 
57 #endif // DDG4_GEANT4TRACKINFORMATION_H
dd4hep::sim::Geant4TrackInformation::LAST
@ LAST
Definition: Geant4TrackInformation.h:35
dd4hep::sim::Geant4TrackInformation::~Geant4TrackInformation
virtual ~Geant4TrackInformation()
Standard destructor.
Definition: Geant4TrackInformation.cpp:25
dd4hep::sim::Geant4TrackInformation::STORE
@ STORE
Definition: Geant4TrackInformation.h:35
dd4hep::sim::Geant4TrackInformation::m_flags
int m_flags
Definition: Geant4TrackInformation.h:38
G4VUserTrackInformation
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
Definition: Geant4Classes.h:75
dd4hep::sim::Geant4TrackInformation
Unused.
Definition: Geant4TrackInformation.h:32
dd4hep::sim::Geant4TrackInformation::storeTrack
bool storeTrack() const
Access flag if track should be stored.
Definition: Geant4TrackInformation.h:46
dd4hep::sim::Geant4TrackInformation::Geant4TrackInformation
Geant4TrackInformation()
Default constructor.
Definition: Geant4TrackInformation.cpp:20
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28