Jpp
18.6.0-rc.1
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
JGizmo
getFrameIndex.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "TROOT.h"
7
#include "TFile.h"
8
9
#include "
km3net-dataformat/online/JDAQTimeslice.hh
"
10
#include "
km3net-dataformat/online/JDAQSummaryslice.hh
"
11
#include "
km3net-dataformat/online/JDAQEvent.hh
"
12
13
#include "
JSupport/JAutoTreeScanner.hh
"
14
#include "
JSupport/JSupport.hh
"
15
#include "
JSupport/JSupportToolkit.hh
"
16
17
#include "
JROOT/JROOTClassSelector.hh
"
18
19
#include "
Jeep/JPrint.hh
"
20
#include "
Jeep/JParser.hh
"
21
#include "
Jeep/JMessage.hh
"
22
23
24
/**
25
* \file
26
*
27
* Auxiliary program to print frame index range of data taking run.
28
* \author mdejong
29
*/
30
int
main
(
int
argc,
char
**argv)
31
{
32
using namespace
std;
33
using namespace
JPP;
34
35
string
inputFile;
36
JROOTClassSelector
selector;
37
int
debug
;
38
39
try
{
40
41
JParser<>
zap(
"Auxiliary program to print frame index range of data taking run."
);
42
43
zap[
'f'
] =
make_field
(inputFile);
44
zap[
'C'
] =
make_field
(selector,
"data type selection."
) = getROOTClassSelection<JDAQTypes_t>();
45
zap[
'd'
] =
make_field
(
debug
) = 1;
46
47
zap[
'C'
] =
JPARSER::not_initialised
();
48
49
zap(argc, argv);
50
}
51
catch
(
const
exception &error) {
52
FATAL
(error.what() << endl);
53
}
54
55
JTreeScanner<>::debug
=
debug
;
56
57
JAutoTreeScanner<JDAQChronometer, JDAQEvaluator>
zmap =
JType<JDAQTypes_t>
();
58
59
zmap[selector]->configure(inputFile);
60
61
cout <<
getFrameIndexRange
(*zmap[selector]) << endl;
62
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1711
JSUPPORT::getFrameIndexRange
JFrameIndexRange getFrameIndexRange(JTreeScannerInterface< T, KM3NETDAQ::JDAQEvaluator > &in)
Get range of frame indices.
Definition:
JSupportToolkit.hh:88
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JSupport.hh
ROOT TTree parameter settings of various packages.
JROOT::JROOTClassSelector
Auxiliary class to select ROOT class based on class name.
Definition:
JROOTClassSelector.hh:35
JDAQEvent.hh
JLANG::JType
Auxiliary class for a type holder.
Definition:
JType.hh:19
JSUPPORT::JTreeScanner
Template definition for direct access of elements in ROOT TChain.
Definition:
JTreeScanner.hh:116
JDAQSummaryslice.hh
JPrint.hh
I/O formatting auxiliaries.
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:2158
JSupportToolkit.hh
Support methods.
JMessage.hh
General purpose messaging.
JSUPPORT::JAutoTreeScanner
Auxiliary class to select JTreeScanner based on ROOT class name.
Definition:
JAutoTreeScanner.hh:34
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JPARSER::not_initialised
Empty structure for specification of parser element that is not initialised (i.e. does require input)...
Definition:
JParser.hh:90
JParser.hh
Utility class to parse command line options.
JROOTClassSelector.hh
JDAQTimeslice.hh
JAutoTreeScanner.hh
debug
int debug
debug level
Definition:
archive-put-wiki-detectors.sh:92
Generated by
1.8.5