50 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
53 #define G4BestUnit(a,b) a
60 #ifdef G4_TRACKING_DEBUG
61 G4cout <<
"G4SteppingVerbose has instantiated" <<
G4endl;
90 size_t npGPIL = MAXofAtRestLoops-np-1;
93 ptProcManager = (*fAtRestDoItVector)[np];
94 G4cout <<
" # " << npt <<
" : "
99 ptProcManager = (*fAtRestDoItVector)[np];
107 G4cout <<
" -- List of secondaries generated : " <<
"(x,y,z,kE,t,PID) --" <<
G4endl;
109 lp1<(*fSecondary).size(); lp1++) {
122 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
144 G4cout <<
" >>AlongStepDoIt (after all invocations):" <<
G4endl;
148 ptProcManager = (*fAlongStepDoItVector)(ci);
149 G4cout <<
" " << ci+1 <<
") ";
150 if(ptProcManager != 0){
157 G4cout <<
" ++List of secondaries generated "
158 <<
"(x,y,z,kE,t,PID):"
159 <<
" No. of secodaries = "
160 << (*fSecondary).size() <<
G4endl;
162 if((*fSecondary).size()>0){
163 for(
size_t lp1=0; lp1<(*fSecondary).size(); lp1++){
176 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
200 G4cout <<
" **PostStepDoIt (after all invocations):" <<
G4endl;
204 size_t npGPIL = MAXofPostStepLoops-np-1;
207 ptProcManager = (*fPostStepDoItVector)[np];
208 G4cout <<
" " << npt <<
") "
213 ptProcManager = (*fPostStepDoItVector)[np];
220 G4cout <<
" ++List of secondaries generated "
221 <<
"(x,y,z,kE,t,PID):"
222 <<
" No. of secodaries = "
223 << (*fSecondary).size() <<
G4endl;
224 G4cout <<
" [Note]Secondaries from AlongStepDoIt included." <<
G4endl;
226 if((*fSecondary).size()>0){
227 for(
size_t lp1=0; lp1<(*fSecondary).size(); lp1++){
240 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
262 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
263 G4cout << std::setw( 5) <<
"#Step#" <<
" "
264 << std::setw( 8) <<
"X" <<
" " << std::setw( 8) <<
"Y" <<
" "
265 << std::setw( 8) <<
"Z" <<
" "
266 << std::setw( 9) <<
"KineE" <<
" " << std::setw( 8) <<
"dE" <<
" "
267 << std::setw(12) <<
"StepLeng" <<
" " << std::setw(12) <<
"TrackLeng" <<
" "
268 << std::setw(12) <<
"NextVolume" <<
" " << std::setw( 8) <<
"ProcName" <<
G4endl;
270 G4cout << std::setw( 5) <<
"#Step#" <<
" "
271 << std::setw( 8) <<
"X(mm)" <<
" " << std::setw( 8) <<
"Y(mm)" <<
" "
272 << std::setw( 8) <<
"Z(mm)" <<
" "
273 << std::setw( 9) <<
"KinE(MeV)" <<
" " << std::setw( 8) <<
"dE(MeV)" <<
" "
274 << std::setw( 8) <<
"StepLeng" <<
" " << std::setw( 9) <<
"TrackLeng" <<
" "
275 << std::setw(11) <<
"NextVolume" <<
" " << std::setw( 8) <<
"ProcName" <<
G4endl;
291 G4cout << std::setw(11) <<
"OutOfWorld" <<
" ";
303 G4cout <<
" :----- List of 2ndaries - "
304 <<
"#SpawnInStep=" << std::setw(3) << tN2ndariesTot
307 <<
",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
309 <<
"#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
310 <<
" ---------------"
313 for(
size_t lp1=(*fSecondary).size()-tN2ndariesTot; lp1<(*fSecondary).size(); lp1++){
324 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
326 G4cout <<
" :-----------------------------" <<
"----------------------------------"
327 <<
"-- EndOf2ndaries Info ---------------" <<
G4endl;
343 G4cout <<
G4endl <<
" >>DefinePhysicalStepLength (List of proposed StepLengths): " <<
G4endl;
355 G4cout <<
"=== Defined Physical Step Length (DPSL)" <<
G4endl;
357 <<
" : ProcName = User defined maximum allowed Step" <<
G4endl;
395 G4cout <<
" ++ProposedStep(AlongStep) = "
424 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
425 G4cout << std::setw( 5) <<
"Step#" <<
" "
426 << std::setw( 8) <<
"X" <<
" "
427 << std::setw( 8) <<
"Y" <<
" "
428 << std::setw( 8) <<
"Z" <<
" "
429 << std::setw( 9) <<
"KineE" <<
" "
430 << std::setw( 8) <<
"dE" <<
" "
431 << std::setw(12) <<
"StepLeng" <<
" "
432 << std::setw(12) <<
"TrackLeng" <<
" "
433 << std::setw(12) <<
"NextVolume" <<
" "
434 << std::setw( 8) <<
"ProcName" <<
G4endl;
436 G4cout << std::setw( 5) <<
"Step#" <<
" "
437 << std::setw( 8) <<
"X(mm)" <<
" "
438 << std::setw( 8) <<
"Y(mm)" <<
" "
439 << std::setw( 8) <<
"Z(mm)" <<
" "
440 << std::setw( 9) <<
"KinE(MeV)" <<
" "
441 << std::setw( 8) <<
"dE(MeV)" <<
" "
442 << std::setw( 8) <<
"StepLeng" <<
" "
443 << std::setw( 9) <<
"TrackLeng" <<
" "
444 << std::setw(11) <<
"NextVolume" <<
" "
445 << std::setw( 8) <<
"ProcName" <<
G4endl;
460 G4cout << std::setw(11) <<
"OutOfWorld" <<
" ";
476 G4cout <<
" >>AlongStepDoIt (process by process): "
477 <<
" Process Name = "
482 <<
"!Note! Safety of PostStep is only valid "
483 <<
"after all DoIt invocations."
489 G4cout <<
" ++List of secondaries generated "
490 <<
"(x,y,z,kE,t,PID):"
491 <<
" No. of secodaries = "
508 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
523 G4cout <<
" >>PostStepDoIt (process by process): "
524 <<
" Process Name = "
532 G4cout <<
" ++List of secondaries generated "
533 <<
"(x,y,z,kE,t,PID):"
534 <<
" No. of secodaries = "
551 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
571 G4cout <<
" -----------------------------------------------"
573 G4cout <<
" G4Track Information " << std::setw(20) <<
G4endl;
574 G4cout <<
" -----------------------------------------------"
577 G4cout <<
" Step number : "
580 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
581 G4cout <<
" Position - x : "
584 G4cout <<
" Position - y : "
587 G4cout <<
" Position - z : "
590 G4cout <<
" Global Time : "
593 G4cout <<
" Local Time : "
597 G4cout <<
" Position - x (mm) : "
600 G4cout <<
" Position - y (mm) : "
603 G4cout <<
" Position - z (mm) : "
606 G4cout <<
" Global Time (ns) : "
609 G4cout <<
" Local Time (ns) : "
613 G4cout <<
" Momentum Direct - x : "
616 G4cout <<
" Momentum Direct - y : "
619 G4cout <<
" Momentum Direct - z : "
622 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
623 G4cout <<
" Kinetic Energy : "
625 G4cout <<
" Kinetic Energy (MeV): "
629 G4cout <<
" Polarization - x : "
632 G4cout <<
" Polarization - y : "
635 G4cout <<
" Polarization - z : "
638 G4cout <<
" Track Length : "
641 G4cout <<
" Track ID # : "
644 G4cout <<
" Parent Track ID # : "
647 G4cout <<
" Next Volume : "
652 G4cout <<
"OutOfWorld" <<
" ";
655 G4cout <<
" Track Status : "
660 G4cout <<
" StopButAlive";
664 G4cout <<
" KillTrackAndSecondaries";
668 G4cout <<
" PostponeToNextEvent";
671 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
672 G4cout <<
" Vertex - x : "
675 G4cout <<
" Vertex - y : "
678 G4cout <<
" Vertex - z : "
682 G4cout <<
" Vertex - x (mm) : "
685 G4cout <<
" Vertex - y (mm) : "
688 G4cout <<
" Vertex - z (mm) : "
692 G4cout <<
" Vertex - Px (MomDir): "
695 G4cout <<
" Vertex - Py (MomDir): "
698 G4cout <<
" Vertex - Pz (MomDir): "
701 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
702 G4cout <<
" Vertex - KineE : "
704 G4cout <<
" Vertex - KineE (MeV): "
709 G4cout <<
" Creator Process : "
717 G4cout <<
" -----------------------------------------------"
745 oldprc =
G4cout.precision(16);
753 G4cout <<
" -------------------------------------------------------"
754 <<
"----------------" <<
G4endl;
755 G4cout <<
" StepPoint Information " << std::setw(20) <<
"PreStep"
756 << std::setw(20) <<
"PostStep" <<
G4endl;
757 G4cout <<
" -------------------------------------------------------"
758 <<
"----------------" <<
G4endl;
759 G4cout <<
" Position - x (mm) : "
762 G4cout <<
" Position - y (mm) : "
765 G4cout <<
" Position - z (mm) : "
768 G4cout <<
" Global Time (ns) : "
771 G4cout <<
" Local Time (ns) : "
774 G4cout <<
" Proper Time (ns) : "
777 G4cout <<
" Momentum Direct - x : "
780 G4cout <<
" Momentum Direct - y : "
783 G4cout <<
" Momentum Direct - z : "
786 G4cout <<
" Momentum - x (MeV/c): "
789 G4cout <<
" Momentum - y (MeV/c): "
792 G4cout <<
" Momentum - z (MeV/c): "
795 G4cout <<
" Total Energy (MeV) : "
798 G4cout <<
" Kinetic Energy (MeV): "
801 G4cout <<
" Velocity (mm/ns) : "
804 G4cout <<
" Volume Name : "
812 volName =
"OutOfWorld";
815 G4cout <<
" Safety (mm) : "
818 G4cout <<
" Polarization - x : "
821 G4cout <<
" Polarization - y : "
824 G4cout <<
" Polarization - Z : "
830 G4cout <<
" Step Status : " ;
833 G4cout << std::setw(20) <<
"Geom Limit";
835 G4cout << std::setw(20) <<
"AlongStep Proc.";
837 G4cout << std::setw(20) <<
"PostStep Proc";
839 G4cout << std::setw(20) <<
"AtRest Proc";
841 G4cout << std::setw(20) <<
"Undefined";
846 G4cout << std::setw(20) <<
"Geom Limit";
848 G4cout << std::setw(20) <<
"AlongStep Proc.";
850 G4cout << std::setw(20) <<
"PostStep Proc";
852 G4cout << std::setw(20) <<
"AtRest Proc";
854 G4cout << std::setw(20) <<
"Undefined";
858 G4cout <<
" Process defined Step: " ;
860 G4cout << std::setw(20) <<
"Undefined";
865 G4cout << std::setw(20) <<
"Undefined";
872 G4cout <<
" -------------------------------------------------------"
873 <<
"----------------" <<
G4endl;
G4double GetTotalEnergy() const
void AlongStepDoItOneByOne()
G4SelectedPostStepDoItVector * fSelectedPostStepDoItVector
G4int GetParentID() const
const G4ThreeVector & GetPolarization() const
G4double GetWeight() const
G4double GetLocalTime() const
G4int fN2ndariesPostStepDoIt
G4double GetStepLength() const
G4VParticleChange * fParticleChange
G4VProcess * fCurrentProcess
G4StepStatus GetStepStatus() const
const G4ThreeVector & GetPosition() const
G4TrackStatus GetTrackStatus() const
G4ThreeVector GetMomentum() const
virtual void DumpInfo() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double GetVelocity() const
G4int fN2ndariesAlongStepDoIt
const G4ThreeVector const G4double const
G4double GetLocalTime() const
void VerboseParticleChange()
G4VPhysicalVolume * GetNextVolume() const
void PostStepDoItOneByOne()
static G4ThreadLocal G4int Silent
G4StepPoint * GetPreStepPoint() const
size_t MAXofAlongStepLoops
const G4VProcess * GetCreatorProcess() const
static G4ThreadLocal G4int SilentStepInfo
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4int fN2ndariesAtRestDoIt
G4int GetCurrentStepNumber() const
G4VPhysicalVolume * GetPhysicalVolume() const
G4TrackVector * fSecondary
const G4String & GetName() const
G4double GetVertexKineticEnergy() const
const G4ThreeVector & GetPosition() const
size_t MAXofPostStepLoops
G4SelectedAtRestDoItVector * fSelectedAtRestDoItVector
G4double GetGlobalTime() const
const G4String & GetProcessName() const
const G4ThreeVector & GetVertexPosition() const
G4double GetTotalEnergyDeposit() const
G4double GetTrackLength() const
const G4VProcess * GetProcessDefinedStep() const
const G4ThreeVector & GetMomentumDirection() const
G4ForceCondition fCondition
G4StepPoint * GetPostStepPoint() const
G4double GetSafety() const
G4double GetProperTime() const
G4GPILSelection fGPILSelection
G4double GetGlobalTime() const
G4double GetKineticEnergy() const
G4Track * GetTrack() const
const G4ThreeVector & GetVertexMomentumDirection() const
const G4ThreeVector & GetPolarization() const
G4double GetStepLength() const
void AlongStepDoItAllDone()
void PostStepDoItAllDone()