61     JParser<> zap(
"Example program to verify Monte Carlo data.");
 
   64     zap[
'n'] = 
make_field(numberOfEvents)      = JLimit::max();
 
   73   catch(
const exception &error) {
 
   74     FATAL(error.what() << endl);
 
   81   if (detectorFile != 
"") {
 
   97   NOTICE(
"Apply detector offset " << center << endl); 
 
  105   for ( ; 
x <  -10.0; 
x +=  5.0) { 
X.push_back(
x); }
 
  106   for ( ; 
x <  +20.0; 
x +=  1.0) { 
X.push_back(
x); }
 
  107   for ( ; 
x <  +50.0; 
x +=  2.0) { 
X.push_back(
x); }
 
  108   for ( ; 
x < +100.0; 
x +=  5.0) { 
X.push_back(
x); }
 
  109   for ( ; 
x < +250.0; 
x += 10.0) { 
X.push_back(
x); }
 
  110   for ( ; 
x < +900.0; 
x += 50.0) { 
X.push_back(
x); }
 
  114   size_t number_of_events = 0;
 
  116   while (inputFile.hasNext()) {
 
  118     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
  120     const Evt* 
event = inputFile.next();
 
  122     if (!event->mc_hits.empty()) {
 
  126     size_t number_of_muons = 0;
 
  130         number_of_muons += 1;
 
  134     if (!M(number_of_muons)) {
 
  138     if (event->mc_hits.size() < L_cut) 
continue; 
 
  142       const double t1 = 
getTime(*hit);
 
  145                                                   event->mc_trks.end(),
 
  148       if (track != event->mc_trks.end() && 
is_muon(*track)) {
 
  152         if (router.hasPMT(hit->pmt_id)) {
 
  154           const JPMT&  pmt = router.getPMT(hit->pmt_id);
 
  155           const double t0  = muon.
getT(pmt);
 
  157           H1[pmt.
getID()]->Fill(t1 - t0, hit->a);
 
  159           H1->Fill(t1 - t0, hit->a);
 
  166   if (number_of_events != 0) {
 
  168     const double W = 1.0 / (double) number_of_events;
 
Router for direct addressing of PMT data in detector data structure. 
 
Utility class to parse command line options. 
 
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member. 
 
JTrack3E getTrack(const Trk &track)
Get track. 
 
bool is_muon(const Trk &track)
Test whether given track is a (anti-)muon. 
 
double getTime(const Hit &hit)
Get true time of hit. 
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header. 
 
Auxiliary class for defining the range of iterations of objects. 
 
Type definition of range. 
 
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys...
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
int getID() const 
Get identifier. 
 
void convertToPDF(TH1 &h1, const std::string &option="NW", const double factor=1.0)
Convert 1D histogram to PDF. 
 
Data structure for PMT geometry, calibration and status. 
 
double getT(const JVector3D &pos) const 
Get arrival time of Cherenkov light at given position. 
 
void load(const std::string &file_name, JDetector &detector)
Load detector from input file. 
 
General purpose class for object reading from a list of file names. 
 
no fit printf nominal n $STRING awk v X
 
Data structure for position in three dimensions. 
 
const JLimit & getLimit() const 
Get limit. 
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event. 
 
#define DEBUG(A)
Message macros.