158 JParser<> zap(
"Auxiliary program to draw npe as a function of EM-energy.");
167 catch(
const exception &error) {
168 FATAL(error.what() << endl);
191 const double precision = 1.0e-10;
193 while (fabs(
xmax -
xmin) > precision) {
196 const double E =
pow(10.0,
x);
198 const double y = getEMShowerCorrection(E);
213 TH1D h0(
"h0", NULL, 10000, -4.0, +4.0);
214 TH1D h1(
"h1", NULL, 10000, -4.0, +4.0);
216 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
218 const Double_t
x = h0.GetBinCenter(i);
219 const Double_t E =
pow(10.0,
x);
221 h0.SetBinContent(i, E *
geanc() * pdf.getNumberOfPhotons());
222 h1.SetBinContent(i, getEMShowerCorrection(E));
double getAngularAcceptance(const double x)
Angular acceptence of PMT.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
Probability Density Functions of the time response of a PMT with an implementation of the JAbstractPM...
double getAmbientPressure()
Get ambient pressure.
double getScatteringLength(const double lambda)
Get scattering length.
double getScatteringProbability(const double x)
Function to describe light scattering in water.
double getPhotocathodeArea()
Get photo-cathode area of PMT.
double getAbsorptionLength(const double lambda)
Get absorption length.
double getQE(const double R, const double mu)
Get QE for given ratio of hit probabilities and expectation value of the number of photo-electrons.
T pow(const T &x, const double y)
Power .
static const double MASS_ELECTRON
electron mass [GeV]
double getMinimalWavelength()
Get minimal wavelength for PDF evaluations.
double geanc()
Equivalent muon track length per unit shower energy.
double getMaximalWavelength()
Get maximal wavelength for PDF evaluations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).