Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
+9 -8
View File
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: G4FieldTrackUpdator.cc,v 1.2 2006-12-13 15:49:45 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
// M. Asai - first implementation Apr/28/2006
//
@@ -66,12 +65,14 @@ void G4FieldTrackUpdator::Update(G4FieldTrack* ftrk,const G4Track* trk)
trk->GetMomentumDirection(),
trk->GetKineticEnergy()
);
ftrk->SetChargeAndMoments(
trk->GetDynamicParticle()->GetCharge()
);
ftrk->SetSpin(
trk->GetDynamicParticle()->GetPolarization()
);
const G4DynamicParticle* ptDynamicParticle= trk->GetDynamicParticle();
ftrk->SetChargeAndMoments( ptDynamicParticle->GetCharge() );
// The charge can change during tracking
ftrk->SetSpin( ptDynamicParticle->GetPolarization() );
// The following properties must be updated ONCE for each new track (at least)
ftrk->SetRestMass(ptDynamicParticle->GetMass());
}