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);
bool updateLumiBlocks(uint32_t run, MsgStream &msg)
Load information for.
cool::IDatabasePtr m_cool_ptr
cool::IDatabasePtr & cool_ptr()
Get reference to COOL database ptr.
bool getTriedSetup()
True when a connection attempt has been made.
std::map< uint32_t, uint64_t > m_lbLength
float getLumiBlockLength(uint32_t lb, MsgStream &msg) const
cool::DatabaseId m_cool_id_run1
bool dbIsOpen()
Check if DB connection is open.
void closeDb(MsgStream &msg)
Close DB connection.
cool::DatabaseId m_cool_id
void setConnectionCOOL(const std::string &id)
Set which COOL instance to connect to (run1, run2)
cool::DatabaseId & cool_id()
Get reference to COOL database ID.
ReadLumiBlock()
Construct helper class for reading in lumi block length from COOL.
bool openDb(bool readOnly, MsgStream &msg)
Open a DB connection.
const std::string & cool_source() const
Get name of COOL data source.
std::string m_cool_source
cool::DatabaseId m_cool_id_run2
uint32_t getRun() const
Get run number.