28 inline bool compare(
const JDetectorIntegration& first,
const JDetectorIntegration& second)
30 if (first.DUID == second.DUID) {
32 if (first.FLOORID == second.FLOORID)
33 return first.
CABLEPOS < second.CABLEPOS;
35 return first.FLOORID < second.FLOORID;
39 return first.DUID < second.DUID;
50 int main(
const int argc,
const char *
const argv[])
65 JParser<> zap(
"Auxiliary program to print run setup parameters from the database.");
77 catch(
const exception& error) {
78 FATAL(error.what() << endl);
91 const int id = getDetector<int>(detid);
95 DEBUG(getPMTThreshold);
99 for (JDetectorIntegration parameters; rs >> parameters; ) {
105 catch(
const exception& error) {
106 FATAL(error.what() << endl);
111 for (detector_type::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
113 if (i->PMTID != -1) {
117 const JPMTThreshold::result_type threshold = getPMTThreshold(i->PMTUPI);
120 cout << setw(4) << i->DUID <<
' '
121 << setw(2) << i->FLOORID <<
' '
122 << setw(2) << i->CABLEPOS <<
' '
123 << setw(3) << threshold.value <<
' '
124 << (threshold.is_default ?
"" :
"*") << endl;
127 catch(
const exception& error) {
128 ERROR(error.what() << endl);
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.
Auxiliary class for PMT thresholds.
void configure(const int id, const int run)
Configure PMT thresholds for given detector and run.
Utility class to parse command line options.
int main(const int argc, const char *const argv[])
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).
Wrapper class for server name.
Template definition for getting table specific selector.