QwGeant4
QweakSimSteppingVerbose.cc
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // ---------------------------
4 // | Doxygen File Information |
5 // ---------------------------
6 //
7 /**
8 
9  \file QweakSimSteppingVerbose.cc
10 
11  $Revision: 1.2 $
12  $Date: 2005/12/27 19:15:05 $
13 
14  \author Klaus Hans Grimm
15 
16 */
17 //=============================================================================
18 
19 //=============================================================================
20 // -----------------------
21 // | CVS File Information |
22 // -----------------------
23 //
24 // Last Update: $Author: grimm $
25 // Update Date: $Date: 2005/12/27 19:15:05 $
26 // CVS/RCS Revision: $Revision: 1.2 $
27 // Status: $State: Exp $
28 //
29 // ===================================
30 // CVS Revision Log at end of file !!
31 // ===================================
32 //
33 //============================================================================
34 
35 
36 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37 
39 
40 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41 
43 {;}
44 
45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46 
48 {}
49 
50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 
53 {
54 // G4cout << "In QweakSimSteppingVerbose::StepInfo()" << G4endl;
55 
56  CopyState();// ??? , from G4VSteppingVerbose
57 
58  G4int prec = G4cout.precision(3);
59 // verboseLevel = 3;
60 
61  if( verboseLevel >= 1 ){
62  if( verboseLevel >= 4 ) VerboseTrack();
63  if( verboseLevel >= 3 ){
64 // G4cout << G4endl;
65 // G4cout << std::setw( 5) << "#Step#" << " "
66 // << std::setw( 6) << "X" << " "
67 // << std::setw( 6) << "Y" << " "
68 // << std::setw( 6) << "Z" << " "
69 // << std::setw( 9) << "KineE" << " "
70 // << std::setw( 9) << "dEStep" << " "
71 // << std::setw(10) << "StepLeng"
72 // << std::setw(10) << "TrakLeng"
73 // << std::setw(10) << "Volume" << " "
74 // << std::setw(10) << "Process" << G4endl;
75  }
76 
77 // G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
78 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
79 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
80 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
81 // << std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
82 // << std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
83 // << std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
84 // << std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length")
85 // << " ";
86 
87  // if( fStepStatus != fWorldBoundary){
88  if( fTrack->GetNextVolume() != 0 ) {
89 // G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
90  } else {
91 // G4cout << std::setw(10) << "OutOfWorld";
92  }
93 
94  if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
95 // G4cout << " "
96 // << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
97 // ->GetProcessName();
98  } else {
99 // G4cout << " UserLimit";
100  }
101 
102 // G4cout << G4endl;
103 
104  if( verboseLevel == 2 ){
105  G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
106  fN2ndariesAlongStepDoIt +
107  fN2ndariesPostStepDoIt;
108 
109  if(tN2ndariesTot>0){
110 // G4cout << " :----- List of 2ndaries - "
111 // << "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
112 // << "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
113 // << ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
114 // << ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
115 // << "), "
116 // << "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
117 // << " ---------------"
118 // << G4endl;
119 
120  for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
121  lp1<(*fSecondary).size(); lp1++){
122 // G4cout << " : "
123 // << std::setw(6)
124 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
125 // << std::setw(6)
126 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
127 // << std::setw(6)
128 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
129 // << std::setw(6)
130 // << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
131 // << std::setw(10)
132 // << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
133 // G4cout << G4endl;
134  }
135 
136 // G4cout << " :-----------------------------"
137 // << "----------------------------------"
138 // << "-- EndOf2ndaries Info ---------------"
139 // << G4endl;
140  }
141  }
142 
143  }
144  G4cout.precision(prec);
145 }
146 
147 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148 
150 {
151 
152  CopyState();
153 
154  G4int prec = G4cout.precision(3);
155 
156  if( verboseLevel > 0 ){
157 
158 // G4cout << std::setw( 5) << "Step#" << " "
159 // << std::setw( 6) << "X" << " "
160 // << std::setw( 6) << "Y" << " "
161 // << std::setw( 6) << "Z" << " "
162 // << std::setw( 9) << "KineE" << " "
163 // << std::setw( 9) << "dEStep" << " "
164 // << std::setw(10) << "StepLeng"
165 // << std::setw(10) << "TrakLeng"
166 // << std::setw(10) << "Volume" << " "
167 // << std::setw(10) << "Process" << G4endl;
168 
169 // G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
170 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
171 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
172 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
173 // << std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
174 // << std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
175 // << std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
176 // << std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length")
177 // << " ";
178 
179  if(fTrack->GetNextVolume()){
180  // G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
181  } else {
182  // G4cout << std::setw(10) << "OutOfWorld";
183  }
184 
185  // G4cout << " initStep" << G4endl;
186 
187  } // end if ( verboseLevel > 0 )
188 
189  G4cout.precision(prec);
190 }
191 
192 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
193 
194 //=======================================================
195 // -----------------------
196 // | CVS File Information |
197 // -----------------------
198 //
199 // $Revisions$
200 // $Log: QweakSimSteppingVerbose.cc,v $
201 // Revision 1.2 2005/12/27 19:15:05 grimm
202 // - Redesign of Doxygen header containing CVS info like revision and date
203 // - Added CVS revision log at the end of file
204 //
205 //
206