Skip to content
Snippets Groups Projects
Commit f25e6dac authored by Markus Frank's avatar Markus Frank Committed by Andre Sailer
Browse files

Add override statements to virtual override functions

parent 0a76a7fe
No related branches found
No related tags found
No related merge requests found
......@@ -88,11 +88,11 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4SharedGeneratorAction();
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Underlying object to be used during the execution of this thread
virtual void use(Geant4GeneratorAction* action);
/// User generator callback
virtual void operator()(G4Event* event);
virtual void operator()(G4Event* event) override;
};
/// Concrete implementation of the Geant4 generator action sequence
......@@ -127,9 +127,9 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4GeneratorActionSequence();
/// Set or update client context
virtual void updateContext(Geant4Context* ctxt);
virtual void updateContext(Geant4Context* ctxt) override;
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Get an action by name
Geant4GeneratorAction* get(const std::string& name) const;
/// Register primary particle generation callback. Types Q and T must be polymorph!
......
......@@ -189,7 +189,7 @@ namespace dd4hep {
/// Create particle vector
Particles* new_particles() const { return new Particles; }
/// Callback to generate primary particles
virtual void operator()(G4Event* event);
virtual void operator()(G4Event* event) override;
};
} /* End namespace sim */
} /* End namespace dd4hep */
......
......@@ -68,12 +68,12 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4OutputAction();
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* ctxt);
virtual void configureFiber(Geant4Context* ctxt) override;
/// begin-of-event callback
virtual void begin(const G4Event* event);
virtual void begin(const G4Event* event) override;
/// End-of-event callback
virtual void end(const G4Event* event);
virtual void end(const G4Event* event) override;
/// Callback to initialize storing the Geant4 information
virtual void beginRun(const G4Run* run);
/// Callback to store the Geant4 run information
......
......@@ -367,7 +367,7 @@ namespace dd4hep {
}
/// Set or update client context
virtual void updateContext(Geant4Context* ctxt);
virtual void updateContext(Geant4Context* ctxt) override;
/// Called at construction time of the sensitive detector to declare all hit collections
std::size_t defineCollections(Geant4ActionSD* sens_det);
......
......@@ -79,11 +79,11 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4SharedSteppingAction();
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Underlying object to be used during the execution of this thread
virtual void use(Geant4SteppingAction* action);
/// User stepping callback
virtual void operator()(const G4Step* step, G4SteppingManager* mgr);
virtual void operator()(const G4Step* step, G4SteppingManager* mgr) override;
};
/// Concrete implementation of the Geant4 stepping action sequence
......@@ -117,9 +117,9 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4SteppingActionSequence();
/// Set or update client context
virtual void updateContext(Geant4Context* ctxt);
virtual void updateContext(Geant4Context* ctxt) override;
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Get an action by name
Geant4SteppingAction* get(const std::string& name) const;
/// Register stepping action callback. Types Q and T must be polymorph!
......
......@@ -87,13 +87,13 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4SharedTrackingAction();
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Underlying object to be used during the execution of this thread
virtual void use(Geant4TrackingAction* action);
/// Begin-of-track callback
virtual void begin(const G4Track* track);
virtual void begin(const G4Track* track) override;
/// End-of-track callback
virtual void end(const G4Track* track);
virtual void end(const G4Track* track) override;
};
/// Concrete implementation of the Geant4 tracking action sequence
......@@ -134,9 +134,9 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4TrackingActionSequence();
/// Set or update client context
virtual void updateContext(Geant4Context* ctxt);
virtual void updateContext(Geant4Context* ctxt) override;
/// Set or update client for the use in a new thread fiber
virtual void configureFiber(Geant4Context* thread_context);
virtual void configureFiber(Geant4Context* thread_context) override;
/// Get an action by name
Geant4TrackingAction* get(const std::string& name) const;
/// Register Pre-track action callback before anything else
......
......@@ -34,7 +34,8 @@ namespace dd4hep {
typedef std::vector<std::string> StringV;
StringV m_requiredProcs;
StringV m_ignoredProcs;
bool m_storeMarkedTracks;
bool m_storeMarkedTracks;
public:
/// Standard constructor
Geant4TrackingPostAction(Geant4Context* context, const std::string& name = "");
......@@ -45,9 +46,9 @@ namespace dd4hep {
void saveTrack(const G4Track* track);
/// Begin-of-tracking callback
virtual void begin(const G4Track* track);
virtual void begin(const G4Track* track) override;
/// End-of-tracking callback
virtual void end(const G4Track* track);
virtual void end(const G4Track* track) override;
};
} // End namespace sim
} // End namespace dd4hep
......
......@@ -35,9 +35,9 @@ namespace dd4hep {
/// Default destructor
virtual ~Geant4TrackingPreAction();
/// Begin-of-tracking callback
virtual void begin(const G4Track* track);
virtual void begin(const G4Track* track) override;
/// End-of-tracking callback
virtual void end(const G4Track* track);
virtual void end(const G4Track* track) override;
};
} // End namespace sim
} // End namespace dd4hep
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment