Jpp  17.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JConvertFit.cc
Go to the documentation of this file.
1 
2 #include <string>
3 #include <iostream>
4 #include <iomanip>
5 
8 
10 #include "JDAQ/JDAQEventIO.hh"
12 
14 
17 #include "JSupport/JMeta.hh"
18 #include "JSupport/JSupport.hh"
19 
20 #include "JReconstruction/JEvt.hh"
21 
22 #include "Jeep/JParser.hh"
23 #include "Jeep/JMessage.hh"
24 
25 
26 /**
27  * \file
28  * Auxiliary program to convert data formats.
29  * \author mdejong
30  */
31 int main(int argc, char **argv)
32 {
33  using namespace std;
34  using namespace JPP;
35 
37 
40  int debug;
41 
42  try {
43 
44  JParser<> zap("Auxiliary program to convert data formats including JFIT::JEvt data." \
45  "\nThis application can be used to combine multiple files from J(Muon|Shower)XXX[.sh] after splitting raw data file with e.g. JDAQSplit.");
46 
47  zap['f'] = make_field(inputFile);
48  zap['o'] = make_field(outputFile);
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 
58  outputFile.open();
59 
60  outputFile.put(JMeta(argc,argv));
61 
62  inputFile >> outputFile;
63 
64  outputFile.close();
65 }
Auxiliary class for ROOT I/O of application specific meta data.
Definition: JMeta.hh:70
Object writing to file.
Utility class to parse command line options.
Definition: JParser.hh:1500
int main(int argc, char *argv[])
Definition: Main.cc:15
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
string outputFile
Type list.
Definition: JTypeList.hh:22
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1961
ROOT I/O of application specific meta data.
int debug
debug level
Definition: JSirene.cc:66
General purpose messaging.
#define FATAL(A)
Definition: JMessage.hh:67
Scanning of objects from multiple files according a format that follows from the extension of each fi...
General purpose class for object reading from a list of file names.
Utility class to parse command line options.