46 int main(
int argc, 
char **argv)
 
   66     JParser<> zap(
"Auxiliary program to draw PDF of Cherenkov light from EM-shower including shower profile.");
 
   75     zap[
'c'] = 
make_field(cd,                     
"cosine emission angle");
 
   76     zap[
'D'] = 
make_field(dir,                    
"(theta, phi) of PMT [rad]");
 
   83   catch(
const exception &error) {
 
   84     FATAL(error.what() << endl);
 
  104     for (
double dt; cin >> dt; ) {
 
  108         cout << setw(2)         << *
F             << 
' ' 
  111              << 
FIXED(5,2)      << cd             << 
' ' 
  112              << 
FIXED(5,2)      << dir.getTheta() << 
' ' 
  113              << 
FIXED(5,2)      << dir.getPhi()   << 
' ' 
  114              << 
FIXED(5,1)      << dt             << 
' ' 
  115              << 
SCIENTIFIC(9,3) << pdf.getLightFromEMshower(*
F, 
E, 
D, cd, dir.getTheta(), dir.getPhi(), dt) * 
E << endl;
 
  146   JSplineFunction1D_t 
f1;
 
  148   for (
int i = 1; 
i <= h0.GetNbinsX(); ++
i) {
 
  150     const double dt = h0.GetBinCenter(
i) - t0;
 
  155       value += pdf.getLightFromEMshower(*
F, 
E, 
D, cd, dir.getTheta(), dir.getPhi(), dt);
 
  158     h0.SetBinContent(
i, value);
 
  165   JQuantiles quantiles(
f1);
 
  167   DEBUG(
"int  " << quantiles.getIntegral() << endl);
 
  168   DEBUG(
"x    " << quantiles.getX()        << endl);
 
  169   DEBUG(
"y    " << quantiles.getY()        << endl);
 
  170   DEBUG(
"FWHM " << quantiles.getFWHM()     << endl);
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
then usage $script< input file >[option[primary[working directory]]] nWhere option can be E
 
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity. 
 
Properties of Antares PMT and deep-sea water. 
 
double absorptionLengthFactor
Scaling of absorption and scattering length. 
 
double getScatteringProbability(const double x)
Function to describe light scattering in water. 
 
double getMinimalWavelength()
Get minimal wavelength for PDF evaluations. 
 
then warning Cannot perform comparison test for histogram
 
Auxiliary data structure for floating point format specification. 
 
static const double C
Physics constants. 
 
const JPolynome f1(1.0, 2.0, 3.0)
Function. 
 
Properties of KM3NeT PMT and deep-sea water. 
 
double getMaximalWavelength()
Get maximal wavelength for PDF evaluations. 
 
I/O formatting auxiliaries. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
double getQE(const double R, const double mu)
Get QE for given ratio of hit probabilities and expectation value of the number of photo-electrons...
 
double getAmbientPressure()
Get ambient pressure. 
 
direct light from EM shower 
 
double getPhotocathodeArea()
Get photo-cathode area of PMT. 
 
General purpose messaging. 
 
double getAbsorptionLength(const double lambda)
Get absorption length. 
 
Utility class to parse command line options. 
 
double getScatteringLength(const double lambda)
Get scattering length. 
 
double scatteringLengthFactor
 
Auxiliary data structure for floating point format specification. 
 
do echo Generating $dir eval D
 
JAbstractHistogram< double > JHistogram_t
Type definition for scan along axis. 
 
#define DEBUG(A)
Message macros. 
 
double getAngularAcceptance(const double x)
Angular acceptence of PMT.