34 #include "RunAction.hh"
35 #include "RunMessenger.hh"
36 #include "Analysis.hh"
49 fRunMessenger(0), fRndmFreq(1)
71 analysisManager->SetFileName(
"testem10");
72 analysisManager->SetVerboseLevel(1);
73 analysisManager->SetFirstHistoId(1);
74 analysisManager->SetActivation(
true);
79 {
"1",
"2",
"3",
"4",
"5"};
83 "Secondary Gamma spectrum" ,
84 "Secondary e- spectrum",
94 G4int ih = analysisManager->CreateH1(
id[k], title[k], nbins, vmin, vmax);
95 analysisManager->SetH1Activation(ih,
false);
114 if ( analysisManager->IsActive() ) {
115 analysisManager->OpenFile();
125 G4cout <<
" ================== run summary =====================" <<
G4endl;
126 G4cout <<
" End of Run TotNbofEvents = " << nofEvents <<
G4endl ;
129 if ( analysisManager->GetH1(1) ) {
130 G4cout <<
" Mean energy deposit in absorber = "
131 << analysisManager->GetH1(1)->mean()/
MeV <<
" +-"
132 << analysisManager->GetH1(1)->rms()/
MeV <<
" MeV " <<
G4endl;
134 if ( analysisManager->GetH1(2) ) {
135 G4cout <<
" Total number of XTR gammas = "
136 << analysisManager->GetH1(2)->entries() <<
G4endl;
138 if ( analysisManager->GetH1(3) ) {
139 G4cout <<
" Total number of all gammas = "
140 << analysisManager->GetH1(3)->entries() <<
G4endl;
150 if ( analysisManager->IsActive() ) {
151 analysisManager->Write();
152 analysisManager->CloseFile();
void EndOfRunAction(const G4Run *)
static constexpr double MeV
RunMessenger * fRunMessenger
static void saveEngineStatus(const char filename[]="Config.conf")
void BeginOfRunAction(const G4Run *)
G4int GetNumberOfEvent() const
G4CsvAnalysisManager G4AnalysisManager
G4GLOB_DLL std::ostream G4cout
static void showEngineStatus()