#include <QwDBInterface.h>
|
static std::map< TString, TString > | fPrefix |
|
Definition at line 43 of file QwDBInterface.h.
◆ EQwDBIDataTableType
Enumerator |
---|
kQwDBI_OtherTable | |
kQwDBI_BeamTable | |
kQwDBI_MDTable | |
kQwDBI_LumiTable | |
Definition at line 45 of file QwDBInterface.h.
◆ QwDBInterface()
QwDBInterface::QwDBInterface |
( |
| ) |
|
|
inline |
◆ ~QwDBInterface()
virtual QwDBInterface::~QwDBInterface |
( |
| ) |
|
|
inlinevirtual |
◆ AddThisEntryToList()
template<class T>
void QwDBInterface::AddThisEntryToList |
( |
std::vector< T > & | list | ) |
|
|
inline |
Definition at line 137 of file QwDBInterface.h.
138{
139 Bool_t okay = kTRUE;
141 QwError <<
"QwDBInterface::AddDBEntryToList: Analysis ID invalid; entry dropped"
143 okay = kFALSE;
144 }
146 QwError <<
"QwDBInterface::AddDBEntryToList: Device ID invalid; entry dropped"
148 okay = kFALSE;
149 }
150 if (okay) {
152
153 list.push_back(row);
154 }
155 if (okay == kFALSE) {
157 };
158}
#define QwError
Predefined log drain for errors.
void PrintStatus(Bool_t print_flag)
static std::ostream & endl(std::ostream &)
End of the line.
References QwLog::endl(), fAnalysisId, fDeviceId, PrintStatus(), QwError, and TypedDBClone().
◆ DetermineMeasurementTypeID()
TString QwDBInterface::DetermineMeasurementTypeID |
( |
TString | type, |
|
|
TString | suffix = "", |
|
|
Bool_t | forcediffs = kFALSE ) |
|
static |
Definition at line 19 of file QwDBInterface.cc.
21{
28 }
29 TString measurement_type("");
31 measurement_type =
fPrefix[type];
32 if (measurement_type[0] == 'a' &&
33 (forcediffs
34 || (suffix == "p" || suffix == "a"
35 || suffix == "m")) ){
36
37
38 measurement_type[0] = 'd';
39 } else if (measurement_type[0] == 'y') {
40 measurement_type += suffix;
41 }
42 }
44 << type << ", " << suffix
45 <<
" \'" << measurement_type.Data() <<
"\'" <<
QwLog::endl;
46 return measurement_type;
47}
#define QwDebug
Predefined log drain for debugging output.
static std::map< TString, TString > fPrefix
References QwLog::endl(), fPrefix, and QwDebug.
◆ GetDeviceName()
TString QwDBInterface::GetDeviceName |
( |
| ) |
|
|
inline |
◆ PrintStatus()
void QwDBInterface::PrintStatus |
( |
Bool_t | print_flag | ) |
|
|
inline |
Definition at line 113 of file QwDBInterface.h.
113 {
114 if(print_flag) {
122 << " [ave, err] "
123 <<
" [" << std::setw(14) <<
fValue
124 <<
"," << std::setw(14) <<
fError
125 << "]"
127 }
128 }
#define QwMessage
Predefined log drain for regular messages.
References QwLog::endl(), fAnalysisId, fDeviceId, fDeviceName, fError, fMeasurementTypeId, fN, fSubblock, fValue, and QwMessage.
Referenced by AddThisEntryToList().
◆ Reset()
void QwDBInterface::Reset |
( |
| ) |
|
|
inline |
◆ SetAnalysisID()
void QwDBInterface::SetAnalysisID |
( |
UInt_t | id | ) |
|
|
inline |
◆ SetDetectorID()
◆ SetDetectorName()
void QwDBInterface::SetDetectorName |
( |
TString & | in | ) |
|
|
inline |
◆ SetDeviceID()
void QwDBInterface::SetDeviceID |
( |
UInt_t | id | ) |
|
|
inline |
◆ SetError()
void QwDBInterface::SetError |
( |
Double_t | in | ) |
|
|
inline |
◆ SetLumiDetectorID()
void QwDBInterface::SetLumiDetectorID |
( |
QwParityDB * | db | ) |
|
◆ SetMainDetectorID()
void QwDBInterface::SetMainDetectorID |
( |
QwParityDB * | db | ) |
|
◆ SetMeasurementTypeID() [1/2]
void QwDBInterface::SetMeasurementTypeID |
( |
const char * | in | ) |
|
|
inline |
◆ SetMeasurementTypeID() [2/2]
void QwDBInterface::SetMeasurementTypeID |
( |
const TString & | in | ) |
|
|
inline |
◆ SetMonitorID()
void QwDBInterface::SetMonitorID |
( |
QwParityDB * | db | ) |
|
◆ SetN()
void QwDBInterface::SetN |
( |
UInt_t | in | ) |
|
|
inline |
◆ SetSubblock()
void QwDBInterface::SetSubblock |
( |
UInt_t | in | ) |
|
|
inline |
◆ SetValue()
void QwDBInterface::SetValue |
( |
Double_t | in | ) |
|
|
inline |
◆ TypedDBClone()
template<class T>
T QwDBInterface::TypedDBClone |
( |
| ) |
|
|
private |
◆ fAnalysisId
UInt_t QwDBInterface::fAnalysisId |
|
private |
◆ fDeviceId
UInt_t QwDBInterface::fDeviceId |
|
private |
◆ fDeviceName
TString QwDBInterface::fDeviceName |
|
private |
◆ fError
Double_t QwDBInterface::fError |
|
private |
◆ fMeasurementTypeId
Char_t QwDBInterface::fMeasurementTypeId[4] |
|
private |
◆ fN
◆ fPrefix
std::map< TString, TString > QwDBInterface::fPrefix |
|
staticprivate |
◆ fSubblock
UInt_t QwDBInterface::fSubblock |
|
private |
◆ fValue
Double_t QwDBInterface::fValue |
|
private |
The documentation for this class was generated from the following files: