Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JTrigger
JChangeParameters.cc
Go to the documentation of this file.
1
#include <string>
2
#include <iostream>
3
#include <iomanip>
4
5
#include "evt/Head.hh"
6
#include "evt/Evt.hh"
7
8
#include "
JDAQ/JDAQTimeslice.hh
"
9
#include "
JDAQ/JDAQEvent.hh
"
10
#include "
JDAQ/JDAQSummaryslice.hh
"
11
12
#include "
JTrigger/JTriggerParameters.hh
"
13
14
#include "
JSupport/JMultipleFileScanner.hh
"
15
#include "
JSupport/JFileRecorder.hh
"
16
#include "
JSupport/JMonteCarloFileSupportkit.hh
"
17
#include "
JSupport/JTriggerParametersSupportkit.hh
"
18
#include "
JSupport/JSupport.hh
"
19
20
#include "
Jeep/JParser.hh
"
21
#include "
Jeep/JMessage.hh
"
22
23
/**
24
* \file
25
* Auxiliary program to overwrite trigger parameters in ROOT files.
26
* \author lnauta
27
*/
28
int
main
(
int
argc,
char
**argv)
29
{
30
using namespace
std;
31
using namespace
JPP;
32
33
JMultipleFileScanner<JRemove<JAllDataTypes_t, JTriggerParameters>::typelist> inputFileData;
34
JMultipleFileScanner<JAllDataTypes_t> inputFileParameters;
35
JFileRecorder <JAllDataTypes_t>
outputFile
;
36
int
debug
;
37
38
try
{
39
40
JParser<>
zap(
"Auxiliary program to overwrite trigger parameters in ROOT files."
);
41
42
zap[
'f'
] =
make_field
(inputFileData);
43
zap[
'F'
] =
make_field
(inputFileParameters);
44
zap[
'o'
] =
make_field
(
outputFile
);
45
zap[
'd'
] =
make_field
(
debug
) = 1;
46
47
zap(argc, argv);
48
}
49
catch
(
const
exception& error) {
50
FATAL
(error.what() << endl);
51
}
52
53
JTriggerParameters
parameters =
getTriggerParameters
(inputFileParameters);
54
55
outputFile
.open();
56
57
inputFileData >>
outputFile
;
58
outputFile
.put(parameters);
59
60
outputFile
.close();
61
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1410
JTriggerParameters.hh
JTRIGGER::JTriggerParameters
Data structure for all trigger parameters.
Definition:
JTriggerParameters.hh:115
JFileRecorder.hh
Recording of objects on file according a format that follows from the file name extension.
JDAQEvent.hh
outputFile
string outputFile
Definition:
JDAQTimesliceSelector.cc:37
JDAQSummaryslice.hh
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
JTriggerParametersSupportkit.hh
JMessage.hh
General purpose messaging.
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.
JDAQTimeslice.hh
JSUPPORT::getTriggerParameters
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.
Definition:
JTriggerParametersSupportkit.hh:148
main
int main(int argc, char *argv[])
Definition:
Main.cpp:15
Generated by
1.8.5