Example program to find the largest event in a file.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "JDAQ/JDAQEventIO.hh"
#include "JSupport/JSingleFileScanner.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 21 of file JPrintLargestOverlay.cc.
   25   using namespace KM3NETDAQ;
 
   32     JParser<> zap(
"Example program to find the largest event in a file.");
 
   39   catch(
const exception& error) {
 
   40     FATAL(error.what() << endl);
 
   46   unsigned int overlays = 0;
 
   49   while (inputFile.hasNext()) {
 
   51     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   55     if (event->getOverlays() > overlays) {
 
   56       overlays = 
event->getOverlays();
 
   57       index    = inputFile.getCounter() - 1;
 
   63   cout << 
"Largest number of overlays " << overlays << endl;
 
   64   cout << 
"JConvert -f " << inputFile.getFilename() << 
" -n " << index << 
":1" << endl;
 
Utility class to parse command line options. 
 
Long64_t counter_type
Type definition for counter. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
Object reading from a list of files. 
 
JTriggerCounter_t next()
Increment trigger counter.