Jpp
15.0.0-rc.2
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JCompass
JPrintCompass.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 "
JCompass/JEvt.hh
"
10
#include "
JCompass/JSupport.hh
"
11
12
#include "
JLang/JStreamObjectOutput.hh
"
13
#include "
JLang/JPipe.hh
"
14
#include "
JROOT/JROOTClassSelector.hh
"
15
16
#include "
Jeep/JPrint.hh
"
17
#include "
Jeep/JParser.hh
"
18
#include "
Jeep/JMessage.hh
"
19
20
21
/**
22
* \file
23
*
24
* Auxiliary program to print compass events.
25
* \author mdejong
26
*/
27
int
main
(
int
argc,
char
**argv)
28
{
29
using namespace
std;
30
using namespace
JPP;
31
32
typedef
JCompassTypes_t
typelist;
33
34
JMultipleFileScanner<typelist>
inputFile;
35
JLimit_t
& numberOfEvents = inputFile.
getLimit
();
36
JROOTClassSelection
selection = getROOTClassSelection<typelist>();
37
int
debug
;
38
39
try
{
40
41
JParser<>
zap(
"Auxiliary program to print acoustic events."
);
42
43
zap[
'f'
] =
make_field
(inputFile);
44
zap[
'n'
] =
make_field
(numberOfEvents) = 1;
45
zap[
'C'
] =
make_field
(selection,
46
"Precede name of data structure by a '+' or '-' "
47
"to add or remove data types in the output, respectively."
48
"\nROOT wildcards are accepted."
) =
JPARSER::initialised
();
49
zap[
'd'
] =
make_field
(
debug
) = 1;
50
51
zap(argc, argv);
52
}
53
catch
(
const
exception &error) {
54
FATAL
(error.what() << endl);
55
}
56
57
JStreamObjectOutput<typelist>
out(cout);
58
59
inputFile |
JValve<typelist>
(selection) | out;
60
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1500
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JROOT::JROOTClassSelection
Auxiliary class for ROOT class selection.
Definition:
JROOTClassSelector.hh:91
JPARSER::initialised
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition:
JParser.hh:66
JLANG::JValve
Auxiliary class for selection of data type.
Definition:
JObjectIterator.hh:34
JSupport.hh
ROOT TTree parameter settings.
JLANG::JTypeList
Type list.
Definition:
JTypeList.hh:22
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:1961
JPipe.hh
Implementation of pipe operation for object iterators.
debug
int debug
debug level
Definition:
JSirene.cc:63
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:183
JParser.hh
Utility class to parse command line options.
JROOTClassSelector.hh
JLANG::JStreamObjectOutput
Template implementation of stream output for single data type.
Definition:
JStreamObjectOutput.hh:28
JSUPPORT::JLimit::getLimit
const JLimit & getLimit() const
Get limit.
Definition:
JLimit.hh:73
JEvt.hh
Compass event data types.
JStreamObjectOutput.hh
Generated by
1.8.5