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 #ifndef DDG4_GEANT4TRACKINGPREACTION_H
0014 #define DDG4_GEANT4TRACKINGPREACTION_H
0015 
0016 // Framework include files
0017 #include <DDG4/Geant4TrackingAction.h>
0018 
0019 /// Namespace for the AIDA detector description toolkit
0020 namespace dd4hep {
0021 
0022   /// Namespace for the Geant4 based simulation part of the AIDA detector description toolkit
0023   namespace sim {
0024 
0025     /// Default base class for all geant 4 tracking actions.
0026     /**
0027      *  \author  M.Frank
0028      *  \version 1.0
0029      *  \ingroup DD4HEP_SIMULATION
0030      */
0031     class Geant4TrackingPreAction: public Geant4TrackingAction {
0032     public:
0033       /// Standard constructor
0034       Geant4TrackingPreAction(Geant4Context* context, const std::string& name = "");
0035       /// Default destructor
0036       virtual ~Geant4TrackingPreAction();
0037       /// Begin-of-tracking callback
0038       virtual void begin(const G4Track* track)  override;
0039       /// End-of-tracking callback
0040       virtual void end(const G4Track* track)  override;
0041     };
0042   }    // End namespace sim
0043 }      // End namespace dd4hep
0044 
0045 #endif // DDG4_GEANT4TRACKINGPREACTION_H