28 int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to merge detector files.");
45 zap[
'V'] =
make_field(variant) =
"", getDetectorVersions<string>();
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
62 int highestStringNr = 0;
71 for (JDetector::const_iterator module = buffer.begin(); module != buffer.end(); ++module) {
76 if (firstStringNr > 0) {
78 if( module->getLocation().getString() > highestStringNr ) {
79 highestStringNr = module->getLocation().getString();
82 const int newStringNr = firstStringNr + module->getLocation().getString() - 1;
84 detector.back().setLocation(
JLocation(newStringNr, module->getLocation().getFloor()));
89 if (firstStringNr > 0) {
90 firstStringNr += highestStringNr;
Utility class to parse command line options.
Data structure for detector geometry and calibration.
Logical location of module.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
Logical location of module.
General purpose messaging.
Utility class to parse command line options.
void store(const JString &file_name, const JDetector &detector)
Store detector to output file.
int main(int argc, char *argv[])