#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <limits>
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | Auxiliary program to convert PMT QE(angle) data.  More...
  | 
|   | 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Auxiliary program to convert PMT QE(angle) data. 
- Author
 - mdejong 
 
Definition at line 19 of file JPMTAngularAcceptance.cc.
   28     JParser<> zap(
"Auxiliary program to convert PMT QE(angle) data.");
 
   35   catch(
const exception &error) {
 
   36     FATAL(error.what() << endl);
 
   40   const string DEG(
"deg");
 
   43   if (inputFile != 
"") {
 
   45     ifstream 
in(inputFile.c_str());
 
   47     while (
in.peek() == 
'#') {
 
   48       in.ignore(numeric_limits<streamsize>::max(), 
'\n');
 
   60       istringstream 
is(buffer);
 
   64       for (
double x; 
is >> x; ) {
 
   71       istringstream 
is(buffer);
 
   75       for (
double x; 
is >> x; ) {
 
   76         wavelength.push_back(x);
 
   87       istringstream 
is(buffer);
 
  111       for (
double y ; 
is >> y; ++i) {
 
  113         if (i != energy.size()) {
 
  118                << 
"[" << 
FIXED(5,2) << -ct           << 
"]" 
  119                << 
"[" << 
FIXED(3,1) << wavelength[i] << 
"]" 
  126           FATAL(
"Inconsistent data " << i << 
" != " << wavelength.size() << endl);
 
  130       if (i != energy.size()) {
 
  132         FATAL(
"Inconsistent data " << i << 
" != " << wavelength.size() << endl);
 
Utility class to parse command line options. 
 
Auxiliary data structure for floating point format specification. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line. 
 
then for APP in event gandalf start energy
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in