10 #define DATABASEUTIL_H 34 if (this->crate == rhs.
crate && this->card == rhs.
card && this->channel < rhs.
channel)
36 else if (this->crate == rhs.
crate && this->card < rhs.
card)
38 else if (this->crate < rhs.
crate)
55 int GetLifetimeFromDB(
int run,
double& lftime_real);
56 int GetTriggerOffsetFromDB(
int run,
double& T0_real);
57 int GetTemperatureFromDB(
int run,
double& temp_real);
58 int GetEfieldValuesFromDB(
int run, std::vector<double>& efield);
59 int GetPOTFromDB(
int run,
long double& POT);
60 UBChannelMap_t GetUBChannelMap(
int data_taking_timestamp = -1,
int swizzling_timestamp = -1);
61 UBChannelReverseMap_t GetUBChannelReverseMap(
int data_taking_timestamp = -1,
62 int swizzling_timestamp = -1);
64 int SelectFieldByName(std::vector<std::string>&
value,
66 const char* condition,
68 std::vector<std::string>& split(
const std::string& s,
70 std::vector<std::string>& elems);
76 int SelectSingleFieldByQuery(std::vector<std::string>& value,
const char* query);
77 int Connect(
int conn_wait = 0);
79 char connection_str[200];
93 void LoadUBChannelMap(
int data_taking_timestamp = -1,
int swizzling_timestamp = -1);
Namespace for general, non-LArSoft-specific utilities.
const bool operator<(const UBDaqID &rhs) const
bool fToughErrorTreatment
#define DECLARE_ART_SERVICE(svc, scope)
UBDaqID(int _crate, int _card, int _channel)
bool ToughErrorTreatment() const
std::map< UBDaqID, UBLArSoftCh_t > UBChannelMap_t
bool ShouldConnect() const
std::map< UBLArSoftCh_t, UBDaqID > UBChannelReverseMap_t
UBChannelReverseMap_t fChannelReverseMap
UBChannelMap_t fChannelMap