DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
include
DDG4
Geant4TrackingPreAction.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_GEANT4TRACKINGPREACTION_H
14
#define DDG4_GEANT4TRACKINGPREACTION_H
15
16
// Framework include files
17
#include <
DDG4/Geant4TrackingAction.h
>
18
20
namespace
dd4hep
{
21
23
namespace
sim {
24
26
31
class
Geant4TrackingPreAction
:
public
Geant4TrackingAction
{
32
public
:
34
Geant4TrackingPreAction
(
Geant4Context
*
context
,
const
std::string&
name
=
""
);
36
virtual
~Geant4TrackingPreAction
();
38
virtual
void
begin
(
const
G4Track* track)
override
;
40
virtual
void
end
(
const
G4Track* track)
override
;
41
};
42
}
// End namespace sim
43
}
// End namespace dd4hep
44
45
#endif // DDG4_GEANT4TRACKINGPREACTION_H
dd4hep::sim::Geant4TrackingPreAction::Geant4TrackingPreAction
Geant4TrackingPreAction(Geant4Context *context, const std::string &name="")
Standard constructor.
Definition:
Geant4TrackingPreAction.cpp:24
Geant4TrackingAction.h
dd4hep::sim::Geant4TrackingPreAction::begin
virtual void begin(const G4Track *track) override
Begin-of-tracking callback.
Definition:
Geant4TrackingPreAction.cpp:35
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition:
Geant4Action.h:280
dd4hep::sim::Geant4TrackingAction
Default base class for all geant 4 tracking actions used in DDG4.
Definition:
Geant4TrackingAction.h:41
dd4hep::sim::Geant4TrackingPreAction::~Geant4TrackingPreAction
virtual ~Geant4TrackingPreAction()
Default destructor.
Definition:
Geant4TrackingPreAction.cpp:30
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::sim::Geant4TrackingPreAction::end
virtual void end(const G4Track *track) override
End-of-tracking callback.
Definition:
Geant4TrackingPreAction.cpp:47
dd4hep::sim::Geant4TrackingPreAction
Default base class for all geant 4 tracking actions.
Definition:
Geant4TrackingPreAction.h:31
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
Generated on Tue Dec 10 2024 18:30:09 for DD4hep by
1.8.18