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);
63 TProfile
h1(
"h1", NULL, 1001,-0.5, 1000.5);
67 for (
int i = 1; i <= h1.GetNbinsX(); ++i) {
69 const double x = h1.GetBinCenter(i);
73 for (JDetector::const_iterator module =
detector.begin(); module !=
detector.end(); ++module) {
74 h1.Fill(x, (Double_t) mapper.
getList(*module).size());
Utility class to parse command line options.
int main(int argc, char *argv[])
void configure(JMatch_t match)
Configure this module mapper.
then for HISTOGRAM in h0 h1
Data structure for detector geometry and calibration.
Auxiliary class to match modules according maximal distance.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
General purpose messaging.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Utility class to parse command line options.
Mapper for directly addressing of associated modules in the detector data structure.
Map of associated modules in detector.
do set_variable DETECTOR_TXT $WORKDIR detector