37 #include "RunAction.hh"
38 #include "Analysis.hh"
62 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
65 G4cout <<
"Using " << analysisManager->GetType()
66 <<
" analysis manager"
69 analysisManager->SetVerboseLevel(1);
74 analysisManager->OpenFile(fileName);
78 analysisManager->CreateNtuple(
"dna",
"dnaphysics");
79 analysisManager->CreateNtupleDColumn(
"flagParticle");
80 analysisManager->CreateNtupleDColumn(
"flagProcess");
81 analysisManager->CreateNtupleDColumn(
"x");
82 analysisManager->CreateNtupleDColumn(
"y");
83 analysisManager->CreateNtupleDColumn(
"z");
84 analysisManager->CreateNtupleDColumn(
"totalEnergyDeposit");
85 analysisManager->CreateNtupleDColumn(
"stepLength");
86 analysisManager->CreateNtupleDColumn(
"kineticEnergyDifference");
87 analysisManager->CreateNtupleDColumn(
"kineticEnergy");
88 analysisManager->CreateNtupleDColumn(
"cosTheta");
89 analysisManager->CreateNtupleIColumn(
"eventID");
90 analysisManager->CreateNtupleIColumn(
"trackID");
91 analysisManager->CreateNtupleIColumn(
"parentID");
92 analysisManager->CreateNtupleIColumn(
"stepID");
93 analysisManager->FinishNtuple();
101 if ( nofEvents == 0 )
return;
109 analysisManager->Write();
110 analysisManager->CloseFile();
114 delete G4AnalysisManager::Instance();
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
G4int GetNumberOfEvent() const
G4CsvAnalysisManager G4AnalysisManager
G4GLOB_DLL std::ostream G4cout