23{
26
27 string detectorFile;
31
32 try {
33
34 JParser<> zap(
"Auxiliary program to print module status for a given module identifier."
35 "\nInteractive mode in absence of option -M <module identifier>.");
36
37 zap[
'a'] =
make_field(detectorFile,
"Detector file");
41
42 zap(argc, argv);
43 }
44 catch(const exception &error) {
45 FATAL(error.what() << endl);
46 }
47
48
50
51 try {
53 }
56 }
57
59
61
62 if (router.hasModule(id)) {
63 if (key == "")
64 print(cout, router.getModule(
id).getStatus(), putModuleStatusBit);
65 else
66 cout << router.getModule(id).has(getModuleStatusBit(key));
67 }
68
69 } else {
70
72
73 if (router.hasModule(id)) {
74 if (key == "")
75 print(cout, router.getModule(
id).getStatus(), putModuleStatusBit);
76 else
77 cout << router.getModule(id).has(getModuleStatusBit(key));
78 }
79 }
80 }
81}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
Router for direct addressing of module data in detector data structure.
Auxiliary class for object identification.
Utility class to parse command line options.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).