DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4TrackingPostAction.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 #ifndef DDG4_GEANT4TRACKINGPOSTACTION_H
14 #define DDG4_GEANT4TRACKINGPOSTACTION_H
15 
16 // Framework include files
18 #include <vector>
19 
21 namespace dd4hep {
22 
24  namespace sim {
25 
27 
33  protected:
34  typedef std::vector<std::string> StringV;
38 
39  public:
41  Geant4TrackingPostAction(Geant4Context* context, const std::string& name = "");
43  virtual ~Geant4TrackingPostAction();
44 
46  void saveTrack(const G4Track* track);
47 
49  virtual void begin(const G4Track* track) override;
51  virtual void end(const G4Track* track) override;
52  };
53  } // End namespace sim
54 } // End namespace dd4hep
55 
56 #endif // DDG4_GEANT4TRACKINGPOSTACTION_H
dd4hep::sim::Geant4TrackingPostAction::~Geant4TrackingPostAction
virtual ~Geant4TrackingPostAction()
Default destructor.
Definition: Geant4TrackingPostAction.cpp:57
dd4hep::sim::Geant4TrackingPostAction::saveTrack
void saveTrack(const G4Track *track)
Definition: Geant4TrackingPostAction.cpp:100
Geant4TrackingAction.h
dd4hep::sim::Geant4TrackingPostAction::end
virtual void end(const G4Track *track) override
End-of-tracking callback.
Definition: Geant4TrackingPostAction.cpp:75
dd4hep::sim::Geant4TrackingPostAction::m_storeMarkedTracks
bool m_storeMarkedTracks
Definition: Geant4TrackingPostAction.h:37
dd4hep::sim::Geant4TrackingPostAction::m_requiredProcs
StringV m_requiredProcs
Definition: Geant4TrackingPostAction.h:35
dd4hep::sim::Geant4TrackingPostAction
Default base class for all geant 4 tracking actions.
Definition: Geant4TrackingPostAction.h:32
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition: Geant4Action.h:280
dd4hep::sim::Geant4TrackingPostAction::StringV
std::vector< std::string > StringV
Definition: Geant4TrackingPostAction.h:34
dd4hep::sim::Geant4TrackingPostAction::begin
virtual void begin(const G4Track *track) override
Begin-of-tracking callback.
Definition: Geant4TrackingPostAction.cpp:62
dd4hep::sim::Geant4TrackingAction
Default base class for all geant 4 tracking actions used in DDG4.
Definition: Geant4TrackingAction.h:41
dd4hep::sim::Geant4TrackingPostAction::m_ignoredProcs
StringV m_ignoredProcs
Definition: Geant4TrackingPostAction.h:36
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4TrackingPostAction::Geant4TrackingPostAction
Geant4TrackingPostAction(Geant4Context *context, const std::string &name="")
Standard constructor.
Definition: Geant4TrackingPostAction.cpp:48
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition: Geant4Context.h:201
dd4hep::sim::Geant4Action::context
Geant4Context * context() const
Access the context.
Definition: Geant4Action.h:270