k4SimGeant4
Loading...
Searching...
No Matches
RunManager.h
Go to the documentation of this file.
1#ifndef SIMG4COMMON_RUNMANAGER_H
2#define SIMG4COMMON_RUNMANAGER_H
3
4// Geant4
5#include "G4RunManager.hh"
6
7// Gaudi
8#include "GaudiKernel/IMessageSvc.h"
9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/ServiceHandle.h"
11
21namespace sim {
22class RunManager : public G4RunManager {
23public:
25 RunManager();
36 StatusCode start();
45 StatusCode processEvent(G4Event& aEvent);
53 StatusCode retrieveEvent(G4Event*& aEvent);
57 StatusCode terminateEvent();
59 void finalize();
60
61private:
65 ServiceHandle<IMessageSvc> m_msgSvc;
67 MsgStream m_log;
68};
69}
70
71#endif /* SIMG4COMMON_RUNMANAGER_H */
Definition RunManager.h:22
StatusCode start()
Initialization.
Definition RunManager.cpp:15
MsgStream m_log
Message Stream.
Definition RunManager.h:67
void finalize()
Finalization.
Definition RunManager.cpp:57
bool m_prevEventTerminated
Flag indicating if the previous Event was terminated in Geant successfuly.
Definition RunManager.h:63
StatusCode processEvent(G4Event &aEvent)
Processing of the event.
Definition RunManager.cpp:26
RunManager()
Constructor.
Definition RunManager.cpp:7
ServiceHandle< IMessageSvc > m_msgSvc
Message Service.
Definition RunManager.h:65
~RunManager()
Destructor.
Definition RunManager.cpp:13
StatusCode terminateEvent()
Termination of the event processing.
Definition RunManager.cpp:48
StatusCode retrieveEvent(G4Event *&aEvent)
Retrieves an event.
Definition RunManager.cpp:39
Conversion between units.
Definition ConstantField.h:14