Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JPrintAcoustics.cc File Reference

Auxiliary program to print acoustic events. More...

#include <iostream>
#include <iomanip>
#include "TROOT.h"
#include "TFile.h"
#include "JSupport/JMultipleFileScanner.hh"
#include "JAcoustics/JEvent.hh"
#include "JAcoustics/JEvt.hh"
#include "JAcoustics/JTriggerParameters.hh"
#include "JAcoustics/JSupport.hh"
#include "JLang/JStreamObjectOutput.hh"
#include "JLang/JPipe.hh"
#include "JROOT/JROOTClassSelector.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Auxiliary program to print acoustic events.

Author
mdejong

Definition in file JPrintAcoustics.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 29 of file JPrintAcoustics.cc.

30 {
31  using namespace std;
32  using namespace JPP;
33 
34  typedef JAcousticsTypes_t typelist;
35 
37  JLimit_t& numberOfEvents = inputFile.getLimit();
38  JROOTClassSelection selection = getROOTClassSelection<typelist>();
39  int debug;
40 
41  try {
42 
43  JParser<> zap("Auxiliary program to print acoustic events.");
44 
45  zap['f'] = make_field(inputFile);
46  zap['n'] = make_field(numberOfEvents) = 1;
47  zap['C'] = make_field(selection,
48  "Precede name of data structure by a '+' or '-' "
49  "to add or remove data types in the output, respectively."
50  "\nROOT wildcards are accepted.") = JPARSER::initialised();
51  zap['d'] = make_field(debug) = 1;
52 
53  zap(argc, argv);
54  }
55  catch(const exception &error) {
56  FATAL(error.what() << endl);
57  }
58 
60 
61  inputFile | JValve<typelist>(selection) | out;
62 }
Utility class to parse command line options.
Definition: JParser.hh:1500
Auxiliary class for ROOT class selection.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition: JParser.hh:66
Auxiliary class for selection of data type.
Type list.
Definition: JTypeList.hh:22
Auxiliary class for defining the range of iterations of objects.
Definition: JLimit.hh:41
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1961
int debug
debug level
Definition: JSirene.cc:63
#define FATAL(A)
Definition: JMessage.hh:67
General purpose class for object reading from a list of file names.
Template implementation of stream output for single data type.
const JLimit & getLimit() const
Get limit.
Definition: JLimit.hh:73