116{
117
119
121
122
123
125
127
128
131
132
133
134
135
141
142
143 ++nSecondaries;
144
148
151 hadSec.SetTime(time0);
153
154
155
161
162#ifdef G4VERBOSE
165 << " nSecondaries "
166 << nSecondaries
168 }
169#endif
170
171 for(
G4int i=0; i<nSecondaries; ++i) {
173
174
176 if(time < 0.0) { time = 0.0; }
177 time += time0;
178
179#ifdef G4VERBOSE
182 << " "
183 << i
184 << " Resulting secondary "
186 << " "
189 }
190#endif
191
192
194 time,
197
200 }
202
203
204
205
206
207 return theTotalResult;
208}
G4ThreeVector G4RandomDirection()
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetDefinition() const
virtual const G4Element * SelectZandA(const G4Track &track, G4Nucleus *)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
G4double GetLocalEnergyDeposit() const
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
void Initialise(const G4Track &aT)
void SetGlobalTime(G4double t)
void SetBoundEnergy(G4double e)
G4DynamicParticle * GetParticle()
G4double GetWeight() const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4ParticleDefinition * GetMuonicAtom(G4Ions const *)
static G4IonTable * GetIonTable()
void AddSecondary(G4Track *aSecondary)
void Initialize(const G4Track &) override
const G4String & GetParticleName() const
G4double GetWeight() const
void SetWeight(G4double aValue)
const G4ThreeVector & GetPosition() const
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4double GetGlobalTime() const
const G4TouchableHandle & GetTouchableHandle() const
void ProposeTrackStatus(G4TrackStatus status)
void ProposeWeight(G4double finalWeight)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetNumberOfSecondaries(G4int totSecondaries)
G4int GetVerboseLevel() const