46 G4int prec = G4cout.precision(8);
48 if( verboseLevel >= 1 ){
49 if( verboseLevel >= 4 ) VerboseTrack();
50 if( verboseLevel >= 3 ){
52 G4cout << std::setw( 5) <<
"#Step#" <<
" "
53 << std::setw(10) <<
"X" <<
" "
54 << std::setw(10) <<
"Y" <<
" "
55 << std::setw(10) <<
"Z" <<
" "
56 << std::setw(10) <<
"KineE" <<
" "
57 << std::setw(10) <<
"dEStep" <<
" "
58 << std::setw(10) <<
"StepLeng"
59 << std::setw(10) <<
"TrakLeng"
60 << std::setw(10) <<
"NextVolu"
61 << std::setw(10) <<
"Process"
62 << std::setw(10) <<
"Dir_x" <<
" "
63 << std::setw(10) <<
"Dir_y" <<
" "
64 << std::setw(10) <<
"Dir_z" <<
" "
68 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" "
69 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().x(),
"Length")
70 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().y(),
"Length")
71 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().z(),
"Length")
72 << std::setw(10) <<
G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
74 fStep->GetTotalEnergyDeposit(),
"Energy")
75 << std::setw(10) <<
G4BestUnit(fStep->GetStepLength(),
"Length")
76 << std::setw(10) <<
G4BestUnit(fTrack->GetTrackLength(),
"Length");
78 if( fTrack->GetNextVolume() !=
nullptr ) {
79 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
81 G4cout << std::setw(10) <<
"OutOfWorld";
84 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() !=
nullptr){
87 << fStep->GetPostStepPoint()->GetProcessDefinedStep()
90 G4cout <<
" UserLimit";
93 G4cout << std::setw(12)
94 <<
G4BestUnit(fTrack->GetMomentumDirection().x(),
"Length")
96 <<
G4BestUnit(fTrack->GetMomentumDirection().y(),
"Length")
98 <<
G4BestUnit(fTrack->GetMomentumDirection().z(),
"Length");
102 if( verboseLevel == 2 ){
103 G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
104 fN2ndariesAlongStepDoIt +
105 fN2ndariesPostStepDoIt;
107 G4cout <<
" :----- List of 2ndaries - "
108 <<
"#SpawnInStep=" << std::setw(3) << tN2ndariesTot
109 <<
"(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
110 <<
",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
111 <<
",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
113 <<
"#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
114 <<
" ---------------"
117 for(
size_t lp1=(*fSecondary).size()-tN2ndariesTot;
118 lp1<(*fSecondary).size(); lp1++){
121 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),
"Length")
123 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),
"Length")
125 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),
"Length")
127 <<
G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),
"Energy")
129 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
133 G4cout <<
" :-----------------------------"
134 <<
"----------------------------------"
135 <<
"-- EndOf2ndaries Info ---------------"
141 G4cout.precision(prec);
150 G4int prec = G4cout.precision(3);
151 if( verboseLevel > 0 ){
153 G4cout << std::setw( 5) <<
"Step#" <<
" "
154 << std::setw( 6) <<
"X" <<
" "
155 << std::setw( 6) <<
"Y" <<
" "
156 << std::setw( 6) <<
"Z" <<
" "
157 << std::setw( 9) <<
"KineE" <<
" "
158 << std::setw( 9) <<
"dEStep" <<
" "
159 << std::setw(10) <<
"StepLeng"
160 << std::setw(10) <<
"TrakLeng"
161 << std::setw(10) <<
"Volume" <<
" "
162 << std::setw(10) <<
"Process" << G4endl;
164 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" "
165 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().x(),
"Length")
166 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().y(),
"Length")
167 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().z(),
"Length")
168 << std::setw( 6) <<
G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
170 fStep->GetTotalEnergyDeposit(),
"Energy")
171 << std::setw( 6) <<
G4BestUnit(fStep->GetStepLength(),
"Length")
172 << std::setw( 6) <<
G4BestUnit(fTrack->GetTrackLength(),
"Length");
174 if(fTrack->GetNextVolume()){
175 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
177 G4cout << std::setw(10) <<
"OutOfWorld";
179 G4cout <<
" initStep" << G4endl;
181 G4cout.precision(prec);