40 #include "RunAction.hh"
41 #include "RunInitObserver.hh"
43 #include "Analysis.hh"
52 analysisManager->SetFirstHistoId(1);
56 analysisManager->CreateH1(
"1",
57 "Energy deposit in the target (eV)",
59 analysisManager->CreateH1(
"2",
62 analysisManager->CreateH1(
"3",
68 G4String fileName =
"pdb4dna_output";
69 analysisManager->OpenFile(fileName);
70 G4String extension = analysisManager->GetFileType();
71 fileName = fileName +
"." + extension;
73 G4cout <<
"\n----> Histogram file is opened in " << fileName <<
G4endl;
81 analysisManager->CloseFile();
83 delete G4AnalysisManager::Instance();
100 analysisManager->Write();
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
static RunInitManager * Instance()
G4CsvAnalysisManager G4AnalysisManager
G4GLOB_DLL std::ostream G4cout