30int main(
int argc,
char **argv)
49 JParser<> zap(
"Auxiliary program to draw PDF of Cherenkov light from EM-shower including shower profile using interpolation tables.");
53 zap[
'E'] =
make_field(E,
"shower energy [GeV]") = 1.0;
55 zap[
'c'] =
make_field(cd,
"cosine emission angle");
56 zap[
'D'] =
make_field(dir,
"(theta, phi) of PMT [rad]");
57 zap[
'T'] =
make_field(TTS_ns,
"PMT time smearing [ns]") = 0.0;
63 catch(
const exception &error) {
64 FATAL(error.what() << endl);
80 NOTICE(
"loading input from file " << inputFile <<
"... " << flush);
82 pdf.load(inputFile.c_str());
84 pdf.setExceptionHandler(
new JFunction1D_t::JDefaultResult(
JMATH::zero));
93 FATAL(error.what() << endl);
96 const double x = log10(E);
100 for (
double dt; cin >> dt; ) {
102 JFunction1D_t::result_type y = pdf(x, D, cd, dir.
getTheta(), dir.
getPhi(), dt);
105 <<
FIXED(5,1) << D <<
' '
106 <<
FIXED(5,2) << cd <<
' '
109 <<
FIXED(5,1) << dt <<
' '
111 <<
SCIENTIFIC(9,3) << get_derivative(y) <<
' '
113 <<
SCIENTIFIC(9,3) << get_total_integral(y) << endl;
123 const double t0 = 0.0;
134 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
136 const double dt = h0.GetBinCenter(i) - t0;
138 JFunction1D_t::result_type Y = pdf(x, D, cd, dir.
getTheta(), dir.
getPhi(), dt) * E;
140 h0.SetBinContent(i, get_value(Y));
Various implementations of functional maps.
Longitudinal emission profile EM-shower.
General purpose messaging.
Numbering scheme for PDF types.
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.
Multi-dimensional PDF table for arrival time of Cherenkov light.
static const JZero zero
Function object to assign zero value.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Auxiliary data structure for floating point format specification.