20 static const std::string
set_t =
"set";
35 mechanics = this->mechanics;
117 JParser<> zap(
"Auxiliary program to add or modify mechanical model data of detector string.");
129 catch(
const exception &error) {
136 data.load(inputFile.c_str());
138 catch(
const exception&) {}
141 data.comment.clear();
147 if (data.count(i->first) == 0
u)
148 data[i->first] = i->second;
150 ERROR(
"String " << i->first <<
" already exists." <<
endl);
155 DEBUG(
"Modifier" <<
' '
156 <<
"(" <<
FILL(2,
'0') << i->id <<
FILL() <<
")" <<
' '
157 <<
"action" <<
' ' << i->mechanics <<
endl);
161 container_type::iterator p = data.find(i->id);
163 if (p != data.end()) {
164 mechanics = p->second;
167 if (!i->apply(mechanics))
168 ERROR(
"No valid action: " << *i <<
endl);
170 data[i->id] = mechanics;
175 container_type::iterator p = data.find(*i);
177 if (p != data.end()) {
int main(int argc, char **argv)
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
I/O formatting auxiliaries.
Template definition of a multi-dimensional oscillation probability interpolation table.
std::ostream & operator<<(std::ostream &out, const morphology_type &object)
Write morphology to output stream.
std::istream & operator>>(std::istream &in, morphology_type &object)
Read morphology from input stream.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary data structure for parameters of mechanical model.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...