|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4TESTACTIONS_H
14 #define DDG4_GEANT4TESTACTIONS_H
85 void begin(
const G4Run*)
override;
87 void end(
const G4Run*)
override;
107 virtual void begin(
const G4Event*)
override;
109 virtual void end(
const G4Event*)
override;
113 void endRun(
const G4Run*);
130 virtual void begin(
const G4Track*)
override;
132 virtual void end(
const G4Track*)
override;
148 void operator()(
const G4Step*, G4SteppingManager*)
override;
164 virtual void newStage(G4StackManager*)
override;
166 virtual void prepare(G4StackManager*)
override;
186 virtual void begin(G4HCofThisEvent*)
override;
188 virtual void end(G4HCofThisEvent*)
override;
190 virtual bool process(
const G4Step*, G4TouchableHistory*)
override;
196 #endif // DDG4_GEANT4TESTACTIONS_H
void operator()(const G4Step *, G4SteppingManager *) override
User stepping callback.
Example stepping action doing nothing, but print.
virtual void end(const G4Event *) override
End-of-event callback.
Concrete implementation of the Geant4 stepping action sequence.
Example generator action doing nothing, but print.
Geant4TestEventAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.
Geant4TestStepAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.
virtual void begin(const G4Track *) override
Begin-of-tracking callback.
void begin(const G4Run *) override
begin-of-run callback
Geant4TestBase(Geant4Action *action, const std::string &typ)
Standard constructor.
virtual ~Geant4TestSensitive()
Default destructor.
void endRun(const G4Run *)
End-of-run callback.
Example event action doing nothing, but print.
virtual void prepare(G4StackManager *) override
Preparation callback.
virtual void newStage(G4StackManager *) override
New-stage callback.
Example run action doing nothing, but print.
virtual TrackClassification classifyNewTrack(G4StackManager *, const G4Track *) override
Return TrackClassification with enum G4ClassificationOfNewTrack or NoTrackClassification.
virtual ~Geant4TestTrackAction()
Default destructor.
virtual ~Geant4TestRunAction()
Default destructor.
Concrete basic implementation of the Geant4 event action.
Handle class describing a detector element.
void beginEvent(const G4Event *)
begin-of-event callback
virtual ~Geant4TestStepAction()
Default destructor.
virtual void begin(const G4Event *) override
begin-of-event callback
void endEvent(const G4Event *)
End-of-event callback.
Geant4TestSensitive(Geant4Context *c, const std::string &n, DetElement det, Detector &description)
Standard constructor with initializing arguments.
Geant4TestStackAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.
Concrete implementation of the Geant4 generator action base class.
virtual ~Geant4TestGeneratorAction()
Default destructor.
Example tracking action doing nothing, but print.
virtual void operator()(G4Event *) override
Callback to generate primary particles.
Default base class for all Geant 4 actions and derivates thereof.
virtual ~Geant4TestBase()
Default destructor.
Geant4TestRunAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.
virtual void end(G4HCofThisEvent *) override
End-of-tracking callback.
Geant4TestGeneratorAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.
virtual ~Geant4TestEventAction()
Default destructor.
Default base class for all geant 4 tracking actions used in DDG4.
virtual void begin(G4HCofThisEvent *) override
Begin-of-tracking callback.
void end(const G4Run *) override
End-of-run callback.
Concrete basic implementation of the Geant4 run action base class.
Namespace for the AIDA detector description toolkit.
void beginRun(const G4Run *)
begin-of-run callback
virtual void end(const G4Track *) override
End-of-tracking callback.
virtual bool process(const G4Step *, G4TouchableHistory *) override
Method for generating hit(s) using the information of G4Step object.
The main interface to the dd4hep detector description package.
Concrete implementation of the Geant4 stacking action base class.
The base class for Geant4 sensitive detector actions implemented by users.
virtual ~Geant4TestStackAction()
Default destructor.
Example stacking action doing nothing, but print.
Example sensitve detector action doing nothing, but print.
Common base class for test action.
Generic context to extend user, run and event information.
Geant4TestTrackAction(Geant4Context *c, const std::string &n)
Standard constructor with initializing arguments.