Jpp
18.3.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
JReconstruction
JConvertFit.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "
km3net-dataformat/offline/Head.hh
"
7
#include "
km3net-dataformat/offline/MultiHead.hh
"
8
#include "
km3net-dataformat/offline/Evt.hh
"
9
10
#include "
JDAQ/JDAQTimesliceIO.hh
"
11
#include "
JDAQ/JDAQEventIO.hh
"
12
#include "
JDAQ/JDAQSummarysliceIO.hh
"
13
14
#include "
JTrigger/JTriggerParameters.hh
"
15
16
#include "
JSupport/JMultipleFileScanner.hh
"
17
#include "
JSupport/JFileRecorder.hh
"
18
#include "
JSupport/JMeta.hh
"
19
#include "
JSupport/JSupport.hh
"
20
21
#include "
JReconstruction/JEvt.hh
"
22
23
#include "
Jeep/JParser.hh
"
24
#include "
Jeep/JMessage.hh
"
25
26
27
/**
28
* \file
29
* Auxiliary program to convert data formats.
30
* \author mdejong
31
*/
32
int
main
(
int
argc,
char
**argv)
33
{
34
using namespace
std;
35
using namespace
JPP;
36
37
typedef
JTYPELIST<JAllTypes_t, JEvt>::typelist
typelist;
38
39
JMultipleFileScanner<typelist>
inputFile;
40
JFileRecorder <typelist>
outputFile
;
41
int
debug
;
42
43
try
{
44
45
JParser<>
zap(
"Auxiliary program to convert data formats including JFIT::JEvt data."
\
46
"\nThis application can be used to combine multiple files from J(Muon|Shower)XXX[.sh] after splitting raw data file with e.g. JDAQSplit."
);
47
48
zap[
'f'
] =
make_field
(inputFile);
49
zap[
'o'
] =
make_field
(
outputFile
);
50
zap[
'd'
] =
make_field
(
debug
) = 1;
51
52
zap(argc, argv);
53
}
54
catch
(
const
exception& error) {
55
FATAL
(error.what() << endl);
56
}
57
58
59
outputFile
.open();
60
61
outputFile
.put(
JMeta
(argc,argv));
62
63
inputFile >>
outputFile
;
64
65
outputFile
.close();
66
}
JSUPPORT::JMeta
Auxiliary class for ROOT I/O of application specific meta data.
Definition:
JMeta.hh:70
JSUPPORT::JFileRecorder
Object writing to file.
Definition:
JFileRecorder.hh:42
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1514
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JSupport.hh
ROOT TTree parameter settings of various packages.
JFileRecorder.hh
Recording of objects on file according a format that follows from the file name extension.
outputFile
string outputFile
Definition:
JDAQTimesliceSelector.cc:37
JLANG::JTypeList
Type list.
Definition:
JTypeList.hh:22
JEvt.hh
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1989
MultiHead.hh
JMeta.hh
ROOT I/O of application specific meta data.
JDAQSummarysliceIO.hh
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...
Evt.hh
JSUPPORT::JMultipleFileScanner
General purpose class for object reading from a list of file names.
Definition:
JMultipleFileScanner.hh:202
JParser.hh
Utility class to parse command line options.
JDAQEventIO.hh
Head.hh
JDAQTimesliceIO.hh
debug
int debug
debug level
Definition:
archive-put-wiki-detectors.sh:92
JTriggerParameters.hh
Generated by
1.8.5