2 // ********************************************************************
 
    3 // * License and Disclaimer                                           *
 
    5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
 
    6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
 
    7 // * conditions of the Geant4 Software License,  included in the file *
 
    8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
 
    9 // * include a list of copyright holders.                             *
 
   11 // * Neither the authors of this software system, nor their employing *
 
   12 // * institutes,nor the agencies providing financial support for this *
 
   13 // * work  make  any representation or  warranty, express or implied, *
 
   14 // * regarding  this  software system or assume any liability for its *
 
   15 // * use.  Please see the license in the file  LICENSE  and URL above *
 
   16 // * for the full disclaimer and the limitation of liability.         *
 
   18 // * This  code  implementation is the result of  the  scientific and *
 
   19 // * technical work of the GEANT4 collaboration.                      *
 
   20 // * By using,  copying,  modifying or  distributing the software (or *
 
   21 // * any work based  on the software)  you  agree  to acknowledge its *
 
   22 // * use  in  resulting  scientific  publications,  and indicate your *
 
   23 // * acceptance of all terms of the Geant4 Software license.          *
 
   24 // ********************************************************************
 
   27 // $Id: G4FastStep.icc 68056 2013-03-13 14:44:48Z gcosmo $
 
   29 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
 
   32 G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
 
   37 G4FastStep::    SetPrimaryTrackFinalTime(G4double time)
 
   39   ProposePrimaryTrackFinalTime(time);
 
   44 G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
 
   46   theProperTimeChange = properTime;
 
   49 G4FastStep::    SetPrimaryTrackFinalProperTime(G4double properTime)
 
   51   ProposePrimaryTrackFinalProperTime(properTime);
 
   57 ProposePrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
 
   59   theEnergyChange = kineticEnergy;
 
   63 SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
 
   65   ProposePrimaryTrackFinalKineticEnergy(kineticEnergy);
 
   70 G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
 
   72   ProposeTrueStepLength(pathLength);
 
   75 G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
 
   77   ProposePrimaryTrackPathLength(pathLength);
 
   80 //-----------------------------------------
 
   82 // Creation of eventual secondaries: 
 
   84 //-----------------------------------------
 
   87 G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
 
   89   SetNumberOfSecondaries(nSecondaries);
 
   93 G4FastStep::GetNumberOfSecondaryTracks()
 
   95   return GetNumberOfSecondaries();
 
   98 inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
 
  100   return GetSecondary(i);
 
  104 //---------------------------------------
 
  106 //---------------------------------------
 
  107 inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
 
  109   ProposeLocalEnergyDeposit(anEnergyPart);
 
  111 inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
 
  113   ProposeTotalEnergyDeposited(anEnergyPart);
 
  117 inline G4double G4FastStep::GetTotalEnergyDeposited() const
 
  119   return GetLocalEnergyDeposit();
 
  123 inline void G4FastStep::ForceSteppingHitInvocation()
 
  125   ProposeSteppingControl(NormalCondition);
 
  129 void G4FastStep::SetMomentumChange(
 
  134   theMomentumChange.setX(Px);
 
  135   theMomentumChange.setY(Py);
 
  136   theMomentumChange.setZ(Pz);
 
  141 void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
 
  143   theMomentumChange = P;
 
  148 void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w)
 
  153 void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
 
  155   ProposePrimaryTrackFinalEventBiasingWeight(w);