10 #include "G4UnitsTable.hh" 28 if ( verboseLevel >= 1 )
30 if ( verboseLevel >= 4 ) VerboseTrack();
31 if ( verboseLevel >= 3 )
34 G4cout << std::setw( 5) <<
"#Step#" <<
" " 35 << std::setw( 6) <<
"X" <<
" " 36 << std::setw( 6) <<
"Y" <<
" " 37 << std::setw( 6) <<
"Z" <<
" " 38 << std::setw( 9) <<
"KineE" <<
" " 39 << std::setw( 9) <<
"dEStep" <<
" " 40 << std::setw(10) <<
"StepLength" <<
" " 41 << std::setw(10) <<
"TrackLength" <<
" " 42 << std::setw(10) <<
"Volume" <<
" " 43 << std::setw(10) <<
"Process" << G4endl;
45 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" " 46 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),
"Length")
47 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),
"Length")
48 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),
"Length")
49 << std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
50 << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),
"Energy")
51 << std::setw( 6) << G4BestUnit(fStep->GetStepLength(),
"Length")
52 << std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),
"Length")
55 if ( fTrack->GetNextVolume() !=
nullptr )
57 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
61 G4cout << std::setw(10) <<
"OutOfWorld";
64 if ( fStep->GetPostStepPoint()->GetProcessDefinedStep() !=
nullptr )
66 G4cout <<
" " << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
76 if ( verboseLevel == 2 )
79 G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
80 fN2ndariesAlongStepDoIt + fN2ndariesPostStepDoIt;
82 if ( tN2ndariesTot > 0 )
84 G4cout <<
" :---- List of Secondaries - " 85 <<
"#SpawnInStep = " << std::setw(3) << tN2ndariesTot
86 <<
"(Rest = " << std::setw(2) << fN2ndariesAtRestDoIt
87 <<
", Along = " << std::setw(2) << fN2ndariesAlongStepDoIt
88 <<
", Post = " << std::setw(2) << fN2ndariesPostStepDoIt
90 <<
"#SpawnTotal = " << std::setw(3) << (*fSecondary).size()
91 <<
" --------- " << G4endl;
93 for (
size_t lp1 = (*fSecondary).size() - tN2ndariesTot; lp1 < (*fSecondary).size(); lp1++)
97 << G4BestUnit((*fSecondary)[lp1]->GetPosition().
x(),
"Length")
99 << G4BestUnit((*fSecondary)[lp1]->GetPosition().
y(),
"Length")
101 << G4BestUnit((*fSecondary)[lp1]->GetPosition().
z(),
"Length")
103 << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),
"Energy")
105 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
109 G4cout <<
" :----------------------" 110 <<
"--------------------------" 111 <<
"-- End of Secondaries Info --------------------------------- " 117 G4cout.precision(precision);
125 if ( verboseLevel > 0 )
127 G4cout << std::setw( 5) <<
"Step#" <<
" " 128 << std::setw( 6) <<
"X" <<
" " 129 << std::setw( 6) <<
"Y" <<
" " 130 << std::setw( 6) <<
"Z" <<
" " 131 << std::setw( 9) <<
"KineE" <<
" " 132 << std::setw( 9) <<
"dEStep" <<
" " 133 << std::setw(10) <<
"StepLength" <<
" " 134 << std::setw(10) <<
"TrackLength" <<
" " 135 << std::setw(10) <<
"Volume" <<
" " 136 << std::setw(10) <<
"Process " << G4endl;
138 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" " 139 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),
"Length")
140 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),
"Length")
141 << std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),
"Length")
142 << std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
143 << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),
"Energy")
144 << std::setw( 6) << G4BestUnit(fStep->GetStepLength(),
"Length")
145 << std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),
"Length") <<
" ";
147 if (fTrack->GetNextVolume() !=
nullptr)
149 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
156 G4cout <<
" initStep" << G4endl;
158 G4cout.precision(precision);
void StepInfo() override
step information
void TrackingStarted() override
tracking information
~LaserSteppingVerbose() override
destructor
LaserSteppingVerbose()
constructor