31 #include "RunAction.hh"
32 #include "Analysis.hh"
48 auto analysisManager = G4AnalysisManager::Instance();
49 G4cout <<
"Using " << analysisManager->GetType() <<
G4endl;
50 analysisManager->SetVerboseLevel(1);
51 analysisManager->SetNtupleMerging(
true);
59 analysisManager->CreateNtuple(
"Screen",
"Screen hits");
60 analysisManager->CreateNtupleIColumn(
"ID");
61 analysisManager->CreateNtupleIColumn(
"PDG");
62 analysisManager->CreateNtupleDColumn(
"Ekin");
63 analysisManager->CreateNtupleDColumn(
"Xpos");
64 analysisManager->CreateNtupleDColumn(
"Ypos");
65 analysisManager->CreateNtupleDColumn(
"time");
66 analysisManager->FinishNtuple();
73 delete G4AnalysisManager::Instance();
81 auto analysisManager = G4AnalysisManager::Instance();
84 analysisManager->OpenFile();
92 auto analysisManager = G4AnalysisManager::Instance();
93 analysisManager->Write();
94 analysisManager->CloseFile();
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
G4GLOB_DLL std::ostream G4cout