59 fSDName.push_back(
G4String(
"ConcreteSD"));
77 return new B02Run(fSDName);
100 for (
G4int i = 0; i < (
G4int)fSDName.size(); i++ ){
137 "\n--------------------End of Global Run-----------------------" <<
145 "\n--------------------End of Local Run------------------------" <<
151 G4cout <<
"============================================================="
153 G4cout <<
"============================================================="
156 std::ostream *myout = &
G4cout;
159 for (
G4int iz = 0; iz < 20; iz++){
160 G4double* SumCollisions = (*Collisions)[iz];
161 G4double* SumCollWeight = (*CollWeight)[iz];
162 G4double* Populations = (*Population)[iz];
163 G4double* TrackEnters = (*TrackEnter)[iz];
169 if ( !SumCollisions ) SumCollisions =
new G4double(0.0);
170 if ( !SumCollWeight ) SumCollWeight =
new G4double(0.0);
171 if ( !Populations ) Populations =
new G4double(0.0);
172 if ( !TrackEnters ) TrackEnters =
new G4double(0.0);
173 if ( !SLs ) SLs =
new G4double(0.0);
174 if ( !SLWs ) SLWs =
new G4double(0.0);
175 if ( !SLWEs ) SLWEs =
new G4double(0.0);
176 if ( !SLW_Vs ) SLW_Vs =
new G4double(0.0);
177 if ( !SLWE_Vs ) SLWE_Vs =
new G4double(0.0);
181 if ( *SLW_Vs !=0. ) NumWeightedEnergy = (*SLWE_Vs)/(*SLW_Vs);
182 if ( *SLWs !=0. ) FluxWeightedEnergy = (*SLWEs)/(*SLWs);
183 if ( *SLs !=0. ) AverageTrackWeight = (*SLWs)/(*SLs);
186 << std::setw(fFieldValue) << cname <<
" |"
187 << std::setw(fFieldValue) << (*TrackEnters) <<
" |"
188 << std::setw(fFieldValue) << (*Populations) <<
" |"
189 << std::setw(fFieldValue) << (*SumCollisions) <<
" |"
190 << std::setw(fFieldValue) << (*SumCollWeight) <<
" |"
191 << std::setw(fFieldValue) << NumWeightedEnergy <<
" |"
192 << std::setw(fFieldValue) << FluxWeightedEnergy <<
" |"
193 << std::setw(fFieldValue) << AverageTrackWeight <<
" |"
194 << std::setw(fFieldValue) << (*SLs) <<
" |"
195 << std::setw(fFieldValue) << (*SLWs) <<
" |"
196 << std::setw(fFieldValue) << (*SLW_Vs) <<
" |"
197 << std::setw(fFieldValue) << (*SLWEs) <<
" |"
198 << std::setw(fFieldValue) << (*SLWE_Vs) <<
" |"
201 G4cout <<
"============================================="<<
G4endl;
209 std::vector<G4String> vecScoreName;
210 vecScoreName.push_back(
"Tr.Entering");
211 vecScoreName.push_back(
"Population");
212 vecScoreName.push_back(
"Collisions");
213 vecScoreName.push_back(
"Coll*WGT");
214 vecScoreName.push_back(
"NumWGTedE");
215 vecScoreName.push_back(
"FluxWGTedE");
216 vecScoreName.push_back(
"Av.Tr.WGT");
217 vecScoreName.push_back(
"SL");
218 vecScoreName.push_back(
"SLW");
219 vecScoreName.push_back(
"SLW_v");
220 vecScoreName.push_back(
"SLWE");
221 vecScoreName.push_back(
"SLWE_v");
227 *out << std::setw(fFieldValue) <<
"Volume" <<
" |";
228 for (std::vector<G4String>::iterator it = vecScoreName.begin();
229 it != vecScoreName.end(); it++) {
235 *out << std::setw(fFieldValue) << (*it) <<
" |";
245 std::string
fname(
"");
246 G4int k = n - name.size();
250 fname += std::string(k,c);
253 fname = std::string(k,c);
void PrintHeader(std::ostream *out)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4THitsMap< G4double > * GetHitsMap(G4int i)
G4String GetCellName(G4int i)
Definition of the B02DetectorConstruction class.
Definition of the B02RunAction class.
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
virtual G4Run * GenerateRun()
virtual void BeginOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
virtual void EndOfRunAction(const G4Run *)
static const G4double * SL[nLA]
Definition of the B02Run class.
std::string FillString(const std::string &name, char c, G4int n, G4bool back=true)
Definition of the B02ImportanceDetectorConstruction class.