32 #include "HistoManager.hh"
47 delete G4AnalysisManager::Instance();
52 void HistoManager::Book()
58 analysisManager->SetFileName(fFileName);
59 analysisManager->SetVerboseLevel(1);
60 analysisManager->SetActivation(
true);
63 const G4int kMaxHisto = 13;
64 const G4String id[] = {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
68 "kinetic energy of scattered primary particle",
69 "kinetic energy of recoil nuclei",
70 "kinetic energy of gamma",
71 "kinetic energy of neutrons",
72 "kinetic energy of protons",
73 "kinetic energy of deuterons",
74 "kinetic energy of alphas",
75 "kinetic energy of all others ions",
76 "kinetic energy of all others mesons",
77 "kinetic energy of all others baryons",
78 "Q = Ekin out - Ekin in",
79 "Pbalance = mag(P_out - P_in)"
89 for (
G4int k=0; k<kMaxHisto; k++) {
90 G4int ih = analysisManager->CreateH1(
id[k], title[k], nbins, vmin, vmax);