49 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
52 #define G4BestUnit(a,b) a
59 #ifdef G4_TRACKING_DEBUG
60 G4cout <<
"G4SteppingVerbose has instantiated" <<
G4endl;
89 size_t npGPIL = MAXofAtRestLoops-np-1;
92 ptProcManager = (*fAtRestDoItVector)[np];
93 G4cout <<
" # " << npt <<
" : "
98 ptProcManager = (*fAtRestDoItVector)[np];
106 G4cout <<
" -- List of secondaries generated : " <<
"(x,y,z,kE,t,PID) --" <<
G4endl;
108 lp1<(*fSecondary).size(); lp1++) {
121 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
143 G4cout <<
" >>AlongStepDoIt (after all invocations):" <<
G4endl;
147 ptProcManager = (*fAlongStepDoItVector)(ci);
148 G4cout <<
" " << ci+1 <<
") ";
149 if(ptProcManager != 0){
156 G4cout <<
" ++List of secondaries generated "
157 <<
"(x,y,z,kE,t,PID):"
158 <<
" No. of secodaries = "
159 << (*fSecondary).size() <<
G4endl;
161 if((*fSecondary).size()>0){
162 for(
size_t lp1=0; lp1<(*fSecondary).size(); lp1++){
175 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
199 G4cout <<
" **PostStepDoIt (after all invocations):" <<
G4endl;
203 size_t npGPIL = MAXofPostStepLoops-np-1;
206 ptProcManager = (*fPostStepDoItVector)[np];
207 G4cout <<
" " << npt <<
") "
212 ptProcManager = (*fPostStepDoItVector)[np];
219 G4cout <<
" ++List of secondaries generated "
220 <<
"(x,y,z,kE,t,PID):"
221 <<
" No. of secodaries = "
222 << (*fSecondary).size() <<
G4endl;
223 G4cout <<
" [Note]Secondaries from AlongStepDoIt included." <<
G4endl;
225 if((*fSecondary).size()>0){
226 for(
size_t lp1=0; lp1<(*fSecondary).size(); lp1++){
239 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
261 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
262 G4cout << std::setw( 5) <<
"#Step#" <<
" "
263 << std::setw( 8) <<
"X" <<
" " << std::setw( 8) <<
"Y" <<
" "
264 << std::setw( 8) <<
"Z" <<
" "
265 << std::setw( 9) <<
"KineE" <<
" " << std::setw( 8) <<
"dE" <<
" "
266 << std::setw(12) <<
"StepLeng" <<
" " << std::setw(12) <<
"TrackLeng" <<
" "
267 << std::setw(12) <<
"NextVolume" <<
" " << std::setw( 8) <<
"ProcName" <<
G4endl;
269 G4cout << std::setw( 5) <<
"#Step#" <<
" "
270 << std::setw( 8) <<
"X(mm)" <<
" " << std::setw( 8) <<
"Y(mm)" <<
" "
271 << std::setw( 8) <<
"Z(mm)" <<
" "
272 << std::setw( 9) <<
"KinE(MeV)" <<
" " << std::setw( 8) <<
"dE(MeV)" <<
" "
273 << std::setw( 8) <<
"StepLeng" <<
" " << std::setw( 9) <<
"TrackLeng" <<
" "
274 << std::setw(11) <<
"NextVolume" <<
" " << std::setw( 8) <<
"ProcName" <<
G4endl;
290 G4cout << std::setw(11) <<
"OutOfWorld" <<
" ";
302 G4cout <<
" :----- List of 2ndaries - "
303 <<
"#SpawnInStep=" << std::setw(3) << tN2ndariesTot
306 <<
",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
308 <<
"#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
309 <<
" ---------------"
312 for(
size_t lp1=(*fSecondary).size()-tN2ndariesTot; lp1<(*fSecondary).size(); lp1++){
323 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
325 G4cout <<
" :-----------------------------" <<
"----------------------------------"
326 <<
"-- EndOf2ndaries Info ---------------" <<
G4endl;
342 G4cout <<
G4endl <<
" >>DefinePhysicalStepLength (List of proposed StepLengths): " <<
G4endl;
354 G4cout <<
"=== Defined Physical Step Length (DPSL)" <<
G4endl;
356 <<
" : ProcName = User defined maximum allowed Step" <<
G4endl;
394 G4cout <<
" ++ProposedStep(AlongStep) = "
423 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
424 G4cout << std::setw( 5) <<
"Step#" <<
" "
425 << std::setw( 8) <<
"X" <<
" "
426 << std::setw( 8) <<
"Y" <<
" "
427 << std::setw( 8) <<
"Z" <<
" "
428 << std::setw( 9) <<
"KineE" <<
" "
429 << std::setw( 8) <<
"dE" <<
" "
430 << std::setw(12) <<
"StepLeng" <<
" "
431 << std::setw(12) <<
"TrackLeng" <<
" "
432 << std::setw(12) <<
"NextVolume" <<
" "
433 << std::setw( 8) <<
"ProcName" <<
G4endl;
435 G4cout << std::setw( 5) <<
"Step#" <<
" "
436 << std::setw( 8) <<
"X(mm)" <<
" "
437 << std::setw( 8) <<
"Y(mm)" <<
" "
438 << std::setw( 8) <<
"Z(mm)" <<
" "
439 << std::setw( 9) <<
"KinE(MeV)" <<
" "
440 << std::setw( 8) <<
"dE(MeV)" <<
" "
441 << std::setw( 8) <<
"StepLeng" <<
" "
442 << std::setw( 9) <<
"TrackLeng" <<
" "
443 << std::setw(11) <<
"NextVolume" <<
" "
444 << std::setw( 8) <<
"ProcName" <<
G4endl;
459 G4cout << std::setw(11) <<
"OutOfWorld" <<
" ";
475 G4cout <<
" >>AlongStepDoIt (process by process): "
476 <<
" Process Name = "
481 <<
"!Note! Safety of PostStep is only valid "
482 <<
"after all DoIt invocations."
488 G4cout <<
" ++List of secondaries generated "
489 <<
"(x,y,z,kE,t,PID):"
490 <<
" No. of secodaries = "
507 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
522 G4cout <<
" >>PostStepDoIt (process by process): "
523 <<
" Process Name = "
531 G4cout <<
" ++List of secondaries generated "
532 <<
"(x,y,z,kE,t,PID):"
533 <<
" No. of secodaries = "
550 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName() <<
G4endl;
570 G4cout <<
" -----------------------------------------------"
572 G4cout <<
" G4Track Information " << std::setw(20) <<
G4endl;
573 G4cout <<
" -----------------------------------------------"
576 G4cout <<
" Step number : "
579 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
580 G4cout <<
" Position - x : "
583 G4cout <<
" Position - y : "
586 G4cout <<
" Position - z : "
589 G4cout <<
" Global Time : "
592 G4cout <<
" Local Time : "
596 G4cout <<
" Position - x (mm) : "
599 G4cout <<
" Position - y (mm) : "
602 G4cout <<
" Position - z (mm) : "
605 G4cout <<
" Global Time (ns) : "
608 G4cout <<
" Local Time (ns) : "
612 G4cout <<
" Momentum Direct - x : "
615 G4cout <<
" Momentum Direct - y : "
618 G4cout <<
" Momentum Direct - z : "
621 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
622 G4cout <<
" Kinetic Energy : "
624 G4cout <<
" Kinetic Energy (MeV): "
628 G4cout <<
" Polarization - x : "
631 G4cout <<
" Polarization - y : "
634 G4cout <<
" Polarization - z : "
637 G4cout <<
" Track Length : "
640 G4cout <<
" Track ID # : "
643 G4cout <<
" Parent Track ID # : "
646 G4cout <<
" Next Volume : "
651 G4cout <<
"OutOfWorld" <<
" ";
654 G4cout <<
" Track Status : "
659 G4cout <<
" StopButAlive";
663 G4cout <<
" KillTrackAndSecondaries";
667 G4cout <<
" PostponeToNextEvent";
670 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
671 G4cout <<
" Vertex - x : "
674 G4cout <<
" Vertex - y : "
677 G4cout <<
" Vertex - z : "
681 G4cout <<
" Vertex - x (mm) : "
684 G4cout <<
" Vertex - y (mm) : "
687 G4cout <<
" Vertex - z (mm) : "
691 G4cout <<
" Vertex - Px (MomDir): "
694 G4cout <<
" Vertex - Py (MomDir): "
697 G4cout <<
" Vertex - Pz (MomDir): "
700 #ifdef G4_USE_G4BESTUNIT_FOR_VERBOSE
701 G4cout <<
" Vertex - KineE : "
703 G4cout <<
" Vertex - KineE (MeV): "
708 G4cout <<
" Creator Process : "
716 G4cout <<
" -----------------------------------------------"
744 oldprc =
G4cout.precision(16);
752 G4cout <<
" -------------------------------------------------------"
753 <<
"----------------" <<
G4endl;
754 G4cout <<
" StepPoint Information " << std::setw(20) <<
"PreStep"
755 << std::setw(20) <<
"PostStep" <<
G4endl;
756 G4cout <<
" -------------------------------------------------------"
757 <<
"----------------" <<
G4endl;
758 G4cout <<
" Position - x (mm) : "
761 G4cout <<
" Position - y (mm) : "
764 G4cout <<
" Position - z (mm) : "
767 G4cout <<
" Global Time (ns) : "
770 G4cout <<
" Local Time (ns) : "
773 G4cout <<
" Proper Time (ns) : "
776 G4cout <<
" Momentum Direct - x : "
779 G4cout <<
" Momentum Direct - y : "
782 G4cout <<
" Momentum Direct - z : "
785 G4cout <<
" Momentum - x (MeV/c): "
788 G4cout <<
" Momentum - y (MeV/c): "
791 G4cout <<
" Momentum - z (MeV/c): "
794 G4cout <<
" Total Energy (MeV) : "
797 G4cout <<
" Kinetic Energy (MeV): "
800 G4cout <<
" Velocity (mm/ns) : "
803 G4cout <<
" Volume Name : "
811 volName =
"OutOfWorld";
814 G4cout <<
" Safety (mm) : "
817 G4cout <<
" Polarization - x : "
820 G4cout <<
" Polarization - y : "
823 G4cout <<
" Polarization - Z : "
829 G4cout <<
" Step Status : " ;
832 G4cout << std::setw(20) <<
"Geom Limit";
834 G4cout << std::setw(20) <<
"AlongStep Proc.";
836 G4cout << std::setw(20) <<
"PostStep Proc";
838 G4cout << std::setw(20) <<
"AtRest Proc";
840 G4cout << std::setw(20) <<
"Undefined";
845 G4cout << std::setw(20) <<
"Geom Limit";
847 G4cout << std::setw(20) <<
"AlongStep Proc.";
849 G4cout << std::setw(20) <<
"PostStep Proc";
851 G4cout << std::setw(20) <<
"AtRest Proc";
853 G4cout << std::setw(20) <<
"Undefined";
857 G4cout <<
" Process defined Step: " ;
859 G4cout << std::setw(20) <<
"Undefined";
864 G4cout << std::setw(20) <<
"Undefined";
871 G4cout <<
" -------------------------------------------------------"
872 <<
"----------------" <<
G4endl;