59 fSDName.push_back(
G4String(
"ConcreteSD"));
77 return new B03Run(fSDName);
100 for (
G4int i = 0; i < (
G4int)fSDName.size(); i++ ){
143 "\n--------------------End of Global Run-----------------------" <<
151 "\n--------------------End of Local Run------------------------" <<
157 G4cout <<
"============================================================="
159 G4cout <<
"============================================================="
163 std::ostream *myout = &
G4cout;
176 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
177 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
178 if ( !Populations ) Populations =
new G4double(0.0);
179 if ( !TrackEnters ) {
G4cout <<
" NO TRACKS - WHY? " <<
G4endl;
181 if ( !SLs ) SLs =
new G4double(0.0);
182 if ( !SLWs ) SLWs =
new G4double(0.0);
183 if ( !SLWEs ) SLWEs =
new G4double(0.0);
184 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
185 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
189 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
190 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
191 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
194 << std::setw(fFieldValue) << cname <<
" |"
195 << std::setw(fFieldValue) << (*TrackEnters) <<
" |"
196 << std::setw(fFieldValue) << (*Populations) <<
" |"
197 << std::setw(fFieldValue) << (*SumCollisions) <<
" |"
198 << std::setw(fFieldValue) << (*SumCollWeight) <<
" |"
199 << std::setw(fFieldValue) << NumWeightedEnergy <<
" |"
200 << std::setw(fFieldValue) << FluxWeightedEnergy <<
" |"
201 << std::setw(fFieldValue) << AverageTrackWeight <<
" |"
202 << std::setw(fFieldValue) << (*SLs) <<
" |"
203 << std::setw(fFieldValue) << (*SLWs) <<
" |"
204 << std::setw(fFieldValue) << (*SLW_Vs) <<
" |"
205 << std::setw(fFieldValue) << (*SLWEs) <<
" |"
206 << std::setw(fFieldValue) << (*SLWE_Vs) <<
" |"
209 G4cout <<
"============================================="<<
G4endl;
217 std::vector<G4String> vecScoreName;
218 vecScoreName.push_back(
"Tr.Entering");
219 vecScoreName.push_back(
"Population");
220 vecScoreName.push_back(
"Collisions");
221 vecScoreName.push_back(
"Coll*WGT");
222 vecScoreName.push_back(
"NumWGTedE");
223 vecScoreName.push_back(
"FluxWGTedE");
224 vecScoreName.push_back(
"Av.Tr.WGT");
225 vecScoreName.push_back(
"SL");
226 vecScoreName.push_back(
"SLW");
227 vecScoreName.push_back(
"SLW_v");
228 vecScoreName.push_back(
"SLWE");
229 vecScoreName.push_back(
"SLWE_v");
235 *out << std::setw(fFieldValue) <<
"Volume" <<
" |";
236 for (std::vector<G4String>::iterator it = vecScoreName.begin();
237 it != vecScoreName.end(); it++) {
243 *out << std::setw(fFieldValue) << (*it) <<
" |";
253 std::string
fname(
"");
254 G4int k = n - name.size();
258 fname += std::string(k,c);
261 fname = std::string(k,c);
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4String GetCellName(G4int i)
Definition of the B03RunAction class.
void PrintHeader(std::ostream *out)
G4GLOB_DLL std::ostream G4cout
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
G4int GetNumberOfEvent() const
virtual void EndOfRunAction(const G4Run *)
virtual G4Run * GenerateRun()
virtual void BeginOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
Definition of the B03Run class.
Definition of the B03ImportanceDetectorConstruction class.
G4THitsMap< G4double > * GetHitsMap(G4int i)