Example program to monitor acoustic events.  
More...
#include <iostream>
#include <iomanip>
#include <limits>
#include "TROOT.h"
#include "TFile.h"
#include "TGraph.h"
#include "JSupport/JMultipleFileScanner.hh"
#include "JTools/JQuantile.hh"
#include "JROOT/JRootToolkit.hh"
#include "JROOT/JManager.hh"
#include "JAcoustics/JEvent.hh"
#include "JAcoustics/JSupport.hh"
#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) | 
|   | 
Example program to monitor acoustic events. 
- Author
 - mdejong 
 
Definition in file JAcousticsTriggerMonitor.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 30 of file JAcousticsTriggerMonitor.cc.
   42     JParser<> zap(
"Example program to monitor acoustic events.");
 
   44     zap[
'f'] = 
make_field(inputFile,       
"output of JAcousticTriggerProcessor[.sh]");
 
   45     zap[
'n'] = 
make_field(numberOfEvents)   = JLimit::max();
 
   51   catch(
const exception &error) {
 
   52     FATAL(error.what() << endl);
 
   60   while (inputFile.hasNext()) {
 
   62     if (inputFile.getCounter()%100 == 0) {
 
   63       STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   66     const JEvent* 
event = inputFile.next();
 
   68     const double t1 = 
event->begin()->getToA();
 
   72     for (JEvent::const_iterator i = event->begin(); i != 
event->end(); ++i) {
 
   73       QD.
put(i->getToA() - t1);
 
   74       QQ.
put(log10(i->getQ()));
 
   77     AddPoint(GA[event->getID()], t1, 
event->size());
 
   80     AddPoint(GN[event->getID()], t1, 
event->getOverlays());
 
   86   out << GA << GD << GQ << GN;
 
Utility class to parse command line options. 
 
void AddPoint(TGraph *g1, const Double_t x, const Double_t y)
Add point to TGraph. 
 
Auxiliary class for defining the range of iterations of objects. 
 
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 
 
General purpose class for object reading from a list of file names. 
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
const JLimit & getLimit() const 
Get limit.