32 #include "HistoManager.hh"
38 : fFileName(
"testem14")
47 delete G4AnalysisManager::Instance();
52 void HistoManager::Book()
58 analysisManager->SetFileName(fFileName);
59 analysisManager->SetVerboseLevel(1);
60 analysisManager->SetActivation(
true);
63 const G4int kMaxHisto = 7;
64 const G4String id[] = {
"0",
"1",
"2",
"3" ,
"4",
"5",
"6"};
67 "scattered primary particle: energy spectrum",
68 "scattered primary particle: costheta distribution",
69 "charged secondaries: energy spectrum",
70 "charged secondaries: costheta distribution",
71 "neutral secondaries: energy spectrum",
72 "neutral secondaries: costheta distribution"
82 for (
G4int k=0; k<kMaxHisto; k++) {
83 G4int ih = analysisManager->CreateH1(
id[k], title[k], nbins, vmin, vmax);
84 analysisManager->SetH1Activation(ih,
false);
ExG4HbookAnalysisManager G4AnalysisManager
subroutine title(NA, NB, NCA, NCB)