35 #include "HistoManager.hh"
42 fileName[0] =
"dnageometry";
57 analysisManager->SetVerboseLevel(1);
59 G4String extension = analysisManager->GetFileType();
60 fileName[1] = fileName[0] +
"." + extension;
64 G4bool fileOpen = analysisManager->OpenFile(fileName[0]);
66 G4cout <<
"\n---> HistoManager::book(): cannot open " << fileName[1]
73 analysisManager->SetFirstHistoId(1);
75 analysisManager->CreateNtuple(
"ntuple",
"geom_dna");
77 analysisManager->CreateNtupleDColumn(
"flagParticle");
78 analysisManager->CreateNtupleDColumn(
"flagProcess");
79 analysisManager->CreateNtupleDColumn(
"flagVolume");
80 analysisManager->CreateNtupleDColumn(
"x");
81 analysisManager->CreateNtupleDColumn(
"y");
82 analysisManager->CreateNtupleDColumn(
"z");
83 analysisManager->CreateNtupleDColumn(
"edep");
84 analysisManager->CreateNtupleDColumn(
"stepLength");
88 G4cout <<
"\n----> Histogram file is opened in " << fileName[1] <<
G4endl;
97 analysisManager->Write();
98 analysisManager->CloseFile();
99 G4cout <<
"\n----> Histograms are saved in " << fileName[1] <<
G4endl;
101 delete G4AnalysisManager::Instance();
111 analysisManager->FillNtupleIColumn(icol,ival);
119 analysisManager->FillNtupleFColumn(icol,fval);
127 analysisManager->FillNtupleDColumn(icol,dval);
135 analysisManager->AddNtupleRow();
void FillNtupleDColumn(G4int icol, G4double ival)
G4GLOB_DLL std::ostream G4cout
ExG4HbookAnalysisManager G4AnalysisManager
void FillNtupleFColumn(G4int icol, G4float ival)
void FillNtupleIColumn(G4int icol, G4int ival)