34 #include "HistoManager.hh"
40 : fFileName(
"particleGun")
49 delete G4AnalysisManager::Instance();
61 analysisManager->SetVerboseLevel(1);
62 analysisManager->SetActivation(
true);
65 const G4int kMaxHisto = 7;
66 const G4String id[] = {
"0",
"1",
"2",
"3",
"4",
"5",
"6" };
69 "energy spectrum dN/dE = f(E)",
70 "vertex position: dN/dv = f(r)",
71 "vertex position: cos(theta)",
72 "vertex position: phi",
73 "particle direction in local frame: cos(alpha)",
74 "particle direction in local frame: psi"
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