26 #include "HistoManager.hh"
33 fileName[0] =
"microdosimetry";
48 analysisManager->SetVerboseLevel(1);
50 G4String extension = analysisManager->GetFileType();
51 fileName[1] = fileName[0] +
"." + extension;
55 G4bool fileOpen = analysisManager->OpenFile(fileName[0]);
57 G4cout <<
"\n---> HistoManager::book(): cannot open " << fileName[1]
64 analysisManager->SetFirstHistoId(1);
66 analysisManager->CreateNtuple(
"ntuple",
"micro");
68 analysisManager->CreateNtupleDColumn(
"flagParticle");
69 analysisManager->CreateNtupleDColumn(
"flagProcess");
70 analysisManager->CreateNtupleDColumn(
"x");
71 analysisManager->CreateNtupleDColumn(
"y");
72 analysisManager->CreateNtupleDColumn(
"z");
73 analysisManager->CreateNtupleDColumn(
"edep");
74 analysisManager->CreateNtupleDColumn(
"stepLength");
78 G4cout <<
"\n----> Histogram file is opened in " << fileName[1] <<
G4endl;
87 analysisManager->Write();
88 analysisManager->CloseFile();
89 G4cout <<
"\n----> Histograms are saved in " << fileName[1] <<
G4endl;
91 delete G4AnalysisManager::Instance();
101 analysisManager->FillNtupleIColumn(icol,ival);
109 analysisManager->FillNtupleFColumn(icol,fval);
117 analysisManager->FillNtupleDColumn(icol,dval);
125 analysisManager->AddNtupleRow();