38 #include "RunAction.hh"
39 #include "Analysis.hh"
66 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
70 G4cout <<
"Using " << man->GetType() <<
" analysis manager" <<
G4endl;
73 man->OpenFile(
"microbeam");
74 man->SetFirstNtupleId(1);
80 man->CreateNtuple(
"ntuple0",
"Stopping power");
81 man->CreateNtupleDColumn(
"e");
82 man->CreateNtupleDColumn(
"sp");
89 man->CreateNtuple(
"ntuple1",
"Beam position");
90 man->CreateNtupleDColumn(
"x");
91 man->CreateNtupleDColumn(
"y");
98 man->CreateNtuple(
"ntuple2",
"Range");
99 man->CreateNtupleDColumn(
"x");
100 man->CreateNtupleDColumn(
"y");
101 man->CreateNtupleDColumn(
"z");
108 man->CreateNtuple(
"ntuple3",
"Doses");
109 man->CreateNtupleDColumn(
"doseN");
110 man->CreateNtupleDColumn(
"doseC");
117 man->CreateNtuple(
"ntuple4",
"3D");
118 man->CreateNtupleDColumn(
"x");
119 man->CreateNtupleDColumn(
"y");
120 man->CreateNtupleDColumn(
"z");
121 man->CreateNtupleDColumn(
"doseV");
146 fDose3DDose =
new G4double[fNbOfPixels];
148 for (
G4int i=0; i<fNbOfPixels; i++)
169 for (
G4int i=0; i<fNbOfPixels; i++)
176 man->FillNtupleDColumn(5,0,v.
x());
177 man->FillNtupleDColumn(5,1,v.
y());
178 man->FillNtupleDColumn(5,2,v.
z());
179 man->FillNtupleDColumn(5,3,fDose3DDose[i]/(
GetNumEvent()+1));
180 man->AddNtupleRow(5);
192 delete G4AnalysisManager::Instance();
G4ThreeVector GetVoxelThreeVector(G4int i)
G4double GetMassNucleus()
void BeginOfRunAction(const G4Run *)
G4double GetMassCytoplasm()
G4GLOB_DLL std::ostream G4cout
void EndOfRunAction(const G4Run *)
G4int GetNbOfPixelsInPhantom()
static void showEngineStatus()
static void saveEngineStatus(const char filename[]="Config.conf")
Detector construction class to define materials and geometry.
G4CsvAnalysisManager G4AnalysisManager
static CellParameterisation * Instance()