151{
152
153
154
155 G4String rName = track.GetStep()->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetRegion()->GetName();
156
157 if( rName != fEnvelopeName )
158 {
160 {
161 G4cout<<
"Go out from G4ElNeutrinoNucleusProcess::PostStepDoIt: wrong volume "<<
G4endl;
162 }
164 }
167 G4double weight = track.GetWeight();
169
170 if( track.GetTrackStatus() !=
fAlive )
171 {
173 }
174
175
176 if (track.GetTrackStatus() !=
fAlive &&
178 {
182 {
184 ed << "G4HadronicProcess: track in unusable state - "
186 ed <<
"G4HadronicProcess: returning unchanged track " <<
G4endl;
189 }
190
192 }
193
194
196
197 G4double kineticEnergy = track.GetKineticEnergy();
201
202
203
204
206
209
210
211
212 const G4StepPoint* pPostStepPoint = step.GetPostStepPoint();
217
218
219 if( fNuNuclCcBias > 1.0 || fNuNuclNcBias > 1.0)
220 {
225
228
229 G4double forward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, localV);
230 G4double backward = track.GetVolume()->GetLogicalVolume()->GetSolid()->DistanceToOut(localP, -localV);
231
232 G4double distance = forward+backward;
233
234
235
236
237
238
240
242
243 startTime += delta/track.GetVelocity();
244
245 newPosition =
position + range*direction;
246
248
250
251 }
255
256
259
260 if( elm ) ZZ = elm->
GetZ();
261
263 xsc *= 1.;
265
267 {
268
270
273
275
277
279
281 }
282 else
283 {
284
287
288 size_t idx = track.GetMaterialCutsCouple()->GetIndex();
289
291
293
295 {
296 G4cout <<
"G4ElNeutrinoNucleusProcess::PostStepDoIt for "
298 <<
" in " << material->
GetName()
301 }
302 try
303 {
305 }
307 {
311 ed <<
"Target element "<< elm->
GetName()<<
" Z= "
315 ed <<
" ApplyYourself failed" <<
G4endl;
316 G4Exception(
"G4ElNeutrinoNucleusProcess::PostStepDoIt",
"had006",
318 }
319
320
325
327 {
331 << " dir= " << outdir
333 }
334
335
338
339 if(efinal < 0.0) { efinal = 0.0; }
340 if(edep < 0.0) { edep = 0.0; }
341
342
343
344
345 if(efinal <= lowestEnergy)
346 {
347 edep += efinal;
348 efinal = 0.0;
349 }
350
351
353
355
356 if(efinal > 0.0)
357 {
361 }
362 else
363 {
365 {
367 }
368 else
369 {
371 }
373 }
374
375
377
378
379
381 {
383
385 {
388
389
390
391
394
395
396
398
399
400
402 track.GetPosition());
406 }
407 else
408 {
410 delete p;
411 }
412 }
416 }
418}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
@ fKillTrackAndSecondaries
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector & rotate(double, const Hep3Vector &)
void SetMomentumDirection(const G4ThreeVector &aDirection)
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4String & GetName() const
G4double GetEnergyChange() const
void SetTrafoToLab(const G4LorentzRotation &aT)
G4double GetLocalEnergyDeposit() const
const G4ThreeVector & GetMomentumChange() const
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
void Initialise(const G4Track &aT)
G4LorentzRotation & GetTrafoToLab()
G4DynamicParticle * GetParticle()
void Report(std::ostream &aS) const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
const G4String & GetModelName() const
void SetRecoilEnergyThreshold(G4double val)
void FillResult(G4HadFinalState *aR, const G4Track &aT)
G4Nucleus * GetTargetNucleusPointer()
G4ParticleChange * theTotalResult
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()
void DumpState(const G4Track &, const G4String &, G4ExceptionDescription &)
const G4String & GetName() const
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void AddSecondary(G4Track *aSecondary)
void ProposePosition(G4double x, G4double y, G4double z)
void ProposeEnergy(G4double finalEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
virtual void Initialize(const G4Track &)
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4ProcessVector * GetAtRestProcessVector(G4ProcessVectorTypeIndex typ=typeGPIL) const
const std::vector< G4double > * GetEnergyCutsVector(std::size_t pcIdx) const
static G4ProductionCutsTable * GetProductionCutsTable()
void ReLocateWithinVolume(const G4ThreeVector &pGlobalPoint)
const G4VTouchable * GetTouchable() const
G4double GetGlobalTime() const
const G4ThreeVector & GetPosition() const
void SetWeight(G4double aValue)
void SetTouchableHandle(const G4TouchableHandle &apValue)
virtual G4double GetElementCrossSection(const G4DynamicParticle *, G4int Z, const G4Material *mat=nullptr)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void ProposeTrackStatus(G4TrackStatus status)
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeWeight(G4double finalWeight)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetNumberOfSecondaries(G4int totSecondaries)
G4TrackStatus GetTrackStatus() const
void ClearNumberOfInteractionLengthLeft()
virtual const G4ThreeVector & GetTranslation(G4int depth=0) const =0
virtual const G4RotationMatrix * GetRotation(G4int depth=0) const =0