24 int main(
int argc, 
char **argv)
 
   34     JParser<> zap(
"Example program to test module mapping.");
 
   42   catch(
const exception& error) {
 
   43     FATAL(error.what() << endl);
 
   54     load(detectorFile, detector);
 
   56   catch(
const JException& error) {
 
   63   TProfile h1(
"h1", NULL, 1001,-0.5, 1000.5);
 
   65   JModuleMapper<> mapper(detector);
 
   67   for (
int i = 1; i <= h1.GetNbinsX(); ++i) {
 
   69     const double x = h1.GetBinCenter(i);
 
   71     mapper.configure(JMaximalDistance(x));
 
   73     for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module) {
 
   74       h1.Fill(x, (Double_t) mapper.getList(*module).size());