Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Functions
JConvertAcoustics.cc File Reference

Auxiliary program to convert acoustic events. More...

#include <iostream>
#include <iomanip>
#include <memory>
#include "TROOT.h"
#include "TFile.h"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JFileRecorder.hh"
#include "JAcoustics/JEvent.hh"
#include "JAcoustics/JEvt.hh"
#include "JAcoustics/JSuperEvt.hh"
#include "JAcoustics/JSupport.hh"
#include "JLang/JPipe.hh"
#include "JROOT/JROOTClassSelector.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 convert acoustic events.

Author
mdejong

Definition in file JConvertAcoustics.cc.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 28 of file JConvertAcoustics.cc.

29{
30 using namespace std;
31 using namespace JPP;
32
34
37 JLimit_t& numberOfEvents = inputFile.getLimit();
38 JROOTClassSelector selector;
39 int debug;
40
41 try {
42
43 JParser<> zap("Auxiliary program to convert acoustic events.");
44
45 zap['f'] = make_field(inputFile);
47 zap['n'] = make_field(numberOfEvents) = JLimit::max();
48 zap['C'] = make_field(selector, "name of data structure") = getROOTClassSelection<typelist>();
49 zap['d'] = make_field(debug) = 1;
50
52
53 zap(argc, argv);
54 }
55 catch(const exception &error) {
56 FATAL(error.what() << endl);
57 }
58
59 outputFile.open();
60
61 inputFile | JValve<typelist>(selector) | outputFile;
62
63 outputFile.close();
64}
string outputFile
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
Template definition of a multi-dimensional oscillation probability interpolation table.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
Definition JParser.hh:74
Auxiliary class to select ROOT class based on class name.
Auxiliary class for defining the range of iterations of objects.
Definition JLimit.hh:45
static counter_type max()
Get maximum counter value.
Definition JLimit.hh:128