58 fSDName.push_back(
G4String(
"ConcreteSD"));
76 return new B01Run(fSDName);
99 for (
G4int i = 0; i < (
G4int)fSDName.size(); i++ ){
135 "\n--------------------End of Global Run-----------------------" <<
143 "\n--------------------End of Local Run------------------------" <<
149 G4cout <<
"============================================================="
151 G4cout <<
"============================================================="
154 std::ostream *myout = &
G4cout;
157 for (
G4int iz = 0; iz < 20; iz++){
158 G4double* SumCollisions = (*Collisions)[iz];
159 G4double* SumCollWeight = (*CollWeight)[iz];
160 G4double* Populations = (*Population)[iz];
161 G4double* TrackEnters = (*TrackEnter)[iz];
167 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
168 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
169 if ( !Populations ) Populations =
new G4double(0.0);
170 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
171 if ( !SLs ) SLs =
new G4double(0.0);
172 if ( !SLWs ) SLWs =
new G4double(0.0);
173 if ( !SLWEs ) SLWEs =
new G4double(0.0);
174 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
175 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
179 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
180 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
181 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
184 << std::setw(fFieldValue) << cname <<
" |"
185 << std::setw(fFieldValue) << (*TrackEnters) <<
" |"
186 << std::setw(fFieldValue) << (*Populations) <<
" |"
187 << std::setw(fFieldValue) << (*SumCollisions) <<
" |"
188 << std::setw(fFieldValue) << (*SumCollWeight) <<
" |"
189 << std::setw(fFieldValue) << NumWeightedEnergy <<
" |"
190 << std::setw(fFieldValue) << FluxWeightedEnergy <<
" |"
191 << std::setw(fFieldValue) << AverageTrackWeight <<
" |"
192 << std::setw(fFieldValue) << (*SLs) <<
" |"
193 << std::setw(fFieldValue) << (*SLWs) <<
" |"
194 << std::setw(fFieldValue) << (*SLW_Vs) <<
" |"
195 << std::setw(fFieldValue) << (*SLWEs) <<
" |"
196 << std::setw(fFieldValue) << (*SLWE_Vs) <<
" |"
199 G4cout <<
"============================================="<<
G4endl;
207 std::vector<G4String> vecScoreName;
208 vecScoreName.push_back(
"Tr.Entering");
209 vecScoreName.push_back(
"Population");
210 vecScoreName.push_back(
"Collisions");
211 vecScoreName.push_back(
"Coll*WGT");
212 vecScoreName.push_back(
"NumWGTedE");
213 vecScoreName.push_back(
"FluxWGTedE");
214 vecScoreName.push_back(
"Av.Tr.WGT");
215 vecScoreName.push_back(
"SL");
216 vecScoreName.push_back(
"SLW");
217 vecScoreName.push_back(
"SLW_v");
218 vecScoreName.push_back(
"SLWE");
219 vecScoreName.push_back(
"SLWE_v");
225 *out << std::setw(fFieldValue) <<
"Volume" <<
" |";
226 for (std::vector<G4String>::iterator it = vecScoreName.begin();
227 it != vecScoreName.end(); it++) {
233 *out << std::setw(fFieldValue) << (*it) <<
" |";
243 std::string
fname(
"");
244 G4int k = n - name.size();
248 fname += std::string(k,c);
251 fname = std::string(k,c);
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Definition of the B01DetectorConstruction class.
void PrintHeader(std::ostream *out)
virtual void EndOfRunAction(const G4Run *)
Definition of the B01RunAction class.
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
virtual G4Run * GenerateRun()
G4String GetCellName(G4int i)
virtual void BeginOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
G4THitsMap< G4double > * GetHitsMap(G4int i)
static const G4double * SL[nLA]
Definition of the B01Run class.