37     JParser<> zap(
"Auxiliary program to plot QE and angular acceptance of PMT.");
 
   45   catch(
const exception &error) {
 
   46     FATAL(error.what() << endl);
 
   49   using namespace NAMESPACE;
 
   56   typedef JManager<double, TH1D>   JManager_t;
 
   58   JManager_t qe ((TH1D*) h0.Clone(
"QE[%]"),  
'%', 
JFormat_t(3, 1, ios::fixed));
 
   59   JManager_t pmt((TH1D*) 
h1.Clone(
"PMT[%]"), 
'%', 
JFormat_t(4, 0, ios::fixed));
 
   61   for (
int i = 1; i <= h0.GetNbinsX(); ++i) {
 
   63     const double y = h0.GetBinCenter (i);
 
   65     h0.SetBinContent(i, 
getQE(y));
 
   67     for (
double x = -1.0; x <= +1.0; x += 0.1) {
 
   77   for (
int i = 1; i <= 
h1.GetNbinsX(); ++i) {
 
   79     const double x  = 
h1.GetBinCenter (i);
 
   80     const double dx = 
h1.GetBinWidth  (i);
 
   86     for (
double y = 340; y <= 640; y += 20.0) {
 
  100     for (JManager_t::iterator i = qe .begin(); i != qe .end(); ++i) { 
convertToPDF(*i->second, 
"NW"); } 
 
  101     for (JManager_t::iterator i = pmt.begin(); i != pmt.end(); ++i) { 
convertToPDF(*i->second, 
"NW"); } 
 
Utility class to parse command line options. 
 
const double getPhotocathodeArea()
Photo-cathode area 10 inch PMT. 
 
#define MAKE_CSTRING(A)
Make C-string. 
 
then for HISTOGRAM in h0 h1
 
Auxiliary data structure for floating point format specification. 
 
std::string getNamespace(const std::string &type_name)
Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR. 
 
#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...
 
void convertToPDF(TH1 &h1, const std::string &option="NW", const double factor=1.0)
Convert 1D histogram to PDF. 
 
static const JPhotocathodeArea2D getPhotocathodeArea2D
Function object for photo-cathode area 3 inch PMT. 
 
double getAngularAcceptance(const double x)
Angular acceptence of PMT.