BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
IG4Svc.h
Go to the documentation of this file.
1#ifndef GAUDIKERNEL_IG4SVC_H
2#define GAUDIKERNEL_IG4SVC_H
3
4// Include Files
5#include "GaudiKernel/IService.h"
6
7class G4RunManager;
8class G4UImanager;
9class G4Event;
10class G4Run;
11class G4VUserDetectorConstruction;
12class G4VUserPhysicsList;
13class G4UserRunAction;
14class G4UserEventAction;
15class G4VUserPrimaryGeneratorAction;
16class G4UserStackingAction;
17class G4UserTrackingAction;
18class G4UserSteppingAction;
19class G4VUserActionInitialization;
20
21// Declaration of the interface ID ( interface id, major version, minor version)
22//static const InterfaceID IID_IG4Svc("IG4Svc", 1 , 0);
23
24/* @class IG4Svc IG4Svc.h GaudiKernel/IG4Svc.h
25
26 This class is an interface to the G4Svc.
27
28 @author Charles Leggett
29
30*/
31class GAUDI_API IG4Svc : virtual public IInterface {
32
33public:
34 // Typedefs for container type
35
36 virtual G4RunManager* runMgr() = 0;
37 virtual G4UImanager* uiMgr() = 0;
38 virtual void StartUISession() = 0;
39
40 virtual const G4Event* GetCurrentEvent() const = 0;
41 virtual const G4Run* GetCurrentRun() const = 0;
42
43 virtual void SetUserInitialization(G4VUserDetectorConstruction*) = 0;
44 virtual void SetUserInitialization(G4VUserPhysicsList*) = 0;
45 virtual void SetUserInitialization(G4VUserActionInitialization*) = 0;
46
47 /*virtual void SetUserAction(G4UserRunAction *) = 0;
48 virtual void SetUserAction(G4UserEventAction *) = 0;
49 virtual void SetUserAction(G4VUserPrimaryGeneratorAction*) = 0;
50 virtual void SetUserAction(G4UserStackingAction*) = 0;
51 virtual void SetUserAction(G4UserTrackingAction*) = 0;
52 virtual void SetUserAction(G4UserSteppingAction*) = 0;*/
53
54 //virtual void NoG4GeomInit() = 0;
55 //virtual void SimulateG4Event() = 0;
56
57 /// Retrieve interface ID
58 //static const InterfaceID& interfaceID() { return IID_IG4Svc; }
60
61 virtual void G4Init() = 0;
62private:
63};
64
65#endif
66
virtual void SetUserInitialization(G4VUserDetectorConstruction *)=0
virtual void StartUISession()=0
virtual G4RunManager * runMgr()=0
virtual void SetUserInitialization(G4VUserPhysicsList *)=0
virtual const G4Run * GetCurrentRun() const =0
virtual const G4Event * GetCurrentEvent() const =0
DeclareInterfaceID(IG4Svc, 1, 0)
Retrieve interface ID.
virtual void G4Init()=0
virtual G4UImanager * uiMgr()=0
virtual void SetUserInitialization(G4VUserActionInitialization *)=0