30int main(
int argc,
char **argv)
53 JParser<> zap(
"Auxiliary program to draw PDF of Cherenkov light from EM-shower including shower profile.");
58 zap[
'e'] =
make_field(epsilon,
"precision for integration") = 1.0e-10;
59 zap[
'E'] =
make_field(E,
"shower energy [GeV]");
61 zap[
'c'] =
make_field(cd,
"cosine emission angle");
62 zap[
'D'] =
make_field(dir,
"(theta, phi) of PMT [rad]");
69 catch(
const exception &error) {
70 FATAL(error.what() << endl);
75 pdf(NAMESPACE::getPhotocathodeArea(),
77 PDF::getAngularAcceptance,
78 PDF::getAbsorptionLength,
79 PDF::getScatteringLength,
80 PDF::getScatteringProbability,
81 NAMESPACE::getAmbientPressure(),
82 getMinimalWavelength(),
83 getMaximalWavelength(),
90 cout <<
"enter time (^C to exit) > " << flush;
92 for (
double dt; cin >> dt; ) {
94 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
96 cout << setw(2) << *F <<
' '
98 <<
FIXED(5,1) << D <<
' '
99 <<
FIXED(5,2) << cd <<
' '
102 <<
FIXED(5,1) << dt <<
' '
114 const double t0 = 0.0;
118 if (function.size() == 1 && function[0] == DIRECT_LIGHT_FROM_EMSHOWER) {
136 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
138 const double dt = h0.GetBinCenter(i) - t0;
142 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
146 h0.SetBinContent(i, value);
162 catch(
const exception&) {}
Properties of Antares PMT and deep-sea water.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Utility class to parse parameter values.
Properties of KM3NeT PMT and deep-sea water.
Utility class to parse parameter values.
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.
Probability Density Functions of the time response of a PMT with an implementation of the JAbstractPM...
double getLightFromEMshower(const int type, const double D_m, const double cd, const double theta, const double phi, const double t_ns) const
Probability density function for light from EM-shower.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary data structure for complete configuration.
JProperties getProperties()
Get properties.
Manipulator for help output.
Auxiliary data structure for floating point format specification.