Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/track/src/G4Step.cc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4Step.cc,v 1.7 2006/10/30 09:50:13 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4Step.cc,v 1.11 2010/10/30 07:49:08 kurasige Exp $
     28// GEANT4 tag $Name: track-V09-03-09 $
    2929//
    3030//
     
    5454G4Step::G4Step()
    5555////////////////
     56  :  fTotalEnergyDeposit(0.0),fNonIonizingEnergyDeposit(0.0),
     57     fStepLength(0.), fpTrack(0),
     58     fpSteppingControlFlag(NormalCondition),fSecondary(0),
     59     fpVectorOfAuxiliaryPointsPointer(0)
    5660{
    5761  fpPreStepPoint  = new G4StepPoint();
     
    6973  delete fpPostStepPoint;
    7074}
     75
     76
     77/////////////////
     78G4ThreeVector G4Step::GetDeltaMomentum() const
     79/////////////////
     80{
     81  static G4bool isFirstTime = true;
     82  if (isFirstTime) {
     83    isFirstTime = false;
     84#ifdef G4VERBOSE
     85    G4Exception( "G4Step::GetDeltaMomentum()","Warning", JustWarning,
     86                 "This method is obsolete and will be removed soon");
     87#endif
     88  }
     89
     90  return fpPostStepPoint->GetMomentum()
     91    - fpPreStepPoint->GetMomentum();
     92}
     93
     94/////////////////
     95G4double G4Step::GetDeltaEnergy() const
     96  /////////////////
     97{
     98  static G4bool isFirstTime = true;
     99  if (isFirstTime) {
     100    isFirstTime = false;
     101#ifdef G4VERBOSE
     102    G4Exception( "G4Step::GetDeltaEnergy()","Warning", JustWarning,
     103                 "This method is obsolete and will be removed soon");
     104#endif
     105  }
     106
     107  return fpPostStepPoint->GetKineticEnergy()
     108    - fpPreStepPoint->GetKineticEnergy();
     109}
Note: See TracChangeset for help on using the changeset viewer.