28 int main(
int argc, 
char **argv)
 
   32   using namespace KM3NETDAQ;
 
   41     JParser<> zap(
"Example program to histogram trigger efficiency.");
 
   50   catch(
const exception &error) {
 
   51     FATAL(error.what() << endl);
 
   71   TH1D h0(
"h0", NULL, 100, 0.5, 100.5);
 
   72   TH1D 
h1(
"h1", NULL, 100, 0.5, 100.5);
 
   73   TH1D h2(
"h2", NULL, 100, 0.5, 100.5);
 
   77   while (inputFile.hasNext()) {
 
   79     STATUS(
"event: " << setw(10) << inputFile.getCounter() << 
'\r'); 
DEBUG(endl);
 
   83     const Evt* 
event = ps;
 
   93     h1.Fill((Double_t) n, 1.0);
 
  100     STATUS(
"event: " << setw(10) << 
in.getCounter() << 
'\r'); 
DEBUG(endl);
 
  102     const Evt* 
event = 
in.next();
 
  112     h0.Fill((Double_t) n, 1.0);
 
  117   for (Int_t i = 1; i <= h1.GetNbinsX(); ++i) {
 
  119     const Double_t y1 = h1.GetBinContent(i);
 
  120     const Double_t y0 = h0.GetBinContent(i);
 
  124       const Double_t y3 = y1 / y0;
 
  125       const Double_t w3 = sqrt(y1 * (y0 - y1) / (y0*y0*y0));
 
  127       h2.SetBinContent(i, y3);
 
  128       h2.SetBinError  (i, w3);
 
  131       ERROR(
"Bin " << h0.GetName() << 
"[" << i << 
"] empty." << endl);
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
ROOT TTree parameter settings of various packages. 
 
Synchronously read DAQ events and Monte Carlo events (and optionally other events). 
 
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
 
then for HISTOGRAM in h0 h1
 
bool is_noise(const Hit &hit)
Verify hit origin. 
 
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
 
General purpose class for object reading from a list of file names. 
 
Utility class to parse command line options. 
 
alias put_queue eval echo n
 
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
 
General purpose class for multiple pointers. 
 
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
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.