18int main(
int argc,
char **argv)
29 JParser<> zap(
"Auxiliary program to print mechanical constants.");
31 zap[
'M'] = make_field(getMechanics,
"mechanics data") = JPARSER::initialised();
32 zap[
'S'] = make_field(
string,
"string number") = 0;
33 zap[
'D'] = make_field(
id,
"detector identifier") = 0;
34 zap[
'd'] = make_field(debug) = 1;
38 catch(
const exception &error) {
39 FATAL(error.what() << endl);
45 DEBUG(
"Load mechanical model parameters from file: " << JDetectorMechanics::getFilename(
id) << endl);
47 getMechanics.load(
id);
51 cout << setw(4) <<
string <<
' ' << getMechanics(
string) << endl;
53 cout << getMechanics << endl;