1 #ifndef __JDB_JDBSUPPORTKIT__
2 #define __JDB_JDBSUPPORTKIT__
22 namespace JDATABASE {};
23 namespace JPP {
using namespace JDATABASE; }
64 return this->
run <
object.run;
66 return this->detector <
object.detector;
78 return this->
run <
object.RUN;
80 return this->
detector <
object.DETID;
92 return this->
run >
object.RUN;
94 return this->
detector >
object.DETID;
106 return this->
run <
object.run;
108 return this->detector <
object.detector;
120 return this->
run >
object.run;
122 return this->detector >
object.detector;
197 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v1");
198 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v2");
199 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v3");
215 if (i->find(
to_string(version)) != string::npos) {
220 THROW(
JValueOutOfRange,
"JDBTestTypesTuneHV::operator(): No HV-tuning database test type corresponding to given version number \'" << version <<
"\'.");
236 if (i->compare(testType) == 0) {
238 const int pos = i->find(
'v') + 1;
240 return stoi(i->substr(pos));
244 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...
JDBAPIVersion()
Default constructor.
JDBTestTypesTuneHV()
Constructor.
Auxiliary class for detector/run comparisons.
std::set< std::string > DBTestTypesTuneHV
bool less(const JRuns &object) const
Less-than method.
version_type getMajorVersion() const
Get major version.
JDBAPIVersion(const int major, const int minor, const int patch)
Constructor.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool is_valid() const
Check validity.
JRun_t(const int detector, const int run)
Constructor.
bool more(const JRuns &object) const
More-than method.
Auxiliary data structure for I/O of database API versions.
bool less(const JRunQuality &object) const
Less-than method.
Template definition of auxiliary base class for comparison of data structures.
JVersion()
Default constructor.
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.
version_type getMinorVersion() const
Get minor version.
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.
version_type getPatchVersion() const
Get patch version.
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.