71 side conv_list[1] = {conv};
73 (ep_list, ep_list_len, conv_list, 1);
86 theName =
"Blank Array";
98 totalWeightSquared.clear();
100 for (
size_t i=0; i< length; i++) {
101 totalWeight.push_back(0.);
102 meanPosition.push_back(0.);
103 totalWeightSquared.push_back(0.);
104 nEvents.push_back(0);
106 underflowTotalWeight = 0.;
107 overflowTotalWeight = 0.;
109 meanUnderflowPosition = 0.;
110 meanOverflowPosition = 0.;
112 underflowTotalWeightSquared = 0.;
113 overflowTotalWeightSquared = 0.;
115 underflownEvents = 0;
139 overflowTotalWeight +=
weight;
141 meanOverflowPosition += data_point*
weight;
145 underflowTotalWeight +=
weight;
146 underflowTotalWeightSquared += weight*
weight;
147 meanUnderflowPosition += data_point*
weight;
152 totalWeightSquared[i] += weight*
weight;
153 meanPosition[i] += data_point*
weight;
163 switch (specialBin) {
171 value = overflowTotalWeight;
174 value = underflowTotalWeight;
187 switch (specialBin) {
195 if (overflownEvents>0) {
196 error = overflowTotalWeight/std::sqrt((
G4double) overflownEvents);}
201 if (underflownEvents>0) {
202 error = underflowTotalWeight/std::sqrt((
G4double) underflownEvents);}
208 if (nAllEvents-overflownEvents-underflownEvents>0) {
210 error+=totalWeightSquared[i];}
211 error = error/std::sqrt((
G4double) nAllEvents-overflownEvents-underflownEvents);
228 {value = overflowTotalWeight;}
230 {value = underflowTotalWeight;}
232 {value = totalWeight[i];}
247 if (overflownEvents>0) {
248 error = overflowTotalWeight/std::sqrt((
G4double) overflownEvents);}
253 if (underflownEvents>0) {
254 error = underflowTotalWeight/std::sqrt((
G4double) underflownEvents);}
260 error = totalWeight[i]/std::sqrt((
G4double) nEvents[i]);}
278 if (overflownEvents > 0 ) value = meanOverflowPosition/overflowTotalWeight;
281 if (underflownEvents > 0 ) value = meanUnderflowPosition/underflowTotalWeight;
283 else if (nEvents[i] > 0 ) value = meanPosition[i]/totalWeight[i];
296 double sum = underflowTotalWeight + overflowTotalWeight;
297 for (
size_t i=0; i<(
part.
total_bins()); i++) {sum += totalWeight[i];}
309 overflowTotalWeight = overflowTotalWeight /
r;
310 overflowTotalWeightSquared = overflowTotalWeightSquared /
r;
311 meanOverflowPosition = meanOverflowPosition /
r;
312 underflowTotalWeight = underflowTotalWeight /
r;
313 underflowTotalWeightSquared = underflowTotalWeightSquared /
r;
314 meanUnderflowPosition = meanUnderflowPosition /
r;
317 totalWeight[i] = totalWeight[i] /
r;
318 totalWeightSquared[i] = totalWeightSquared[i] /
r;
319 meanPosition[i] = meanPosition[i]/
r;