24int main(
int argc,
char **argv)
34 JParser<> zap(
"Example program to test module mapping.");
42 catch(
const exception& error) {
43 FATAL(error.what() << endl);
62 TProfile h1(
"h1", NULL, 1001,-0.5, 1000.5);
66 for (
int i = 1; i <= h1.GetNbinsX(); ++i) {
68 const double x = h1.GetBinCenter(i);
72 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
73 h1.Fill(x, (Double_t) mapper.
getList(*module).size());
Data structure for detector geometry and calibration.
General purpose messaging.
int main(int argc, char **argv)
Map of associated modules in detector.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Mapper for directly addressing of associated modules in the detector data structure.
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
void configure(JMatch_t match)
Configure this module mapper.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to match modules according maximal distance.