18floatinputAxisScale = 1; // multiply the r and z dimensions of the input histogram by this, when filling our internal array. So if the input histogram is in mm and we want to fill our array in cm, inputUnit=0.1;
19floatinputChargeScale = 1; // multiply the content the input histogram bins by this, when filling our internal array.
20intnBins[3] = {1, 1, 1}; // r,phi,z bins of the output fixed-width array
25boolCanInterpolateAt(floatr, floatphi, floatz); // checks whether it is okay to interpolate at this position in the charge density hist
26
27voidRegenerateCharge(); // internal function to revise the internal array whenever the bounds change etc.
28voidRegenerateDensity(); // internal function to rebuild the charge density map when the input map changes.
29
30public:
31staticboolCanInterpolateAt(floatx, floaty, floatz, TH3* h); // checks whether it is okay to interpolate at this position in the supplied hist (a convenient utility)
32
33voidFillChargeHistogram(TH3* h); // fill the supplied histogram with the charge in the array.