Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // 23 // >> 24 // $Id: G4FastStep.hh,v 1.7 2004/11/25 23:34:13 mverderi Exp $ >> 25 // GEANT4 tag $Name: geant4-08-00-patch-01 $ 27 // 26 // 28 // << 27 // 29 //-------------------------------------------- 28 //--------------------------------------------------------------- 30 // 29 // 31 // G4FastStep.hh 30 // G4FastStep.hh 32 // 31 // 33 // Description: 32 // Description: 34 // The G4FastStep class insures a friendly 33 // The G4FastStep class insures a friendly interface 35 // to manage the primary/secondaries final << 34 // to manage the primary/secondaries final state for 36 // Fast Simulation Models. This includes fi 35 // Fast Simulation Models. This includes final states of parent 37 // particle (normalized direction of the mo << 36 // particle (normalized direction of the momentum, energy, etc) and 38 // secondary particles generated by the par 37 // secondary particles generated by the parameterisation. 39 // 38 // 40 // The G4FastStep class acts also as the G4 39 // The G4FastStep class acts also as the G4ParticleChange 41 // for the Fast Simulation Process. So it i << 40 // for the Fast Simulation Process. So it inherites from 42 // the G4VParticleChange class and redefine << 41 // the G4VParticleChange class and redefines the four virtual 43 // methods : 42 // methods : 44 // 43 // 45 // virtual G4Step* UpdateStepForAtRest(G4S 44 // virtual G4Step* UpdateStepForAtRest(G4Step* Step); 46 // virtual G4Step* UpdateStepForAlongStep( 45 // virtual G4Step* UpdateStepForAlongStep(G4Step* Step); 47 // virtual G4Step* UpdateStepForPostStep(G 46 // virtual G4Step* UpdateStepForPostStep(G4Step* Step); 48 // virtual void Initialize(const G4Track&) 47 // virtual void Initialize(const G4Track&); 49 // 48 // 50 // History: 49 // History: 51 // Oct 97: Verderi && MoraDeFreitas - First 50 // Oct 97: Verderi && MoraDeFreitas - First Implementation. 52 // Dec 97: Verderi - ForceSteppingHitInvoca 51 // Dec 97: Verderi - ForceSteppingHitInvocation(), 53 // Set/GetTotalEnergyDepo 52 // Set/GetTotalEnergyDeposited() methods. 54 // Apr 98: MoraDeFreitas - G4FastStep becom 53 // Apr 98: MoraDeFreitas - G4FastStep becomes the G4ParticleChange 55 // for the Fast Simulatio 54 // for the Fast Simulation Process. 56 // Nov 04: Verderi - Add ProposeXXX methods 55 // Nov 04: Verderi - Add ProposeXXX methods. SetXXX ones are kept 57 // for backward compatibi << 56 // for backward compatibility. 58 // 57 // 59 //-------------------------------------------- 58 //--------------------------------------------------------------- 60 59 >> 60 61 #ifndef G4FastStep_h 61 #ifndef G4FastStep_h 62 #define G4FastStep_h 62 #define G4FastStep_h 63 63 64 #include "G4ParticleMomentum.hh" << 65 #include "G4ThreeVector.hh" << 66 #include "G4ios.hh" << 67 #include "globals.hh" 64 #include "globals.hh" >> 65 #include "G4ios.hh" >> 66 #include "G4ThreeVector.hh" >> 67 #include "G4ParticleMomentum.hh" 68 class G4DynamicParticle; 68 class G4DynamicParticle; 69 #include "G4FastTrack.hh" << 70 #include "G4VParticleChange.hh" 69 #include "G4VParticleChange.hh" >> 70 #include "G4FastTrack.hh" 71 71 72 //------------------------------------------- 72 //------------------------------------------- 73 // 73 // 74 // G4FastStep class 74 // G4FastStep class 75 // 75 // 76 //------------------------------------------- 76 //------------------------------------------- 77 77 78 // Class Description: 78 // Class Description: 79 // The final state of the particles after par << 79 // The final state of the particles after parameterisation has to be returned through a G4FastStep 80 // reference. This final state is described a << 80 // reference. This final state is described as "requests" the tracking will apply after your 81 // parameterisation has been invoked. 81 // parameterisation has been invoked. 82 // 82 // 83 // To facilitate the developers work, changes << 83 // To facilitate the developers work, changes of position/normalized direction of the 84 // momentum/polarization can be specified in << 84 // momentum/polarization can be specified in the local coordinate system of the envelope or in the 85 // global one. 85 // global one. 86 // The default is local system coordinates. 86 // The default is local system coordinates. 87 // 87 // 88 88 89 class G4FastStep : public G4VParticleChange << 89 class G4FastStep: public G4VParticleChange 90 { 90 { 91 public: // Without description << 91 public: // with Description 92 //------------------------ << 92 void KillPrimaryTrack(); 93 // Constructor/Destructor << 93 // Set the kinetic energy of the primary to zero, and set the "fStopAndKill" signal 94 //------------------------ << 94 // used by the stepping. 95 G4FastStep() = default; << 95 96 ~G4FastStep() override = default; << 96 // -- Methods used to change the position, normalized direction of 97 << 97 // the momentum, time etc... of the primary. 98 G4FastStep(const G4FastStep& right) = dele << 98 // .. space and time: 99 G4FastStep& operator=(const G4FastStep& ri << 99 void ProposePrimaryTrackFinalPosition (const G4ThreeVector &, 100 << 100 G4bool localCoordinates = true); 101 // Set the kinetic energy of the primary t << 101 // Set the primary track final position. 102 // used by the stepping. << 102 void SetPrimaryTrackFinalPosition (const G4ThreeVector &, 103 void KillPrimaryTrack(); << 103 G4bool localCoordinates = true); 104 << 104 // Set the primary track final position -- maintained for backward compatibility. 105 // -- Methods used to change the position, << 105 106 // the momentum, time etc... of the primar << 106 107 // .. space and time: << 107 void ProposePrimaryTrackFinalTime (G4double); 108 << 108 // Set the primary track final time. 109 // Set the primary track final position. << 109 void SetPrimaryTrackFinalTime (G4double); 110 void ProposePrimaryTrackFinalPosition(cons << 110 // Set the primary track final time -- maintained for backward compatibility. 111 << 111 112 // Set the primary track final position -- << 112 113 [[deprecated("use ProposePrimaryTrackFinal << 113 void ProposePrimaryTrackFinalProperTime (G4double); 114 void SetPrimaryTrackFinalPosition(const G4 << 114 // Set the primary final track Proper Time. 115 << 115 void SetPrimaryTrackFinalProperTime (G4double); 116 // Set the primary track final time. << 116 // Set the primary final track Proper Time -- maintained for backward compatibility. 117 void ProposePrimaryTrackFinalTime(G4double << 117 118 << 118 119 // Set the primary track final time -- mai << 119 // .. dynamics: 120 [[deprecated("use ProposePrimaryTrackFinal << 120 void ProposePrimaryTrackFinalMomentumDirection (const G4ThreeVector &, 121 void SetPrimaryTrackFinalTime(G4double); << 121 G4bool localCoordinates = true); 122 << 122 // Be careful: the Track Final Momentum means the normalized direction 123 // Set the primary final track Proper Time << 123 // of the momentum! 124 void ProposePrimaryTrackFinalProperTime(G4 << 124 void SetPrimaryTrackFinalMomentum (const G4ThreeVector &, 125 << 125 G4bool localCoordinates = true); 126 // Set the primary final track Proper Time << 126 // Set the primary track final momentum -- maintained for backward compatibility. Same as ProposePrimaryTrackMomentumDirection(...) 127 [[deprecated("use ProposePrimaryTrackPrope << 127 128 void SetPrimaryTrackFinalProperTime(G4doub << 128 129 << 129 void ProposePrimaryTrackFinalKineticEnergy (G4double); 130 // .. dynamics: << 130 // Set the primary track final kinetic energy. 131 << 131 void SetPrimaryTrackFinalKineticEnergy (G4double); 132 // Be careful: the Track Final Momentum me << 132 // Set the primary track final kinetic energy-- maintained for backward compatibility. 133 // of the momentum! << 133 134 void ProposePrimaryTrackFinalMomentumDirec << 134 135 << 135 void ProposePrimaryTrackFinalKineticEnergyAndDirection(G4double, 136 << 136 const G4ThreeVector &, 137 // Set the primary track final momentum -- << 137 G4bool localCoordinates 138 // ProposePrimaryTrackMomentumDirection(.. << 138 = true); 139 [[deprecated("use ProposePrimaryTrackMomen << 139 // Set the primary track final kinetic energy and direction. 140 void SetPrimaryTrackFinalMomentum(const G4 << 140 void SetPrimaryTrackFinalKineticEnergyAndDirection(G4double, 141 << 141 const G4ThreeVector &, 142 // Set the primary track final kinetic ene << 142 G4bool localCoordinates 143 void ProposePrimaryTrackFinalKineticEnergy << 143 = true); 144 << 144 // Set the primary track final kinetic energy and direction -- maintained for backward compatibility. 145 // Set the primary track final kinetic ene << 145 146 [[deprecated("use ProposePrimaryTrackFinal << 146 147 void SetPrimaryTrackFinalKineticEnergy(G4d << 147 148 << 148 void ProposePrimaryTrackFinalPolarization(const G4ThreeVector &, 149 // Set the primary track final kinetic ene << 149 G4bool localCoordinates = true); 150 void ProposePrimaryTrackFinalKineticEnergy << 150 // Set the primary track final polarization. 151 << 151 void SetPrimaryTrackFinalPolarization(const G4ThreeVector &, 152 << 152 G4bool localCoordinates = true); 153 // Set the primary track final kinetic ene << 153 // Set the primary track final polarization. 154 // compatibility. << 154 155 [[deprecated("use ProposePrimaryTrackFinal << 155 156 void SetPrimaryTrackFinalKineticEnergyAndD << 156 void ProposePrimaryTrackPathLength (G4double); 157 << 157 // Set the true path length of the primary track during the step. 158 << 158 void SetPrimaryTrackPathLength (G4double); 159 // Set the primary track final polarizatio << 159 // Set the true path length of the primary track during the step -- maintained for backward compatibility. 160 void ProposePrimaryTrackFinalPolarization( << 160 161 << 161 void ProposePrimaryTrackFinalEventBiasingWeight (G4double); 162 // Set the primary track final polarizatio << 162 // Set the weight applied for event biasing mechanism. 163 [[deprecated("use ProposePrimaryTrackFinal << 163 void SetPrimaryTrackFinalEventBiasingWeight (G4double); 164 void SetPrimaryTrackFinalPolarization(cons << 164 // Set the weight applied for event biasing mechanism -- kept for backward compatibility. 165 << 165 166 // Set the true path length of the primary << 166 // ------------------------------ 167 void ProposePrimaryTrackPathLength(G4doubl << 167 // -- Management of secondaries: 168 << 168 // ------------------------------ 169 // Set the true path length of the primary << 169 170 // compatibility. << 170 // ---------------------------------------------------- 171 [[deprecated("use ProposePrimaryTrackPathL << 171 // -- The creation of secondaries is Done in two steps: 172 void SetPrimaryTrackPathLength(G4double); << 172 // -- 1) Give the total number of secondaries 173 << 173 // -- that the FastStep returns 174 // Set the weight applied for event biasin << 174 // -- to the tracking using: 175 void ProposePrimaryTrackFinalEventBiasingW << 175 // -- SetNumberOfSecondaryTracks() 176 << 176 // -- 177 // Set the weight applied for event biasin << 177 // -- 2) Invoke the CreateSecondaryTrack() method 178 [[deprecated("use ProposePrimaryTrackFinal << 178 // -- to create one secondary at each time. 179 void SetPrimaryTrackFinalEventBiasingWeigh << 179 // ---------------------------------------------------- 180 << 180 181 // ------------------------------ << 181 // -- Total Number of secondaries to be created, 182 // -- Management of secondaries: << 182 // -- (to be called first) 183 // ------------------------------ << 183 void SetNumberOfSecondaryTracks(G4int); 184 << 184 // Set the total number of secondaries that will be created. 185 // --------------------------------------- << 185 186 // -- The creation of secondaries is Done << 186 // -- Number of secondaries effectively stored: 187 // -- 1) Give the total number of sec << 187 // -- (incremented at each CreateSecondaryTrack() 188 // -- that the FastStep returns << 188 // -- call) 189 // -- to the tracking using: << 189 G4int GetNumberOfSecondaryTracks(); 190 // -- SetNumberOfSecondaryTracks() << 190 // Returns the number of secondaries effectively stored. 191 // -- << 191 192 // -- 2) Invoke the CreateSecondaryTr << 192 // -- Create a secondary: the arguments are: 193 // -- to create one secondary at e << 193 // -- * G4DynamicsParticle: see header file, many constructors exist 194 // --------------------------------------- << 194 // -- (allow to set particle type + energy + 195 << 195 // -- the normalized direction of momentum...) 196 // Set the total number of secondaries tha << 196 // -- * G4ThreeVector : Polarization (not in G4ParticleChange constructor) 197 // -- Total Number of secondaries to be cr << 197 // -- * G4ThreeVector : Position 198 // -- (to be called first) << 198 // -- * G4double : Time 199 void SetNumberOfSecondaryTracks(G4int); << 199 // -- * G4bool : says if Position/Momentum are given in the 200 << 200 // -- local coordinate system (true by default) 201 // Returns the number of secondaries effec << 201 // -- Returned value: pointer to the track created. 202 // -- Number of secondaries effectively st << 202 G4Track* CreateSecondaryTrack(const G4DynamicParticle&, 203 // -- (incremented at each CreateSecondary << 203 G4ThreeVector, 204 // -- call) << 204 G4ThreeVector, 205 G4int GetNumberOfSecondaryTracks(); << 205 G4double, 206 << 206 G4bool localCoordinates=true); 207 // -- Create a secondary: the arguments ar << 207 // Create a secondary. The arguments are: 208 // -- * G4DynamicsParticle: see header << 208 // 209 // -- (allow to << 209 // G4DynamicsParticle: see the G4DynamicsParticle reference, many constructors exist 210 // -- the normalized direction of momentum << 210 // (allow to set particle type + energy + the normalized direction of 211 // -- * G4ThreeVector : Polarizati << 211 // momentum...); 212 // -- * G4ThreeVector : Position << 212 // G4ThreeVector : Polarization; 213 // -- * G4double : Time << 213 // G4ThreeVector : Position; 214 // -- * G4bool : says if Po << 214 // G4double : Time; 215 // -- local coor << 215 // G4bool : says if Position/Momentum are given in the local envelope coordinate 216 // -- Returned value: pointer to the track << 216 // system (true by default). 217 G4Track* CreateSecondaryTrack(const G4Dyna << 217 // 218 G4bool local << 218 // Returned value: pointer to the track created. 219 << 219 // 220 //-- Create a secondary: the difference wi << 220 221 //-- is that the Polarization is not given << 221 //-- Create a secondary: the difference with he above declaration 222 //-- in the G4DynamicParticle. << 222 //-- is that the Polarization is not given and is assumed already set 223 //-- Returned value: pointer to the track << 223 //-- in the G4DynamicParticle. 224 G4Track* CreateSecondaryTrack(const G4Dyna << 224 //-- Returned value: pointer to the track created 225 G4bool local << 225 G4Track* CreateSecondaryTrack(const G4DynamicParticle&, 226 << 226 G4ThreeVector, 227 // Returns a pointer on the i-th secondary << 227 G4double, 228 G4Track* GetSecondaryTrack(G4int); << 228 G4bool localCoordinates=true); 229 << 229 // Create a secondary. The difference with he above declaration is that the Polarization is not 230 //---------------------------------------- << 230 // given and is assumed already set in the G4DynamicParticle. 231 // << 231 // 232 // Total energy deposit in the "fast Ste << 232 // Returned value: pointer to the track created 233 // (a default should be provided in futu << 233 234 // which can be: << 234 235 // delta energy of primary - << 235 236 // energy of the secondaries) << 236 G4Track* GetSecondaryTrack(G4int); 237 // This allow the user to Store a consis << 237 // Returns a pointer on the i-th secondary track created. 238 // information in the G4Trajectory. << 238 239 // << 239 //------------------------------------------------ 240 //---------------------------------------- << 240 // 241 // Set the total energy deposited. << 241 // Total energy deposit in the "fast Step" 242 void ProposeTotalEnergyDeposited(G4double << 242 // (a default should be provided in future, 243 << 243 // which can be: 244 // Set the total energy deposited -- kept << 244 // delta energy of primary - 245 // It should be the delta energy of primar << 245 // energy of the secondaries) 246 [[deprecated("use ProposeTotalEnergyDeposi << 246 // This allow the user to Store a consistent 247 void SetTotalEnergyDeposited(G4double anEn << 247 // information in the G4Trajectory. 248 << 248 // 249 // Returns the total energy deposited. << 249 //------------------------------------------------ 250 G4double GetTotalEnergyDeposited() const; << 250 void ProposeTotalEnergyDeposited(G4double anEnergyPart); 251 << 251 // Set the total energy deposited. 252 // Control of the stepping manager Hit inv << 252 void SetTotalEnergyDeposited(G4double anEnergyPart); 253 // << 253 // Set the total energy deposited -- kept for backward compatibility. 254 // In a usual parameterisation, the contro << 254 // It should be the delta energy of primary less the energy of the secondaries. 255 // responsability in his G4VFastSimulation << 255 256 // << 256 G4double GetTotalEnergyDeposited() const; 257 // However, in the particular case the G4F << 257 // Returns the total energy deposited. 258 // replacement only (ie replaces all the * << 258 259 // G4Step), the user can delegate to the G << 259 void ForceSteppingHitInvocation(); 260 // the Hit()method of the current sensitiv << 260 // Control of the stepping manager Hit invocation. 261 // << 261 // 262 // By default, the G4SteppingManager is as << 262 // In a usual parameterisation, the control of the hits production is under the user 263 // parameterisation is invoked. << 263 // responsability in his G4VFastSimulationModel (he generally produces several hits at once.) 264 void ForceSteppingHitInvocation(); << 264 // 265 << 265 // However, in the particular case the G4FastSimulation user's model acts as the physics 266 // ======================================= << 266 // replacement only (ie replaces all the ***DoIt() and leads to the construction of a meaningful 267 // Stepping interface. << 267 // G4Step), the user can delegate to the G4SteppingManager the responsability to invoke 268 // ======================================= << 268 // the Hit()method of the current sensitive if any. 269 // --- the following methods are for updat << 269 // 270 // Return the pointer to the G4Step after << 270 // By default, the G4SteppingManager is asked to NOT invoke this Hit() method when parameterisation 271 // by using final state information of the << 271 // is invoked. 272 // << 272 // 273 // The Fast Simulation Mechanism doesn't c << 273 274 // state on the AlongDoIt loop, so the def << 274 275 // virtual G4Step* UpdateStepForAlongStep( << 275 public: // Without description 276 << 276 //======================================================= 277 G4Step* UpdateStepForAtRest(G4Step* Step) << 277 // Implementation section and kernel interfaces. 278 G4Step* UpdateStepForPostStep(G4Step* Step << 278 //======================================================= 279 << 279 //------------------------ 280 // A Model gives the final state of the pa << 280 // Constructor/Destructor 281 // based on information of G4FastTrack. So << 281 //------------------------ 282 // Initialize method is an interface to th << 282 G4FastStep(); 283 // G4FastSimulationManager to Initialize t << 283 virtual ~G4FastStep(); 284 // G4FastStep. << 284 285 << 285 // equal/unequal operator 286 void Initialize(const G4FastTrack&); << 286 G4bool operator==(const G4FastStep &right) const; 287 << 287 G4bool operator!=(const G4FastStep &right) const; 288 // for Debug << 288 289 void DumpInfo() const override; << 289 protected: 290 G4bool CheckIt(const G4Track&) override; << 290 // hide copy constructor and assignment operator as protected 291 << 291 G4FastStep (const G4FastStep &right); 292 private: << 292 G4FastStep & operator= (const G4FastStep &right); 293 //======================================== << 293 294 // Private Internal methods (implementatio << 294 public: 295 //======================================== << 295 // =============================================== 296 << 296 // Stepping interface. 297 // G4FastStep should never be Initialized << 297 // =============================================== 298 // but we must define it to avoid compiler << 298 // --- the following methods are for updating G4Step ----- 299 void Initialize(const G4Track&) override; << 299 // Return the pointer to the G4Step after updating the Step information 300 << 300 // by using final state information of the track given by a Model. 301 // -- Utility functions -- << 301 // 302 //--- methods to keep information of the f << 302 // The Fast Simulation Mechanism doesn't change the track's final 303 // IMPORTANT NOTE: Although the name of t << 303 // state on the AlongDoIt loop, so the default one all we need. 304 // "Change", what it stores (and returns << 304 //virtual G4Step* UpdateStepForAlongStep(G4Step* Step); 305 // values of the Position, the normalize << 305 306 // etc. << 306 G4Step* UpdateStepForAtRest(G4Step* Step); 307 << 307 G4Step* UpdateStepForPostStep(G4Step* Step); 308 // Set theMomentumChange vector: it is the << 308 309 // direction. << 309 // A Model gives the final state of the particle 310 void SetMomentumChange(G4double Px, G4doub << 310 // based on information of G4FastTrack. So the 311 void SetMomentumChange(const G4ThreeVector << 311 // Initialize method is an interface to the 312 << 312 // G4FastSimulationManager to Initialize the 313 //======================================== << 313 // G4FastStep. 314 // Data members. << 314 315 //======================================== << 315 void Initialize(const G4FastTrack&); 316 // theMomentumChange is the vector contai << 316 317 // direction after the invoked process. T << 317 private: 318 // of the momentum direction of the parti << 318 //=================================================== 319 // The responsibility to apply the change << 319 // Private Internal methods (implementation). 320 // which invoked the process. << 320 //=================================================== 321 G4ParticleMomentum theMomentumChange; << 321 322 << 322 // G4FastStep should never be Initialized in this way 323 // The changed (final) polarization of a << 323 // but we must define it to avoid compiler warnings. 324 G4ThreeVector thePolarizationChange; << 324 void Initialize(const G4Track&); 325 << 325 326 // The final kinetic energy of the curren << 326 // -- Utility functions -- 327 G4double theEnergyChange = 0.0; << 327 //--- methods to keep information of the final state-- 328 << 328 // IMPORTANT NOTE: Although the name of the class and methods are 329 // The changed (final) position of a give << 329 // "Change", what it stores (and returns in get) are the "FINAL" 330 G4ThreeVector thePositionChange; << 330 // values of the Position, the normalized direction of Momentum, 331 << 331 // etc. 332 // The changed (final) global time of a g << 332 333 G4double theTimeChange = 0.0; << 333 // Set theMomentumChange vector: it is the final unitary momentum 334 << 334 // direction. 335 // The changed (final) proper time of a g << 335 void SetMomentumChange(G4double Px, G4double Py, G4double Pz); 336 G4double theProperTimeChange = 0.0; << 336 void SetMomentumChange(const G4ThreeVector& Pfinal); 337 << 337 338 // The reference G4FastTrack << 338 //===================================================== 339 const G4FastTrack* fFastTrack = nullptr; << 339 // Data members. 340 << 340 //===================================================== 341 // weight for event biasing mechanism: << 341 // theMomentumChange is the vector containing the final momentum 342 G4double theWeightChange = 0.0; << 342 // direction after the invoked process. The application of the change >> 343 // of the momentum direction of the particle is not Done here. >> 344 // The responsibility to apply the change is up the entity >> 345 // which invoked the process. >> 346 G4ParticleMomentum theMomentumChange; >> 347 >> 348 // The changed (final) polarization of a given particle. >> 349 G4ThreeVector thePolarizationChange; >> 350 >> 351 // The final kinetic energy of the current particle. >> 352 G4double theEnergyChange; >> 353 >> 354 // The changed (final) position of a given particle. >> 355 G4ThreeVector thePositionChange; >> 356 >> 357 // The changed (final) global time of a given particle. >> 358 G4double theTimeChange; >> 359 >> 360 // The changed (final) proper time of a given particle. >> 361 G4double theProperTimeChange; >> 362 >> 363 // The reference G4FastTrack >> 364 const G4FastTrack* fFastTrack; >> 365 >> 366 // weight for event biasing mechanism: >> 367 G4double theWeightChange; >> 368 >> 369 >> 370 public: >> 371 // for Debug >> 372 void DumpInfo() const; >> 373 G4bool CheckIt(const G4Track&); 343 }; 374 }; 344 375 345 //******************************************** 376 //******************************************************************* 346 // 377 // 347 // Inline functions 378 // Inline functions 348 // 379 // 349 //******************************************** 380 //******************************************************************* 350 381 351 #include "G4FastStep.icc" 382 #include "G4FastStep.icc" 352 383 353 #endif 384 #endif 354 385