Problem 844 - About warnings from G4HadronicProcess.cc
Summary: About warnings from G4HadronicProcess.cc
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/management (show other problems)
Version: other
Hardware: PC Linux
: P2 minor
Assignee: dennis.herbert.wright
URL:
Depends on:
Blocks:
 
Reported: 2006-02-19 19:52 CET by Vlasios Vasileiou
Modified: 2006-03-15 18:33 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Vlasios Vasileiou 2006-02-19 19:52:00 CET
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.
Comment 1 dennis.herbert.wright 2006-03-15 18:33:59 CET
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.