22int main(
int argc,
char **argv)
34 JParser<> zap(
"Auxiliary program to print module status for a given module identifier."
35 "\nInteractive mode in absence of option -M <module identifier>.");
37 zap[
'a'] =
make_field(detectorFile,
"Detector file");
39 zap[
'k'] =
make_field(key,
"key") =
"", get_keys(getModuleStatusBit);
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
66 cout << router.
getModule(
id).
has(getModuleStatusBit(key));
77 cout << router.
getModule(
id).
has(getModuleStatusBit(key));
Data structure for detector geometry and calibration.
General purpose messaging.
Direct access to module in detector data structure.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void print(const TH1 &h1, std::ostream &out)
Print histogram parameters.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
Router for direct addressing of module data in detector data structure.
bool hasModule(const JModuleIdentifier &id) const
Has module.
const JModule & getModule(const JModuleIdentifier &id) const
Get module parameters.
bool has(const int bit) const
Test PMT status.
Auxiliary base class for object identification.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
status_type getStatus(const JType< status_type > &type) const
Get status.