![]() |
Diana Software
|
global handle for QRunData More...
Public Member Functions | |
| QRunDataHandle (const int run, const std::string &name="RunData") | |
| QError | FillFromDB () |
| QError | FillFromFile (const std::string &fname) |
| QError | StoreOnDB () const |
| void | SetIsOnline (bool isOnline=true) |
| bool | GetIsOnline () const |
Private Member Functions | |
| void | FillBasicInfo (QRunData &runData) |
Private Attributes | |
| bool | fIsOnline |
global handle for QRunData
Definition at line 16 of file QRunDataHandle.hh.
| QRunDataHandle::QRunDataHandle | ( | const int | run, |
| const std::string & | name = "RunData" |
||
| ) |
Definition at line 8 of file QRunDataHandle.cc.
|
private |
Definition at line 14 of file QRunDataHandle.cc.
References QRunData::fDetector, QRunData::fNumber, and DetectorName::Set().
Referenced by FillFromDB(), and FillFromFile().
| QError QRunDataHandle::FillFromDB | ( | ) |
Definition at line 34 of file QRunDataHandle.cc.
References QRunData::Clear(), QDb::DoQueryDouble(), QDb::DoQueryString(), err, QRunData::fDuration, FillBasicInfo(), fIsOnline, QRunData::fNumber, QRunData::fStartDate, QRunData::fStopDate, QRunData::fType, QDianaDb::Get(), QMessageHandler::Info(), QERR_GLOBAL_HANDLE, QERR_SUCCESS, RunType::Set(), Set(), and QError::SetDescription().
| QError QRunDataHandle::FillFromFile | ( | const std::string & | fname | ) |
Definition at line 20 of file QRunDataHandle.cc.
References QRunData::Clear(), err, FillBasicInfo(), GlobalHandle< Q >::FillFromFile(), QERR_SUCCESS, and Set().
|
inline |
Definition at line 29 of file QRunDataHandle.hh.
References fIsOnline.
|
inline |
Definition at line 27 of file QRunDataHandle.hh.
References fIsOnline.
Referenced by MRunDataLoader::Do().
| QError QRunDataHandle::StoreOnDB | ( | ) | const |
Definition at line 112 of file QRunDataHandle.cc.
References err, and QERR_NOT_IMPLEMENTED.
|
private |
Definition at line 34 of file QRunDataHandle.hh.
Referenced by FillFromDB(), GetIsOnline(), QRunDataHandle(), and SetIsOnline().