29int main(
int argc,
char **argv)
57 JParser<> zap(
"Auxiliary program to draw PDF of Cherenkov light from bright point.");
60 <<
"possible options absorptionLength: " << get_keys(absorptionLength) << endl
61 <<
"possible options scatteringLength: " << get_keys(scatteringLength) << endl
62 <<
"possible options scatteringProbability: " << get_keys(scatteringProbability) << endl) =
JPARSER::initialised();
65 zap[
'e'] =
make_field(epsilon,
"precision for integration") = 1.0e-10;
66 zap[
'E'] =
make_field(E,
"shower energy [GeV]");
75 catch(
const exception &error) {
76 FATAL(error.what() << endl);
81 pdf(NAMESPACE::getPhotocathodeArea(),
83 NAMESPACE::getAngularAcceptance,
84 JAbsorptionLength::getAbsorptionLength,
85 JScatteringLength::getScatteringLength,
86 JScatteringProbability::getScatteringProbability,
87 NAMESPACE::getAmbientPressure(),
88 getMinimalWavelength(),
89 getMaximalWavelength(),
96 cout <<
"enter time (^C to exit) > " << flush;
98 for (
double dt; cin >> dt; ) {
100 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
102 cout << setw(2) << *F <<
' '
104 <<
FIXED(5,1) << D <<
' '
105 <<
FIXED(5,2) << ct <<
' '
106 <<
FIXED(5,1) << dt <<
' '
118 const double t0 = 0.0;
122 if (function.size() == 1 && function[0] == DIRECT_LIGHT_FROM_BRIGHT_POINT) {
140 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
142 const double dt = h0.GetBinCenter(i) - t0;
146 for (vector<int>::const_iterator F = function.begin(); F != function.end(); ++F) {
150 h0.SetBinContent(i, value);
166 catch(
const exception&) {}
Properties of Antares PMT and deep-sea water.
int main(int argc, char **argv)
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.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
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 to customize absorption length.
Auxiliary data structure to customize scattering length.
Auxiliary data structure to customize scattering probability.
Auxiliary data structure for floating point format specification.