36 #include "RunAction.hh"
37 #include "Analysis.hh"
51 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
54 analysisManager->SetNtupleMerging(
true);
56 G4cout <<
"Using " << analysisManager->GetType()
57 <<
" analysis manager"
60 analysisManager->SetVerboseLevel(1);
64 analysisManager->CreateNtuple(
"dna",
"dnaphysics");
65 analysisManager->CreateNtupleDColumn(
"flagParticle");
66 analysisManager->CreateNtupleDColumn(
"flagProcess");
67 analysisManager->CreateNtupleDColumn(
"x");
68 analysisManager->CreateNtupleDColumn(
"y");
69 analysisManager->CreateNtupleDColumn(
"z");
70 analysisManager->CreateNtupleDColumn(
"totalEnergyDeposit");
71 analysisManager->CreateNtupleDColumn(
"stepLength");
72 analysisManager->CreateNtupleDColumn(
"kineticEnergyDifference");
73 analysisManager->CreateNtupleDColumn(
"kineticEnergy");
74 analysisManager->CreateNtupleDColumn(
"cosTheta");
75 analysisManager->CreateNtupleIColumn(
"eventID");
76 analysisManager->CreateNtupleIColumn(
"trackID");
77 analysisManager->CreateNtupleIColumn(
"parentID");
78 analysisManager->CreateNtupleIColumn(
"stepID");
79 analysisManager->FinishNtuple();
99 analysisManager->OpenFile(fileName);
107 if ( nofEvents == 0 )
return;
115 analysisManager->Write();
116 analysisManager->CloseFile();