MCPcopy Create free account
hub / github.com/Geant4/geant4 / Initialize

Method Initialize

source/track/src/G4ParticleChangeForDecay.cc:43–56  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

41
42// --------------------------------------------------------------------
43void G4ParticleChangeForDecay::Initialize(const G4Track& track)
44{
45 // use base class's method at first
46 G4VParticleChange::Initialize(track);
47
48 // set TimeChange equal to local time of the parent track
49 theLocalTime0 = theTimeChange = track.GetLocalTime();
50
51 // set initial Local/Global time of the parent track
52 theGlobalTime0 = track.GetGlobalTime();
53
54 // set the Polarization equal to those of the parent track
55 thePolarizationChange = track.GetDynamicParticle()->GetPolarization();
56}
57
58// --------------------------------------------------------------------
59G4Step* G4ParticleChangeForDecay::UpdateStepForPostStep(G4Step* pStep)

Callers

nothing calls this directly

Calls 4

InitializeFunction · 0.85
GetLocalTimeMethod · 0.80
GetGlobalTimeMethod · 0.45
GetPolarizationMethod · 0.45

Tested by

no test coverage detected