37{
40
44
47
49
50 try {
51
53
57
58 JParser<> zap(
"Auxiliary program to merge high-voltage calibration results.");
59
64
66
67 } catch(const exception &error) {
68
70 }
71
73 FATAL(
"Missing user information (please specify via -#login and -#locationID)." <<
endl);
74 }
75
76
77 const JUUID& UUID = JUUID::rndm();
78
80
82
83
84
85
89
91
93
95
97
100
103
104
105
106 json::const_iterator
i0 =
js.find(APIVersion_t);
107
108 if (
i0 !=
js.cend()) {
109
111
113 }
114
116
117 json::const_iterator
i1 =
js.find(Data_t);
118
120 (
i1 !=
js.cend() &&
i1->size() > 0) ) {
121
123
124 JHVCalibration_t::setVersion(getDBVersionTuneHV(*j));
125
127 metaInfoStr += (*i1)[0].at(Provenance_t + Info_t).at(Configuration_t).get<
string>();
128
129 } else {
130
132
133 JHVCalibration_t::setVersion(getDBVersionTuneHV(*j));
134
136 }
137
138
139
141
144 }
145 }
146
147 } else {
148
150 continue;
151 }
152 }
153
155
157
159
160 FATAL(
"No database test type specified.");
161 }
162
163
165
167
168 json error = { {Message_t,
"" },
169 {Code_t, OK_t },
170 {Arguments_t, json::array() } };
171
174
178 {Start_t + Time_t, timer.
toString() },
179 {End_t + Time_t, timer().
toString() },
180 {Test_t + Type_t, *(
testTypes.crbegin()) },
182
186 js[Error_t] =
json(error);
189 js[Data_t][0] =
json(data);
190
191 } else {
192
199 }
200
202
205
207
208 return 0;
209}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
#define MAKE_STRING(A)
Make string.
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
Utility class to parse parameter values.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool isJSONFile(const char *file_name)
Check file format.
Auxiliary data structure for general purpose version number.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for date and time.
std::string toString() const
Get ASCII formatted date and time.
void sub(const time_t t1)
Subtract given time.