Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JGizmo
JPrintHeader.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "evt/Head.hh"
7
#include "
JAAnet/JHead.hh
"
8
#include "
JAAnet/JHeadToolkit.hh
"
9
#include "
JSupport/JMultipleFileScanner.hh
"
10
#include "
JSupport/JMonteCarloFileSupportkit.hh
"
11
#include "
JSupport/JSupport.hh
"
12
#include "
Jeep/JParser.hh
"
13
#include "
Jeep/JMessage.hh
"
14
15
16
/**
17
* \file
18
* Auxiliary program to print sum of Monte Carlo run headers.
19
*
20
* \author mdejong
21
*/
22
int
main
(
int
argc,
char
**argv)
23
{
24
using namespace
std;
25
using namespace
JPP;
26
27
JMultipleFileScanner<JHeaderTypes_t> inputFile;
28
string
key;
29
int
debug
;
30
31
try
{
32
33
JParser<>
zap(
"Auxiliary program to print sum of Monte Carlo run headers."
);
34
35
zap[
'f'
] =
make_field
(inputFile);
36
zap[
'k'
] =
make_field
(key) =
""
;
37
zap[
'd'
] =
make_field
(
debug
) = 1;
38
39
zap(argc, argv);
40
}
41
catch
(
const
exception &error) {
42
FATAL
(error.what() << endl);
43
}
44
45
print
(cout,
JHead
(
getHeader
(inputFile)), key,
JAAnetDictionary::getInstance
());
46
}
47
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1410
JSUPPORT::getHeader
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
Definition:
JMonteCarloFileSupportkit.hh:417
print
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
Definition:
JTriggerMonitor.cc:37
JLANG::getInstance
T & getInstance(const T &object)
Get static instance from temporary object.
Definition:
JObject.hh:73
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1836
debug
int debug
debug level
Definition:
JSirene.cc:59
JMessage.hh
General purpose messaging.
JAANET::JHead
Monte Carlo run header.
Definition:
JHead.hh:727
FATAL
#define FATAL(A)
Definition:
JMessage.hh:65
JMultipleFileScanner.hh
Scanning of objects from multiple files according a format that follows from the extension of each fi...
JMonteCarloFileSupportkit.hh
JParser.hh
Utility class to parse command line options.
JSupport.hh
ROOT TTree parameter settings.
JHeadToolkit.hh
JHead.hh
main
int main(int argc, char *argv[])
Definition:
Main.cpp:15
Generated by
1.8.5