Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
summary.hh
Go to the documentation of this file.
1 
6 #ifndef SUMMARY_HH
7 #define SUMMARY_HH
8 
9 #include <iostream>
10 #include <fstream>
11 #include <ctime>
12 #include <cstdlib>
13 #include <string>
14 #include <unistd.h>
15 
16 #include "globals.hh"
17 
18 
28 G4String extract_value(const G4String& line, const G4String& keyword);
29 
45 void MC_summary(G4String macrofile, G4int seed, G4double duration, const G4String& output_filename);
46 
47 #endif // SUMMARY_HH
void MC_summary(G4String macrofile, G4int seed, G4double duration, const G4String &output_filename)
Writes the summary of the Monte Carlo to a text file, updating it at the end of every simulation.
Definition: summary.cc:32
G4String extract_value(const G4String &line, const G4String &keyword)
Auxiliary function called by MC_summary() to extract settings from the macro files used for the Monte...
Definition: summary.cc:13