29int main(
int argc,
char **argv)
51 JParser<> zap(
"Auxiliary program to draw PDF of Cherenkov light from bright point.");
56 zap[
'e'] =
make_field(epsilon,
"precision for integration") = 1.0e-10;
57 zap[
'E'] =
make_field(E,
"shower energy [GeV]");
66 catch(
const exception &error) {
67 FATAL(error.what() << endl);
72 pdf(NAMESPACE::getPhotocathodeArea(),
74 PDF::getAngularAcceptance,
75 PDF::getAbsorptionLength,
76 PDF::getScatteringLength,
77 PDF::getScatteringProbability,
78 NAMESPACE::getAmbientPressure(),
79 getMinimalWavelength(),
80 getMaximalWavelength(),
87 cout <<
"enter time (^C to exit) > " << flush;
89 for (
double dt; cin >> dt; ) {
91 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
93 cout << setw(2) << *F <<
' '
95 <<
FIXED(5,1) << D <<
' '
96 <<
FIXED(5,2) << ct <<
' '
97 <<
FIXED(5,1) << dt <<
' '
109 const double t0 = 0.0;
113 if (function.size() == 1 && function[0] == DIRECT_LIGHT_FROM_BRIGHT_POINT) {
131 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
133 const double dt = h0.GetBinCenter(i) - t0;
137 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
141 h0.SetBinContent(i, value);
157 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.
Utility class to parse command line options.
Probability Density Functions of the time response of a PMT with an implementation of the JAbstractPM...
double getLightFromBrightPoint(const int type, const double D_m, const double ct, const double t_ns) const
Probability density function for direct light from isotropic light source.
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.