// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4FastStep.icc,v 1.4 2004/11/25 23:34:13 mverderi Exp $ // GEANT4 tag $Name: geant4-07-00-cand-01 $ // // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $ inline void G4FastStep::ProposePrimaryTrackFinalTime(G4double time) { theTimeChange = time; } inline void G4FastStep:: SetPrimaryTrackFinalTime(G4double time) { ProposePrimaryTrackFinalTime(time); } inline void G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime) { theProperTimeChange = properTime; } inline void G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime) { ProposePrimaryTrackFinalProperTime(properTime); } inline void G4FastStep:: SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy) { theEnergyChange = kineticEnergy; } inline void G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength) { ProposeTrueStepLength(pathLength); } inline void G4FastStep::SetPrimaryTrackPathLength(G4double pathLength) { ProposePrimaryTrackPathLength(pathLength); } //----------------------------------------- // // Creation of eventual secondaries: // //----------------------------------------- inline void G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries) { SetNumberOfSecondaries(nSecondaries); } inline G4int G4FastStep::GetNumberOfSecondaryTracks() { return GetNumberOfSecondaries(); } inline G4Track* G4FastStep::GetSecondaryTrack(G4int i) { return GetSecondary(i); } //--------------------------------------- // //--------------------------------------- inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart) { ProposeLocalEnergyDeposit(anEnergyPart); } inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart) { ProposeTotalEnergyDeposited(anEnergyPart); } inline G4double G4FastStep::GetTotalEnergyDeposited() const { return GetLocalEnergyDeposit(); } inline void G4FastStep::ForceSteppingHitInvocation() { ProposeSteppingControl(NormalCondition); } inline void G4FastStep::SetMomentumChange( G4double Px, G4double Py, G4double Pz ) { theMomentumChange.setX(Px); theMomentumChange.setY(Py); theMomentumChange.setZ(Pz); } inline void G4FastStep::SetMomentumChange(const G4ThreeVector& P) { theMomentumChange = P; } inline void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w) { theWeightChange = w; } inline void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w) { ProposePrimaryTrackFinalEventBiasingWeight(w); }