| Summary: | About warnings from G4HadronicProcess.cc | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Vlasios Vasileiou <vlasisva> |
| Component: | processes/hadronic/management | Assignee: | dennis.herbert.wright |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | other | ||
| Hardware: | PC | ||
| OS: | Linux | ||
For suspended tracks the reaction is now allowed to occur at the end of the step. The track status now remains suspended, as it should, so that the tracking can reset it to alive. The warning for suspended tracks has been removed. |
G4HadronicProcess.cc at line 324 has the code if(aTrack.GetTrackStatus() != fAlive) { G4cerr << "G4HadronicProcess: track in unusable state - " <<aTrack.GetTrackStatus()<<G4endl; G4cerr << "G4HadronicProcess: returning unchanged track "<<G4endl; G4Exception("G4HadronicProcess", "001", JustWarning, "bailing out"); theTotalResult->Clear(); theTotalResult->Initialize(aTrack); return theTotalResult; } G4Cerenkov.cc at line 186 has the code: if (fTrackSecondariesFirst) { if (aTrack.GetTrackStatus() == fAlive ) aParticleChange.ProposeTrackStatus(fSuspend); } If the flag fTrackSecondariesFirst is set to True than a charged hadron emitting Cerenkov photons will be put in fSuspend status for many times during its life. While in this status, G4HadronicProcess would see that the status of the track is not fAlive and give a warning. ********************************************************************************************************* * G4Track Information: Particle = pi-, Track ID = 751, Parent ID = 0 ********************************************************************************************************* Step# X(mm) Y(mm) Z(mm) KinE(MeV) dE(MeV) StepLeng TrackLeng NextVolume ProcName 484 1.36e+04 -1.98e+04 -955 4.68e+04 0 0 6.05e+03 pond initStep G4HadronicProcess: track in unusable state - 4 G4HadronicProcess: returning unchanged track *** G4Exception : 001 issued by : G4HadronicProcess bailing out *** This is just a warning message. 485 1.36e+04 -1.98e+04 -956 4.68e+04 0.0581 0.387 6.05e+03 pond LElastic I'm using Geant4.8.0.