]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: run | |
3 | // | |
4 | // Abstract class that takes care of creating all user defined classes | |
5 | // that will be initialized and managed by Geant4 kernel (G4RunManager). | |
6 | // It has one pure virtual method CreateUserConfiguration() | |
7 | // that has to be be implemented by derived class. | |
8 | ||
9 | #ifndef TG4V_RUN_CONFIGURATION_H | |
10 | #define TG4V_RUN_CONFIGURATION_H | |
11 | ||
12 | class G4VUserDetectorConstruction; | |
13 | class G4VUserPhysicsList; | |
14 | class G4VUserPrimaryGeneratorAction; | |
15 | class G4UserRunAction; | |
16 | class G4UserEventAction; | |
17 | class G4UserTrackingAction; | |
18 | class G4UserSteppingAction; | |
19 | class G4UserStackingAction; | |
20 | class G4RunManager; | |
21 | ||
22 | class TG4VRunConfiguration | |
23 | { | |
24 | public: | |
25 | TG4VRunConfiguration(); | |
26 | // --> protected | |
27 | // TG4VRunConfiguration(const TG4VRunConfiguration& right); | |
28 | virtual ~TG4VRunConfiguration(); | |
29 | ||
30 | // methods | |
31 | void ConfigureRunManager(G4RunManager* runManager); | |
32 | ||
33 | protected: | |
34 | TG4VRunConfiguration(const TG4VRunConfiguration& right); | |
35 | ||
36 | // operators | |
37 | TG4VRunConfiguration& operator=(const TG4VRunConfiguration& right); | |
38 | ||
39 | // methods | |
40 | virtual void CreateUserConfiguration() = 0; | |
41 | ||
42 | // data members | |
43 | G4VUserDetectorConstruction* fDetectorConstruction; //det construction | |
44 | G4VUserPhysicsList* fPhysicsList; //physics list | |
45 | G4VUserPrimaryGeneratorAction* fPrimaryGenerator; //primary generator | |
46 | G4UserRunAction* fRunAction; //run action | |
47 | G4UserEventAction* fEventAction; //event action | |
48 | G4UserTrackingAction* fTrackingAction; //tracking action | |
49 | G4UserSteppingAction* fSteppingAction; //stepping action | |
50 | G4UserStackingAction* fStackingAction; //stacking action | |
51 | }; | |
52 | ||
53 | #endif //TG4V_RUN_CONFIGURATION_H | |
54 |