23int main(
int argc,
char **argv)
33 JParser<> zap(
"Auxiliary program histogram plot absorption and scattering lengths as well as dispersion.");
40 catch(
const exception &error) {
47 TH1D h0(
"abs[Antares]",
NULL, 400, 280.0, 680.0);
48 TH1D h1(
"abs[KM3NeT]",
NULL, 400, 280.0, 680.0);
49 TH1D h2(
"scat[Antares]",
NULL, 400, 280.0, 680.0);
50 TH1D h3(
"scat[KM3NeT]",
NULL, 400, 280.0, 680.0);
53 TH1D h4(
"vp[Antares]",
NULL, 400, 280.0, 680.0);
54 TH1D h5(
"vp[KM3NeT]",
NULL, 400, 280.0, 680.0);
55 TH1D h6(
"vg[Antares]",
NULL, 400, 280.0, 680.0);
56 TH1D h7(
"vg[KM3NeT]",
NULL, 400, 280.0, 680.0);
58 TH1D h8(
"Ps[Antares]",
NULL, 5000, -1.0, +1.0);
67 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
69 const double x = h0.GetBinCenter (i);
71 h0.SetBinContent(i, ANTARES::getAbsorptionLength(x));
72 h1.SetBinContent(i, KM3NET ::getAbsorptionLength(x));
73 h2.SetBinContent(i, ANTARES::getScatteringLength(x));
74 h3.SetBinContent(i, KM3NET ::getScatteringLength(x));
75 hp.SetBinContent(i, getAbsorptionLengthOfPureWater(x));
77 h4.SetBinContent(i,
antares.getIndexOfRefractionPhase(x));
78 h5.SetBinContent(i,
km3net .getIndexOfRefractionPhase(x));
79 h6.SetBinContent(i,
antares.getIndexOfRefractionGroup(x));
80 h7.SetBinContent(i,
km3net .getIndexOfRefractionGroup(x));
83 double W[] = { 0.0, 0.0, 0.0 };
85 for (
int i = 1; i <=
h8.GetNbinsX(); ++i) {
87 const double x =
h8.GetBinCenter (i);
88 const double dx =
h8.GetBinWidth (i);
90 h8.SetBinContent(i, ANTARES ::getScatteringProbability(x));
91 h9.SetBinContent(i, KM3NET ::getScatteringProbability(x));
101 for (
int i = 0; i !=
sizeof(W)/
sizeof(W[0]); ++i) {
102 DEBUG(
"W[" << i <<
"] = " << W[i] <<
endl);
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
Properties of KM3NeT PMT and deep-sea water.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
Implementation of dispersion for water in deep sea.
double p00075(const double x)
Model specific function to describe light scattering in water (p00075).
double f4(const double x)
Model specific function to describe light scattering in water (f4).
static const JPetzhold petzhold
Function object for measurement of light scattering in water.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).