26 #include "HistoManager.hh"
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",
"dna");
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(
"size");
75 analysisManager->CreateNtupleDColumn(
"diffKin");
79 G4cout <<
"\n----> Histogram file is opened in " << fileName[1] <<
G4endl;
88 analysisManager->Write();
89 analysisManager->CloseFile();
90 G4cout <<
"\n----> Histograms are saved in " << fileName[1] <<
G4endl;
92 delete G4AnalysisManager::Instance();
102 analysisManager->FillNtupleIColumn(icol,ival);
110 analysisManager->FillNtupleFColumn(icol,fval);
118 analysisManager->FillNtupleDColumn(icol,dval);
126 analysisManager->AddNtupleRow();