|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CoolKernel/ValidityKey.h"
10 #include "CoolKernel/IFolder.h"
11 #include "CoolKernel/Exception.h"
12 #include "CoolKernel/IObject.h"
13 #include "CoolKernel/IObjectIterator.h"
14 #include "CoolKernel/IDatabaseSvc.h"
15 #include "CoralKernel/Context.h"
28 m_cool_id_run1(
"COOLONL_TRIGGER/COMP200"),
29 m_cool_id_run2(
"COOLONL_TRIGGER/CONDBR2"),
56 cool::ValidityKey maskLB(0xffffffff);
69 if (
m_cool_ptr->existsFolder(
"/TRIGGER/LUMI/LBLB")) {
71 msg << MSG::INFO <<
"ReadRunData - reading folder: /TRIGGER/LUMI/LBLB" <<
endmsg;
73 cool::IFolderPtr folderLB =
m_cool_ptr->getFolder(
"/TRIGGER/LUMI/LBLB");
74 cool::IObjectIteratorPtr objectsLB = folderLB->browseObjects(
since,
until, 0);
76 while ( objectsLB -> goToNext() ) {
77 const cool::IObject &
obj = objectsLB->currentRef();
94 msg << MSG::INFO <<
"ReadRunData - missing COOL folder: /TRIGGER/LUMI/LBLB in " <<
m_cool_id <<
endmsg;
106 msg << MSG::INFO <<
"Unknown lumiblock number " <<
lb <<
endmsg;
128 }
catch(cool::DatabaseDoesNotExist&
e) {
129 msg << MSG::ERROR <<
"ReadLumiBlock::openDb - COOL exception caught: " <<
e.what() <<
endmsg;
146 msg << MSG::ERROR <<
"ReadLumiBlock::closeDB - COOL exception caught: " <<
e.what() <<
endmsg;
int run(int argc, char *argv[])
float getLumiBlockLength(uint32_t lb, MsgStream &msg) const
std::string m_cool_source
cool::IDatabasePtr m_cool_ptr
bool openDb(bool readOnly, MsgStream &msg)
Open a DB connection.
bool updateLumiBlocks(uint32_t run, MsgStream &msg)
Load information for.
cool::DatabaseId m_cool_id
void closeDb(MsgStream &msg)
Close DB connection.
std::map< uint32_t, uint64_t > m_lbLength
cool::DatabaseId m_cool_id_run1
bool dbIsOpen()
Check if DB connection is open.
cool::DatabaseId m_cool_id_run2
ReadLumiBlock()
Construct helper class for reading in lumi block length from COOL.