|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIG_ReadLumiBlock_H
6 #define TRIG_ReadLumiBlock_H
13 #include "CoolApplication/Application.h"
14 #include "CoolKernel/DatabaseId.h"
15 #include "CoolKernel/Exception.h"
16 #include "CoolKernel/IDatabaseSvc.h"
17 #include "CoolKernel/IDatabase.h"
19 #include "GaudiKernel/MsgStream.h"
54 bool openDb(
bool readOnly, MsgStream&
msg);
const std::string & cool_source() const
Get name of COOL data source.
float getLumiBlockLength(uint32_t lb, MsgStream &msg) const
std::string m_cool_source
cool::IDatabasePtr m_cool_ptr
cool::DatabaseId & cool_id()
Get reference to COOL database ID.
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
bool getTriedSetup()
True when a connection attempt has been made.
cool::IDatabasePtr & cool_ptr()
Get reference to COOL database ptr.
void closeDb(MsgStream &msg)
Close DB connection.
std::map< uint32_t, uint64_t > m_lbLength
void setConnectionCOOL(const std::string &id)
Set which COOL instance to connect to (run1, run2)
uint32_t getRun() const
Get run number.
cool::DatabaseId m_cool_id_run1
bool dbIsOpen()
Check if DB connection is open.
Helper class to read in lumi block length info from COOL for a run.
cool::DatabaseId m_cool_id_run2
ReadLumiBlock()
Construct helper class for reading in lumi block length from COOL.