24 int main(
int argc,
char **argv)
37 JParser<> zap(
"Example program to histogram time over threshold as a function of number of photo-electrons.");
45 catch(
const exception &error) {
46 FATAL(error.what() << endl);
51 cout <<
"PMT parameters:" << endl;
59 TH1D h0(
"[model]", NULL, 510, 0.0, 255.0);
60 TH1D h1(
"[parametrisation]", NULL, 510, 0.0, 255.0);
62 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
66 const double x = h0.GetBinCenter(i);
67 const double npe = cpu.
getNPE(
x);
70 h0.SetBinContent(i,
y);
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
int main(int argc, char **argv)
Data structure for PMT parameters.
JProperties getProperties(const JEquationParameters &equation=JPMTParameters::getEquationParameters())
Get properties of this class.
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Exception for accessing a value in a collection that is outside of its range.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const JGetRiseTime getRiseTime
Function object for rise time evaluation.
PMT analogue signal processor.
virtual double getNPE(const double tot_ns) const override
Get number of photo-electrons.
double getRiseTime(const double npe, const double th) const
Get time to pass from threshold to top of analogue pulse.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...