38 #include "RunAction.hh"
39 #include "Analysis.hh"
64 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
68 G4cout <<
"Using " << man->GetType() <<
" analysis manager" <<
G4endl;
71 man->OpenFile(
"microbeam");
72 man->SetFirstNtupleId(1);
78 man->CreateNtuple(
"ntuple0",
"Stopping power");
79 man->CreateNtupleDColumn(
"e");
80 man->CreateNtupleDColumn(
"sp");
87 man->CreateNtuple(
"ntuple1",
"Beam position");
88 man->CreateNtupleDColumn(
"x");
89 man->CreateNtupleDColumn(
"y");
96 man->CreateNtuple(
"ntuple2",
"Range");
97 man->CreateNtupleDColumn(
"x");
98 man->CreateNtupleDColumn(
"y");
99 man->CreateNtupleDColumn(
"z");
106 man->CreateNtuple(
"ntuple3",
"Doses");
107 man->CreateNtupleDColumn(
"doseN");
108 man->CreateNtupleDColumn(
"doseC");
115 man->CreateNtuple(
"ntuple4",
"3D");
116 man->CreateNtupleDColumn(
"x");
117 man->CreateNtupleDColumn(
"y");
118 man->CreateNtupleDColumn(
"z");
119 man->CreateNtupleDColumn(
"doseV");
144 fDose3DDose =
new G4float[fNbOfPixels];
146 for (
G4int i=0; i<fNbOfPixels; i++)
168 for (
G4int i=0; i<fNbOfPixels; i++)
175 man->FillNtupleDColumn(5,0,v.
x());
176 man->FillNtupleDColumn(5,1,v.
y());
177 man->FillNtupleDColumn(5,2,v.
z());
178 man->FillNtupleDColumn(5,3,fDose3DDose[i]/(
GetNumEvent()+1));
179 man->AddNtupleRow(5);
191 delete G4AnalysisManager::Instance();
void BeginOfRunAction(const G4Run *)
G4float GetMassCytoplasm()
G4GLOB_DLL std::ostream G4cout
void EndOfRunAction(const G4Run *)
G4int GetNbOfPixelsInPhantom()
G4ThreeVector GetVoxelThreeVector(G4int i)
ExG4HbookAnalysisManager G4AnalysisManager
static void showEngineStatus()
static void saveEngineStatus(const char filename[]="Config.conf")