1 #ifndef __JDB_JDBSUPPORTKIT__
2 #define __JDB_JDBSUPPORTKIT__
22 namespace JDATABASE {};
23 namespace JPP {
using namespace JDATABASE; }
65 return this->
run <
object.run;
67 return this->detector <
object.detector;
79 return this->
run <
object.RUN;
81 return this->
detector <
object.DETID;
93 return this->
run >
object.RUN;
95 return this->
detector >
object.DETID;
107 return this->
run <
object.run;
109 return this->detector <
object.detector;
121 return this->
run >
object.run;
123 return this->detector >
object.detector;
160 if (
i->find(
to_string(version)) != string::npos) {
165 THROW(
JValueOutOfRange,
"JDBTestTypesTuneHV::operator(): No HV-tuning database test type corresponding to given version number \'" << version <<
"\'.");
181 if (
i->compare(testType) == 0) {
183 const int pos =
i->find(
'v') + 1;
185 return stoi(
i->substr(pos));
189 THROW(
JValueOutOfRange,
"JDBTestTypesTuneHV::operator(): Given HV-tuning database test type \'" << testType <<
"\' is invalid.");
static JDBTestTypesTuneHV & getDBVersionTuneHV
Function object for looking up the HV-tuning database version number corresponding to a specific test...
JDBTestTypesTuneHV()
Constructor.
Auxiliary class for detector/run comparisons.
std::set< std::string > DBTestTypesTuneHV
bool less(const JRuns &object) const
Less-than method.
JEEP::JVersion JDBAPIVersion
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
JRun_t(const int detector, const int run)
Constructor.
bool more(const JRuns &object) const
More-than method.
bool less(const JRunQuality &object) const
Less-than method.
Template definition of auxiliary base class for comparison of data structures.
const std::string & operator()(const int version) const
Get HV-tuning DB test type corresponding to given version number.
std::string to_string(const T &value)
Convert value to string.
bool less(const JRun_t &object) const
Less-than method.
Table listing HV-tuning database test types.
Exception for accessing a value in a collection that is outside of its range.
Auxiliary data structure for general purpose version number.
const int operator()(const std::string &testType) const
Get version number corresponding to given HV-tuning DB test type.
JDBTestTypesTuneHV getDBTestTypeTuneHV
Function object for looking up the HV-tuning database test type corresponding to a specific version n...
Auxiliary data structure for data quality.
bool more(const JRunQuality &object) const
More-than method.