Example program to find the largest event in a file.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include <set>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JDAQ/JDAQEventIO.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to find the largest event in a file. 
- Author
 - lnauta 
 
Definition in file JPrintLargestOverlay.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 27 of file JPrintLargestOverlay.cc.
   31   using namespace KM3NETDAQ;
 
   38     JParser<> zap(
"Example program to find largest event in data.");
 
   45   catch(
const exception& error) {
 
   46     FATAL(error.what() << endl);
 
   55   while (inputFile.hasNext()) {
 
   57     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   61     int currentOverlay = 
event->getOverlays();
 
   63     if (currentOverlay > overlay) {
 
   64       overlay = currentOverlay;
 
   65       treeIndex = inputFile.getCounter();
 
   71   NOTICE(
"Largest overlay is at tree index " << treeIndex << 
" with overlay of " << overlay);
 
   72   NOTICE(
"In JConvert use the tree index " << treeIndex-1 << 
" to fetch the proper event.");
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose class for object reading from a list of file names. 
 
JTriggerCounter_t next()
Increment trigger counter. 
 
#define DEBUG(A)
Message macros.