26 int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to check detector integration.");
47 zap[
'D'] =
make_field(detid,
"Detector identifier");
52 catch(
const exception &error) {
53 FATAL(error.what() << endl);
61 const int ID = getDetector<int> (detid);
62 detid = getDetector<string>(detid);
66 detector_type detectorA;
73 if (parameters.PMTUPI.getPBS() ==
PBS::PMT) {
74 detectorA[parameters.PMTUPI] =
JLocation_t(parameters.DUID, parameters.FLOORID, parameters.CABLEPOS);
85 ResultSet& rs =
getResultSet(getTable<JDetectorIntegration_t>());
87 if (! (rs >> detectorB)) {
97 for (detector_type::const_iterator i = detectorA.begin(); i != detectorA.end(); ++i) {
102 cout << locationA <<
' ' << locationB <<
' ' << (locationA != locationB ?
"*" :
"") << endl;
105 catch(
const exception& error) {
106 FATAL(error.what() << endl);
int main(int argc, char **argv)
JDAQPMTIdentifier PMT
Command line options.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Utility class to parse command line options.
static const JPBSSequences PMT_SEQUENCES
PBS sequences for PMT.
ResultSet & getResultSet(const std::string &query)
Get result set.
std::vector< JServer > getServernames()
Get list of names of available database servers.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void configure(const std::string &detid, const bool option=false)
Configure detector integration for given detector identifier.
Auxiliary data structure for location of product in detector.
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.
Template definition for getting table specific selector.