32 #include "HistoManager.hh"
38 : fFileName(
"rdecay01")
47 delete G4AnalysisManager::Instance();
52 void HistoManager::Book()
58 analysisManager->SetFileName(fFileName);
59 analysisManager->SetVerboseLevel(1);
60 analysisManager->SetActivation(
true);
63 const G4int kMaxHisto = 9;
64 const G4String id[] = {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"};
67 "energy spectrum (%): e+ e-",
68 "energy spectrum (%): nu_e anti_nu_e",
69 "energy spectrum (%): gamma",
70 "energy spectrum (%): alpha",
71 "energy spectrum (%): ions",
72 "total kinetic energy (Q)",
74 "total time of life of decay chain"
84 for (
G4int k=0; k<kMaxHisto; k++) {
85 G4int ih = analysisManager->CreateH1(
id[k], title[k], nbins, vmin, vmax);
86 analysisManager->SetH1Activation(ih,
false);
ExG4HbookAnalysisManager G4AnalysisManager
subroutine title(NA, NB, NCA, NCB)