40 :userStackingAction(0),verboseLevel(0),numberOfAdditionalWaitingStacks(0)
43 #ifdef G4_USESMARTSTACK
61 G4cout <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" <<
G4endl;
63 G4cout <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" <<
G4endl;
80 const{
return false; }
100 ED <<
"A track without proper process manager is pushed into the track stack.\n"
103 { ED <<
"created by a primary particle generator."; }
110 { ED <<
"creaded by unknown process."; }
119 ED <<
"\n Process manager is temporally set, but this operation is thread-unsafe\n"
120 <<
"and will be replaced with other methods at version 10.0.";
127 if ((genericIon ==0) || (pman==0)){
129 "Can not define process manager. GenericIon is not available.");
138 <<
" that is equivalent to " << pman <<
G4endl;
140 for(
G4int ip1=0;ip1<ionPvec->
size();ip1++)
142 G4cout <<
" " << ip1 <<
" - " << (*ionPvec)[ip1]->GetProcessName()
156 ED <<
"\nThis track is deleted.";
157 G4Exception(
"G4StackManager::PushOneTrack",
"Event10051",
170 if(classification==
fKill)
175 G4cout <<
" ---> G4Track " << newTrack <<
" (trackID "
181 delete newTrajectory;
186 switch (classification)
198 G4int i = classification - 10;
201 ED <<
"invalid classification " << classification <<
G4endl;
202 G4Exception(
"G4StackManager::PushOneTrack",
"Event0051",
220 G4cout <<
"### pop requested out of "
229 <<
" waiting tracks are re-classified to" <<
G4endl;
245 <<
" waiting tracks." <<
G4endl;
257 G4cout <<
"Selected G4StackedTrack : " << &selectedStackedTrack
258 <<
" with G4Track " << selectedStackedTrack.
GetTrack()
265 return selectedTrack;
282 switch (classification)
298 G4int i = classification - 10;
301 ED <<
"invalid classification " << classification <<
G4endl;
302 G4Exception(
"G4StackManager::ReClassify",
"Event0052",
318 G4int n_passedFromPrevious = 0;
326 <<
" postponed tracked are now shifted to the stack." <<
G4endl;
346 if(classification==
fKill)
353 aTrack->
SetTrackID(-(++n_passedFromPrevious));
354 switch (classification)
366 G4int i = classification - 10;
369 ED <<
"invalid classification " << classification <<
G4endl;
370 G4Exception(
"G4StackManager::PrepareNewEvent",
"Event0053",
381 return n_passedFromPrevious;
406 if(origin==destination)
return;
407 if(origin==
fKill)
return;
426 if(destination==
fKill)
448 int i = destination - 10;
467 if(origin==destination)
return;
468 if(origin==
fKill)
return;
488 if(destination==
fKill)
490 if( originStack && originStack->
GetNTrack() ) {
516 int i = destination - 10;
520 if(originStack && originStack->
GetNTrack()) {
522 if(targetStack) { targetStack->
PushToStack(aStackedTrack); }
527 if(targetStack) { targetStack->
PushToStack(aStackedTrack); }
602 return classification;
G4Track * GetTrack() const
G4int GetParticleDefinitionID() const
G4int GetParentID() const
G4TrackStack * urgentStack
G4UserStackingAction * userStackingAction
void SetParticleDefinitionID(G4int id=-1)
G4int GetAlongStepIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
std::ostringstream G4ExceptionDescription
void SetStackManager(G4StackManager *value)
void PushToStack(const G4StackedTrack &aStackedTrack)
std::vector< G4TrackStack * > additionalWaitingStacks
G4int GetNTotalTrack() const
G4TrackStatus GetTrackStatus() const
G4Track * PopNextTrack(G4VTrajectory **newTrajectory)
G4ParticleDefinition * GetGenericIon() const
const G4String & GetParticleName() const
G4TrackStack * waitingStack
G4int GetAtRestIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
G4int GetNUrgentTrack() const
G4bool IsGeneralIon() const
void TransferTo(G4TrackStack *aStack)
const G4VProcess * GetCreatorProcess() const
G4int operator!=(const G4StackManager &right) const
void SetUserStackingAction(G4UserStackingAction *value)
G4int operator==(const G4StackManager &right) const
G4GLOB_DLL std::ostream G4cout
G4VTrajectory * GetTrajectory() const
G4StackedTrack PopFromStack()
G4int PushOneTrack(G4Track *newTrack, G4VTrajectory *newTrajectory=0)
const G4ParticleDefinition * GetParticleDefinition() const
virtual void PrepareNewEvent()
void SetVerboseLevel(G4int const value)
const G4String & GetProcessName() const
void TransferOneStackedTrack(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
G4TrackStack * postponeStack
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void TransferStackedTracks(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
G4int GetNWaitingTrack(int i=0) const
void ClearPostponeStack()
G4ClassificationOfNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
static G4ParticleTable * GetParticleTable()
G4ProcessManager * GetProcessManager() const
void SetParentID(const G4int aValue)
G4int GetPostStepIndex(G4VProcess *aProcess, G4ProcessVectorTypeIndex typ=typeGPIL) const
void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
G4int GetNPostponedTrack() const
G4ClassificationOfNewTrack DefaultClassification(G4Track *aTrack)
G4int GetMaxNTrack() const
G4int numberOfAdditionalWaitingStacks
void SetTrackID(const G4int aValue)
G4ProcessVector * GetProcessList() const
void ClearWaitingStack(int i=0)
G4StackingMessenger * theMessenger