Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
- Author
- mdejong
Auxiliary program to merge disable files.
Definition at line 25 of file JEditDisable.cc.
26{
29
31
32 string inputFile;
34 string detectorFile;
35 bool squash;
37
38 try {
39
40 JParser<> zap(
"Auxiliary program to merge disable files.");
41
42 zap[
'f'] =
make_field(inputFile,
"disable input file");
44 zap[
'a'] =
make_field(detectorFile,
"detector file") =
"";
45 zap[
'q'] =
make_field(squash,
"squash meta data");
47
48 zap(argc, argv);
49 }
50 catch(const exception &error) {
51 FATAL(error.what() << endl);
52 }
53
54
56
57 data.load(inputFile.c_str());
58
59 if (squash) {
61 }
62
64
66
67 if (detectorFile != "") {
68
70
71 try {
73 }
76 }
77
79
80 for (container_type::iterator i =
data.begin(); i !=
data.end(); ) {
81 if (router.hasModule(i->rx))
82 ++i;
83 else
85 }
86 }
87 }
88
90}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Router for direct addressing of module data in detector data structure.
Utility class to parse command line options.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary wrapper for I/O of container with optional comment (see JComment).