18 int main(
int argc,
char **argv)
29 JParser<> zap(
"Auxiliary program to print mechanical constants.");
32 zap[
'S'] =
make_field(
string,
"string number") = 0;
33 zap[
'D'] =
make_field(
id,
"detector identifier") = 0;
38 catch(
const exception &error) {
39 FATAL(error.what() << endl);
51 cout << setw(4) <<
string <<
' ' <<
getMechanics(
string) << endl;
Mechanical modelling of string.
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
Utility class to parse command line options.
static JDetectorMechanics getMechanics
Function object to get string mechanics.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void load(const std::string &file_name)
Load mechanical model parameters from file.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...