#include <B03RunAction.hh>
Definition at line 49 of file B03RunAction.hh.
◆ B03RunAction()
B03RunAction::B03RunAction |
( |
| ) |
|
◆ ~B03RunAction()
B03RunAction::~B03RunAction |
( |
| ) |
|
|
virtual |
◆ BeginOfRunAction()
void B03RunAction::BeginOfRunAction |
( |
const G4Run * |
aRun | ) |
|
|
virtual |
◆ EndOfRunAction()
void B03RunAction::EndOfRunAction |
( |
const G4Run * |
aRun | ) |
|
|
virtual |
Reimplemented from G4UserRunAction.
Definition at line 89 of file B03RunAction.cc.
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);
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 <<
" |" 209 G4cout <<
"============================================="<<
G4endl;
G4String GetCellName(G4int i)
void PrintHeader(std::ostream *out)
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
static const G4double * SL[nLA]
G4int GetNumberOfEvent() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4THitsMap< G4double > * GetHitsMap(G4int i)
std::vector< G4String > fSDName
◆ FillString()
std::string B03RunAction::FillString |
( |
const std::string & |
name, |
|
|
char |
c, |
|
|
G4int |
n, |
|
|
G4bool |
back = true |
|
) |
| |
◆ GenerateRun()
G4Run * B03RunAction::GenerateRun |
( |
void |
| ) |
|
|
virtual |
◆ PrintHeader()
void B03RunAction::PrintHeader |
( |
std::ostream * |
out | ) |
|
Definition at line 215 of file B03RunAction.cc.
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++) {
◆ fFieldValue
G4int B03RunAction::fFieldValue |
|
private |
◆ fSDName
std::vector<G4String> B03RunAction::fSDName |
|
private |
The documentation for this class was generated from the following files: