27int main(
int argc,
char **argv)
41 JParser<> zap(
"Example program for compass calibration.");
52 catch(
const exception &error) {
69 catch(
const exception& error) {
75 JDBToolkit::initialise(getUPI, PBS::AHRS);
96 catch(
const exception& error) {
115 for (++q; q !=
calibration.end() && q->SERIALNUMBER == p->SERIALNUMBER; ++q) {}
117 const JUPI_t upi = getUPI(PBS::AHRS, p->SERIALNUMBER);
127 WARNING(
"AHRS " << location <<
' ' <<
upi <<
' '
128 <<
"invalid calibration" <<
' '
129 << p->TESTEND <<
" v" << getVersion(p->TESTNAME) <<
" -> "
130 << i->TESTEND <<
" v" << getVersion(i->TESTNAME) <<
endl);
143 const bool valid = is_valid(*i) || (i != p);
145 if (
debug >= debug_t) {
147 cout <<
setw(8) << i->SERIALNUMBER <<
' '
148 <<
setw(36) << left <<
upi << right <<
' '
149 <<
setw(8) << i->TESTEND <<
' '
150 <<
setw(8) << i->FIRMWARE_VERSION <<
' '
151 <<
setw(2) << getVersion(i->TESTNAME) <<
' '
152 <<
setw(10) << i->TESTOPID <<
' '
170 cout << location <<
" ";
176 if (
distance(r1.first, r1.second) == 1) {
180 if (
distance(r2.first, r2.second) == 1) {
181 cout <<
setw(36) << left <<
detector[r2.first->second].container.getUPI() << right <<
' ';
182 cout <<
setw(36) << left <<
detector[r1.first->second].container.getUPI() << right <<
' ';
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
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)
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).
Auxiliary data structure for floating point format specification.
Auxiliary data structure for sorting of AHRS calibrations.
Auxiliary data structure to check validity of AHRS calibration data.
Auxiliary data structure for location of product in detector.
bool is_valid() const
Check validity of location.
Auxiliary class to map UPI to location in detector.
JLocation_t getLocation(const JUPI_t &upi) const
Get location of product with given UPI.
Wrapper class for server name.
Universal product identifier (UPI).