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5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /error_propagation/include/G4ErrorPropagatorManager.hh (Version 11.3.0) and /error_propagation/include/G4ErrorPropagatorManager.hh (Version 10.6.p3)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 //                                                 26 //
 27 //                                                 27 //
 28 // Class Description:                              28 // Class Description:
 29 //                                                 29 //
 30 // This is the class manager of the GEANT4e pa     30 // This is the class manager of the GEANT4e package.
 31 // It is the main interface for the user to de     31 // It is the main interface for the user to define the setup and
 32 // start the propagation. Initializes GEANT4 f     32 // start the propagation. Initializes GEANT4 for the propagation.
 33                                                    33 
 34 // History:                                        34 // History:
 35 // - Created:   Pedro Arce, February 2001          35 // - Created:   Pedro Arce, February 2001
 36 // -------------------------------------------     36 // --------------------------------------------------------------------
 37                                                    37 
 38 #ifndef G4ErrorPropagatorManager_hh                38 #ifndef G4ErrorPropagatorManager_hh
 39 #define G4ErrorPropagatorManager_hh                39 #define G4ErrorPropagatorManager_hh
 40                                                    40 
 41 #include "globals.hh"                              41 #include "globals.hh"
 42 #include "G4ErrorPropagatorData.hh"                42 #include "G4ErrorPropagatorData.hh"
 43 #include "G4ErrorPropagator.hh"                    43 #include "G4ErrorPropagator.hh"
 44 #include "G4ApplicationState.hh"                   44 #include "G4ApplicationState.hh"
 45                                                    45 
 46 class G4ErrorPropagationNavigator;                 46 class G4ErrorPropagationNavigator;
 47 class G4ErrorRunManagerHelper;                     47 class G4ErrorRunManagerHelper;
 48 class G4ErrorTarget;                               48 class G4ErrorTarget;
 49 class G4ErrorTrajState;                            49 class G4ErrorTrajState;
 50                                                    50 
 51 class G4VUserDetectorConstruction;                 51 class G4VUserDetectorConstruction;
 52 class G4VPhysicalVolume;                           52 class G4VPhysicalVolume;
 53 class G4VUserPhysicsList;                          53 class G4VUserPhysicsList;
 54 class G4UserRunAction;                             54 class G4UserRunAction;
 55 class G4UserEventAction;                           55 class G4UserEventAction;
 56 class G4UserStackingAction;                        56 class G4UserStackingAction;
 57 class G4UserTrackingAction;                        57 class G4UserTrackingAction;
 58 class G4UserSteppingAction;                        58 class G4UserSteppingAction;
 59 class G4Mag_UsualEqRhs;                            59 class G4Mag_UsualEqRhs;
 60 class G4Track;                                     60 class G4Track;
 61                                                    61 
 62 class G4ErrorPropagatorManager                     62 class G4ErrorPropagatorManager
 63 {                                                  63 {
                                                   >>  64 
 64  public:  // with description                      65  public:  // with description
                                                   >>  66 
 65   G4ErrorPropagatorManager();                      67   G4ErrorPropagatorManager();
 66   // Initialise data to 0. Starts the G4ErrorR <<  68     // Initialise data to 0. Starts the G4ErrorRunManagerHelper and
 67   // G4ErrorPropagationNavigator.              <<  69     // G4ErrorPropagationNavigator.
 68                                                    70 
 69   ~G4ErrorPropagatorManager();                     71   ~G4ErrorPropagatorManager();
 70                                                    72 
 71   static G4ErrorPropagatorManager* GetErrorPro     73   static G4ErrorPropagatorManager* GetErrorPropagatorManager();
 72   // Get only instance of G4ErrorPropagatorMan <<  74     // Get only instance of G4ErrorPropagatorManager. If it does not exists,
 73   // creates it                                <<  75     // creates it
 74                                                    76 
 75   void EventTermination();                         77   void EventTermination();
 76   // Set state to G4ErrorState_Init            <<  78     // Set state to G4ErrorState_Init
 77                                                    79 
 78   void RunTermination();                           80   void RunTermination();
 79   // Set state to G4ErrorState_Init and invoke <<  81     // Set state to G4ErrorState_Init and invoke
 80   // G4ErrorRunManagerHelper::RunTermination() <<  82     // G4ErrorRunManagerHelper::RunTermination()
 81                                                    83 
 82   void InitGeant4e();                              84   void InitGeant4e();
 83   // Initializes Geant4 and Geant4e            <<  85     // Initializes Geant4 and Geant4e
 84                                                    86 
 85   void InitTrackPropagation();                     87   void InitTrackPropagation();
 86   // Set the propagator step number to 0 and t <<  88     // Set the propagator step number to 0 and the G4ErrorState to Propagating
 87                                                <<  89  
 88   G4bool InitFieldForBackwards();                  90   G4bool InitFieldForBackwards();
 89   // Creates the G4ErrorMag_UsualEqRhs, that w <<  91     // Creates the G4ErrorMag_UsualEqRhs, that will control backwards tracking
 90                                                    92 
 91   G4int Propagate(G4ErrorTrajState* currentTS, <<  93   G4int Propagate( G4ErrorTrajState* currentTS, const G4ErrorTarget* target, G4ErrorMode mode = G4ErrorMode_PropForwards );
 92                   G4ErrorMode mode = G4ErrorMo <<  94     // Inits track propagation, invokes G4ErrorPropagator::Propagate and
 93   // Inits track propagation, invokes G4ErrorP <<  95     // terminates "event"
 94   // terminates "event"                        <<  96 
 95                                                <<  97   G4int PropagateOneStep( G4ErrorTrajState* currentTS,
 96   G4int PropagateOneStep(G4ErrorTrajState* cur <<  98                           G4ErrorMode mode = G4ErrorMode_PropForwards );
 97                          G4ErrorMode mode = G4 <<  99     // Invokes G4ErrorPropagator::PropagateOneStep
 98   // Invokes G4ErrorPropagator::PropagateOneSt << 
 99                                                   100 
100   G4bool CloseGeometry();                         101   G4bool CloseGeometry();
101   // Close Geant4 geometry                     << 102     // Close Geant4 geometry
102                                                   103 
103   void SetUserInitialization(G4VUserDetectorCo    104   void SetUserInitialization(G4VUserDetectorConstruction* userInit);
104   // Invokes G4ErrorRunManagerHelper to constr << 105     // Invokes G4ErrorRunManagerHelper to construct detector and set
105   // world volume                              << 106     // world volume
106   void SetUserInitialization(G4VPhysicalVolume    107   void SetUserInitialization(G4VPhysicalVolume* userInit);
107   // Invokes G4ErrorRunManagerHelper to  set w << 108     // Invokes G4ErrorRunManagerHelper to  set world volume
108   void SetUserInitialization(G4VUserPhysicsLis    109   void SetUserInitialization(G4VUserPhysicsList* userInit);
109   // Invokes G4ErrorRunManagerHelper to initia << 110     // Invokes G4ErrorRunManagerHelper to initialize physics
110                                                   111 
111   void SetUserAction(G4UserTrackingAction* use    112   void SetUserAction(G4UserTrackingAction* userAction);
112   // Invokes G4EventManager to set a G4UserTra << 113     // Invokes G4EventManager to set a G4UserTrackingAction
113   void SetUserAction(G4UserSteppingAction* use    114   void SetUserAction(G4UserSteppingAction* userAction);
114   // Invokes G4EventManager to set a G4UserSte << 115     // Invokes G4EventManager to set a G4UserSteppingAction
115                                                   116 
116   G4String PrintG4ErrorState();                   117   G4String PrintG4ErrorState();
117   G4String PrintG4ErrorState(G4ErrorState stat << 118   G4String PrintG4ErrorState( G4ErrorState state );
118   // Print Geant4e state                       << 119     // Print Geant4e state
119                                                   120 
120   G4String PrintG4State();                        121   G4String PrintG4State();
121   G4String PrintG4State(G4ApplicationState sta << 122   G4String PrintG4State( G4ApplicationState state );
122   // Print Geant4 state                        << 123     // Print Geant4 state
123                                                << 124  
124   // Set and Get methods                       << 125   // Set and Get methods 
125                                                   126 
126   G4ErrorRunManagerHelper* GetErrorRunManagerH    127   G4ErrorRunManagerHelper* GetErrorRunManagerHelper() const
127   {                                            << 128     { return theG4ErrorRunManagerHelper; }
128     return theG4ErrorRunManagerHelper;         << 
129   }                                            << 
130                                                   129 
131   void SetSteppingManagerVerboseLevel();          130   void SetSteppingManagerVerboseLevel();
132                                                   131 
133   G4ErrorPropagationNavigator* GetErrorPropaga    132   G4ErrorPropagationNavigator* GetErrorPropagationNavigator() const
134   {                                            << 133     { return theG4ErrorPropagationNavigator; }
135     return theG4ErrorPropagationNavigator;     << 
136   }                                            << 
137                                                   134 
138   G4ErrorPropagator* GetPropagator() const { r << 135   G4ErrorPropagator* GetPropagator() const
                                                   >> 136     { return thePropagator; }
139                                                   137 
140  private:                                         138  private:
141   void StartG4ErrorRunManagerHelper();         << 
142   // Create a G4ErrorRunManagerHelper if it do << 
143   // the G4ErrorPhysicsList                    << 
144                                                   139 
                                                   >> 140   void StartG4ErrorRunManagerHelper();
                                                   >> 141     // Create a G4ErrorRunManagerHelper if it does not exist and set to it
                                                   >> 142     // the G4ErrorPhysicsList
                                                   >> 143  
145   void StartNavigator();                          144   void StartNavigator();
146   // create a G4ErrorPropagationNavigator      << 145     // create a G4ErrorPropagationNavigator
147                                                << 146  
148  private:                                         147  private:
                                                   >> 148 
149   static G4ThreadLocal G4ErrorPropagatorManage    149   static G4ThreadLocal G4ErrorPropagatorManager* theG4ErrorPropagatorManager;
150                                                   150 
151   G4ErrorRunManagerHelper* theG4ErrorRunManage    151   G4ErrorRunManagerHelper* theG4ErrorRunManagerHelper;
152                                                   152 
153   G4ErrorPropagator* thePropagator;               153   G4ErrorPropagator* thePropagator;
154                                                   154 
155   G4Mag_UsualEqRhs* theEquationOfMotion;          155   G4Mag_UsualEqRhs* theEquationOfMotion;
156                                                   156 
157   G4ErrorPropagationNavigator* theG4ErrorPropa    157   G4ErrorPropagationNavigator* theG4ErrorPropagationNavigator;
                                                   >> 158 
158 };                                                159 };
159                                                   160 
160 #endif                                            161 #endif
161                                                   162