28int main(
int argc,
char **argv)
38 JParser<> zap(
"Auxiliary program to plot QE and angular acceptance of PMT.");
46 catch(
const exception &error) {
47 FATAL(error.what() << endl);
50 using namespace NAMESPACE;
62 for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
64 const double y = h0.GetBinCenter (i);
66 h0.SetBinContent(i, getQE(y));
68 for (
double x = -1.0; x <= +1.0; x += 0.1) {
69 if (KM3NET::getAngularAcceptance(x) > 0.0) {
78 for (
int i = 1; i <= h1.GetNbinsX(); ++i) {
80 const double x = h1.GetBinCenter (i);
81 const double dx = h1.GetBinWidth (i);
87 for (
double y = 340; y <= 640; y += 20.0) {
88 if (KM3NET::getQE(y) > 0.0) {
94 NOTICE(getNamespace() <<
" PMT average photo-cathode area " <<
FIXED(5,2) << W <<
" [cm^2]" <<
endl);
98 convertToPDF(h0,
"NW");
99 convertToPDF(h1,
"NW");
101 for (JManager_t::iterator i = qe .begin(); i != qe .end(); ++i) { convertToPDF(*i->second,
"NW"); }
102 for (JManager_t::iterator i = pmt.begin(); i != pmt.end(); ++i) { convertToPDF(*i->second,
"NW"); }
Properties of Antares PMT and deep-sea water.
double getAngularAcceptance(const double x)
Angular acceptence of PMT.
Dynamic ROOT object management.
General purpose messaging.
int main(int argc, char **argv)
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
Jpp environment information.
Properties of KM3NeT PMT and deep-sea water.
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const JPhotocathodeArea2D getPhotocathodeArea2D
Function object for effective photo-cathode area of PMT.
Auxiliary data structure for floating point format specification.