1 #ifndef __JDB_JDBSUPPORTKIT__
2 #define __JDB_JDBSUPPORTKIT__
23 namespace JDATABASE {};
24 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;
198 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v1");
199 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v2");
200 DBTestTypesTuneHV.insert(
"HV-TUNING-GAIN-v3");
216 if (i->find(
to_string(version)) != string::npos) {
221 THROW(
JValueOutOfRange,
"JDBTestTypesTuneHV::operator(): No HV-tuning database test type corresponding to given version number \'" << version <<
"\'.");
237 if (i->compare(testType) == 0) {
239 const int pos = i->find(
'v') + 1;
241 return stoi(i->substr(pos));
245 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.
I/O formatting auxiliaries.
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.