Jpp
19.0.0
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
JAcoustics
JMergeDisable.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <iomanip>
3
#include <vector>
4
#include <set>
5
6
#include "
JAcoustics/JTransmission_t.hh
"
7
8
#include "
JSupport/JMeta.hh
"
9
10
#include "
Jeep/JContainer.hh
"
11
#include "
Jeep/JPrint.hh
"
12
#include "
Jeep/JParser.hh
"
13
#include "
Jeep/JMessage.hh
"
14
15
/**
16
* \author mdejong
17
*
18
* Auxiliary program to merge disable files.
19
*
20
*/
21
int
main
(
int
argc,
char
**argv)
22
{
23
using namespace
std;
24
using namespace
JPP;
25
26
typedef
JContainer< set<JTransmission_t> > disable_container;
27
28
vector<string>
inputFile;
29
string
outputFile
;
30
int
debug
;
31
32
try
{
33
34
JParser<>
zap(
"Auxiliary program to merge disable files."
);
35
36
zap[
'f'
] =
make_field
(inputFile,
"input file"
) =
JPARSER::initialised
();
37
zap[
'o'
] =
make_field
(
outputFile
,
"output file"
);
38
zap[
'd'
] =
make_field
(
debug
) = 1;
39
40
zap(argc, argv);
41
}
42
catch
(
const
exception &error) {
43
FATAL
(error.what() << endl);
44
}
45
46
47
disable_container disable;
48
49
for
(
vector<string>::const_iterator
i
= inputFile.begin();
i
!= inputFile.end(); ++
i
) {
50
disable.load(
i
->c_str());
51
}
52
53
disable.comment.add(JMeta(argc, argv));
54
55
disable.store(
outputFile
.c_str());
56
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1711
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JPARSER::initialised
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition:
JParser.hh:84
outputFile
string outputFile
Definition:
JDAQTimesliceSelector.cc:37
std::vector
Definition:
JSTDTypes.hh:15
i
then rm i
Definition:
JEvtReweightMupageParameterScan.sh:309
JPrint.hh
I/O formatting auxiliaries.
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:2158
JMeta.hh
ROOT I/O of application specific meta data.
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JParser.hh
Utility class to parse command line options.
JTransmission_t.hh
Acoustic transmission identifier.
JContainer.hh
Container I/O.
debug
int debug
debug level
Definition:
archive-put-wiki-detectors.sh:92
Generated by
1.8.5