Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JAcoustics
JPrintAcousticsEvent.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <iomanip>
3
4
#include "TROOT.h"
5
#include "TFile.h"
6
7
#include "
JSupport/JMultipleFileScanner.hh
"
8
9
#include "
JAcoustics/JEvent.hh
"
10
#include "
JAcoustics/JSupport.hh
"
11
12
#include "
Jeep/JPrint.hh
"
13
#include "
Jeep/JParser.hh
"
14
#include "
Jeep/JMessage.hh
"
15
16
17
/**
18
* \file
19
*
20
* Auxiliary program to print acoustic events.
21
* \author mdejong
22
*/
23
int
main
(
int
argc,
char
**argv)
24
{
25
using namespace
std;
26
using namespace
JPP;
27
28
JMultipleFileScanner<JEvent>
inputFile;
29
JLimit_t
& numberOfEvents = inputFile.
getLimit
();
30
int
debug
;
31
32
try
{
33
34
JParser<>
zap(
"Auxiliary program to print acoustic events."
);
35
36
zap[
'f'
] =
make_field
(inputFile);
37
zap[
'n'
] =
make_field
(numberOfEvents) = 1;
38
zap[
'd'
] =
make_field
(
debug
) = 1;
39
40
zap(argc, argv);
41
}
42
catch
(
const
exception &error) {
43
FATAL
(error.what() << endl);
44
}
45
46
47
while
(inputFile.hasNext()) {
48
49
const
JEvent
* evt = inputFile.next();
50
51
cout << *evt << endl;
52
}
53
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1493
JSupport.hh
ROOT TTree parameter settings.
JEvent.hh
Acoustic event.
JSUPPORT::JLimit
Auxiliary class for defining the range of iterations of objects.
Definition:
JLimit.hh:41
JPrint.hh
I/O formatting auxiliaries.
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1954
debug
int debug
debug level
Definition:
JSirene.cc:61
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JMultipleFileScanner.hh
Scanning of objects from multiple files according a format that follows from the extension of each fi...
JSUPPORT::JMultipleFileScanner
General purpose class for object reading from a list of file names.
Definition:
JMultipleFileScanner.hh:167
JParser.hh
Utility class to parse command line options.
JACOUSTICS::JEvent
Acoustic event.
Definition:
JAcoustics/JEvent.hh:30
JSUPPORT::JLimit::getLimit
const JLimit & getLimit() const
Get limit.
Definition:
JLimit.hh:73
main
int main(int argc, char *argv[])
Definition:
Main.cpp:15
Generated by
1.8.5