34 #include "HistoManager.hh"
49 delete G4AnalysisManager::Instance();
63 analysis->SetVerboseLevel(1);
64 analysis->SetActivation(
true);
74 analysis->SetHistoDirectoryName(
"histo");
75 analysis->SetFirstHistoId(1);
77 G4int id = analysis->CreateH1(
"h1.1",
"kinetic energy", nbins, vmin, vmax);
78 analysis->SetH1Activation(
id,
false);
80 id = analysis->CreateH1(
"h1.2",
"vertex dist dN/dv = f(r)", nbins, vmin, vmax);
81 analysis->SetH1Activation(
id,
false);
83 id = analysis->CreateH1(
"h1.3",
"direction: cos(theta)", nbins, vmin, vmax);
84 analysis->SetH1Activation(
id,
false);
86 id = analysis->CreateH1(
"h1.4",
"direction: phi", nbins, vmin, vmax);
87 analysis->SetH1Activation(
id,
false);
91 id = analysis->CreateH2(
"h2.1",
"vertex: XY",nbins,vmin,vmax, nbins,vmin,vmax);
92 analysis->SetH2Activation(
id,
false);
94 id = analysis->CreateH2(
"h2.2",
"vertex: YZ",nbins,vmin,vmax, nbins,vmin,vmax);
95 analysis->SetH2Activation(
id,
false);
97 id = analysis->CreateH2(
"h2.3",
"vertex: ZX",nbins,vmin,vmax, nbins,vmin,vmax);
98 analysis->SetH2Activation(
id,
false);
100 id = analysis->CreateH2(
"h2.4",
"direction: phi-cos(theta)",
101 nbins,vmin,vmax, nbins,vmin,vmax);
102 analysis->SetH2Activation(
id,
false);
104 id = analysis->CreateH2(
"h2.5",
"direction: phi-theta",
105 nbins,vmin,vmax, nbins,vmin,vmax);
106 analysis->SetH2Activation(
id,
false);
110 analysis->SetNtupleDirectoryName(
"ntuple");
111 analysis->SetFirstNtupleId(1);
112 analysis->CreateNtuple(
"101",
"Primary Particle Tuple");
113 analysis->CreateNtupleIColumn(
"particleID");
114 analysis->CreateNtupleDColumn(
"Ekin");
115 analysis->CreateNtupleDColumn(
"posX");
116 analysis->CreateNtupleDColumn(
"posY");
117 analysis->CreateNtupleDColumn(
"posZ");
118 analysis->CreateNtupleDColumn(
"dirTheta");
119 analysis->CreateNtupleDColumn(
"dirPhi");
120 analysis->CreateNtupleDColumn(
"weight");
121 analysis->FinishNtuple();
123 analysis->SetNtupleActivation(
false);
G4CsvAnalysisManager G4AnalysisManager