33 #include "RunAction.hh"
37 #include "Analysis.hh"
59 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
62 G4cout <<
"Using " << analysisManager->GetType() <<
" analysis manager" <<
G4endl;
68 analysisManager->SetVerboseLevel(1);
73 analysisManager->OpenFile(fileName);
77 analysisManager->CreateNtuple(
"dna",
"dnaphysics");
78 analysisManager->CreateNtupleDColumn(
"flagParticle");
79 analysisManager->CreateNtupleDColumn(
"flagProcess");
80 analysisManager->CreateNtupleDColumn(
"x");
81 analysisManager->CreateNtupleDColumn(
"y");
82 analysisManager->CreateNtupleDColumn(
"z");
83 analysisManager->CreateNtupleDColumn(
"totalEnergyDeposit");
84 analysisManager->CreateNtupleDColumn(
"stepLength");
85 analysisManager->CreateNtupleDColumn(
"kineticEnergyDifference");
86 analysisManager->FinishNtuple();
94 if ( nofEvents == 0 )
return;
102 analysisManager->Write();
103 analysisManager->CloseFile();
107 delete G4AnalysisManager::Instance();
void BeginOfRunAction(const G4Run *)
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
void EndOfRunAction(const G4Run *)
ExG4HbookAnalysisManager G4AnalysisManager