24int main(
int argc,
char **argv)
38 JParser<> zap(
"Example program to histogram charge probability distributions.");
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
57 const double xmin = max(0.0, NPE - 5.0 * sqrt(NPE));
58 const double xmax = NPE + 5.0 * sqrt(NPE) + 2.5;
59 const int nx = (int) ((xmax - xmin) / 0.05);
61 TH1D h0(
"h0", NULL, nx, xmin, xmax);
63 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
65 const double x = h0.GetBinCenter(i);
66 const double y = getChargeProbability(cpu, x, NPE);
68 h0.SetBinContent(i, y);
int main(int argc, char **argv)
General purpose messaging.
PMT analogue signal processor.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Data structure for PMT parameters.
JProperties getProperties(const JEquationParameters &equation=JPMTParameters::getEquationParameters())
Get properties of this class.
Utility class to parse parameter values.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
PMT analogue signal processor.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...