24 int main(
int argc,
char **argv)
42 JParser<> zap(
"Program to plot PDF of Cherenkov light from EM-shower using interpolation tables.");
46 zap[
'D'] =
make_field(dir,
"(theta, phi) of PMT [rad]");
49 zap[
'E'] =
make_field(E,
"Energy [GeV]") = 0.0;
55 catch(
const exception &error) {
56 FATAL(error.what() << endl);
68 TH2D h0(
"h0",
"PDF Projection; D [m]; cos #theta_{0}",
69 x.getNumberOfBins(),
x.getLowerLimit(),
x.getUpperLimit(),
70 y.getNumberOfBins(),
y.getLowerLimit(),
y.getUpperLimit());
72 for (
int ix = 1; ix <= h0.GetNbinsX(); ++ix) {
73 for (
int iy = 1; iy <= h0.GetNbinsY(); ++iy) {
75 const double cd = h0.GetYaxis()->GetBinCenter(iy);
76 const double D = h0.GetXaxis()->GetBinCenter(ix);
80 h0.SetBinContent(ix, iy, Y/E);
General purpose messaging.
Auxiliary data structure for muon PDF.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
Data structure for angles in three dimensions.
double getTheta() const
Get theta angle.
double getPhi() const
Get phi angle.
Utility class to parse command line options.
JAbstractHistogram< double > JHistogram_t
Type definition for scan along axis.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for shower PDF.
double calculate(const double E, const double D, const double cd, const double theta, const double phi) const
Get PDF.