File indexing completed on 2025-01-18 09:58:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #ifndef G4ErrorPropagatorManager_hh
0039 #define G4ErrorPropagatorManager_hh
0040
0041 #include "globals.hh"
0042 #include "G4ErrorPropagatorData.hh"
0043 #include "G4ErrorPropagator.hh"
0044 #include "G4ApplicationState.hh"
0045
0046 class G4ErrorPropagationNavigator;
0047 class G4ErrorRunManagerHelper;
0048 class G4ErrorTarget;
0049 class G4ErrorTrajState;
0050
0051 class G4VUserDetectorConstruction;
0052 class G4VPhysicalVolume;
0053 class G4VUserPhysicsList;
0054 class G4UserRunAction;
0055 class G4UserEventAction;
0056 class G4UserStackingAction;
0057 class G4UserTrackingAction;
0058 class G4UserSteppingAction;
0059 class G4Mag_UsualEqRhs;
0060 class G4Track;
0061
0062 class G4ErrorPropagatorManager
0063 {
0064 public:
0065 G4ErrorPropagatorManager();
0066
0067
0068
0069 ~G4ErrorPropagatorManager();
0070
0071 static G4ErrorPropagatorManager* GetErrorPropagatorManager();
0072
0073
0074
0075 void EventTermination();
0076
0077
0078 void RunTermination();
0079
0080
0081
0082 void InitGeant4e();
0083
0084
0085 void InitTrackPropagation();
0086
0087
0088 G4bool InitFieldForBackwards();
0089
0090
0091 G4int Propagate(G4ErrorTrajState* currentTS, const G4ErrorTarget* target,
0092 G4ErrorMode mode = G4ErrorMode_PropForwards);
0093
0094
0095
0096 G4int PropagateOneStep(G4ErrorTrajState* currentTS,
0097 G4ErrorMode mode = G4ErrorMode_PropForwards);
0098
0099
0100 G4bool CloseGeometry();
0101
0102
0103 void SetUserInitialization(G4VUserDetectorConstruction* userInit);
0104
0105
0106 void SetUserInitialization(G4VPhysicalVolume* userInit);
0107
0108 void SetUserInitialization(G4VUserPhysicsList* userInit);
0109
0110
0111 void SetUserAction(G4UserTrackingAction* userAction);
0112
0113 void SetUserAction(G4UserSteppingAction* userAction);
0114
0115
0116 G4String PrintG4ErrorState();
0117 G4String PrintG4ErrorState(G4ErrorState state);
0118
0119
0120 G4String PrintG4State();
0121 G4String PrintG4State(G4ApplicationState state);
0122
0123
0124
0125
0126 G4ErrorRunManagerHelper* GetErrorRunManagerHelper() const
0127 {
0128 return theG4ErrorRunManagerHelper;
0129 }
0130
0131 void SetSteppingManagerVerboseLevel();
0132
0133 G4ErrorPropagationNavigator* GetErrorPropagationNavigator() const
0134 {
0135 return theG4ErrorPropagationNavigator;
0136 }
0137
0138 G4ErrorPropagator* GetPropagator() const { return thePropagator; }
0139
0140 private:
0141 void StartG4ErrorRunManagerHelper();
0142
0143
0144
0145 void StartNavigator();
0146
0147
0148 private:
0149 static G4ThreadLocal G4ErrorPropagatorManager* theG4ErrorPropagatorManager;
0150
0151 G4ErrorRunManagerHelper* theG4ErrorRunManagerHelper;
0152
0153 G4ErrorPropagator* thePropagator;
0154
0155 G4Mag_UsualEqRhs* theEquationOfMotion;
0156
0157 G4ErrorPropagationNavigator* theG4ErrorPropagationNavigator;
0158 };
0159
0160 #endif