![]() |
ATLAS Offline Software
|
Helper class to read in lumi block length info from COOL for a run. More...
#include <ReadLumiBlock.h>
Public Member Functions | |
| ReadLumiBlock () | |
| Construct helper class for reading in lumi block length from COOL. | |
| ~ReadLumiBlock () | |
| bool | updateLumiBlocks (uint32_t run, MsgStream &msg) |
| Load information for. | |
| float | getLumiBlockLength (uint32_t lb, MsgStream &msg) const |
| void | setConnectionCOOL (const std::string &id) |
| Set which COOL instance to connect to (run1, run2) | |
| bool | getTriedSetup () |
| True when a connection attempt has been made. | |
| cool::DatabaseId & | cool_id () |
| Get reference to COOL database ID. | |
| cool::IDatabasePtr & | cool_ptr () |
| Get reference to COOL database ptr. | |
| const std::string & | cool_source () const |
| Get name of COOL data source. | |
| uint32_t | getRun () const |
| Get run number. | |
Private Member Functions | |
| bool | dbIsOpen () |
| Check if DB connection is open. | |
| void | closeDb (MsgStream &msg) |
| Close DB connection. | |
| bool | openDb (bool readOnly, MsgStream &msg) |
| Open a DB connection. | |
Private Attributes | |
| std::map< uint32_t, uint64_t > | m_lbLength |
| cool::DatabaseId | m_cool_id |
| cool::DatabaseId | m_cool_id_run1 |
| cool::DatabaseId | m_cool_id_run2 |
| cool::IDatabasePtr | m_cool_ptr |
| std::string | m_cool_source |
| uint32_t | m_run |
| bool | m_triedSetup |
Helper class to read in lumi block length info from COOL for a run.
Definition at line 28 of file ReadLumiBlock.h.
| ReadLumiBlock::ReadLumiBlock | ( | ) |
Construct helper class for reading in lumi block length from COOL.
Definition at line 26 of file ReadLumiBlock.cxx.
| ReadLumiBlock::~ReadLumiBlock | ( | ) |
Definition at line 37 of file ReadLumiBlock.cxx.
|
private |
Close DB connection.
Definition at line 138 of file ReadLumiBlock.cxx.
|
inline |
Get reference to COOL database ID.
Definition at line 43 of file ReadLumiBlock.h.
|
inline |
Get reference to COOL database ptr.
Definition at line 44 of file ReadLumiBlock.h.
|
inline |
Get name of COOL data source.
Definition at line 46 of file ReadLumiBlock.h.
|
private |
Check if DB connection is open.
Definition at line 113 of file ReadLumiBlock.cxx.
| float ReadLumiBlock::getLumiBlockLength | ( | uint32_t | lb, |
| MsgStream & | msg ) const |
Definition at line 102 of file ReadLumiBlock.cxx.
|
inline |
Get run number.
Definition at line 48 of file ReadLumiBlock.h.
|
inline |
True when a connection attempt has been made.
Definition at line 41 of file ReadLumiBlock.h.
|
private |
Open a DB connection.
Definition at line 119 of file ReadLumiBlock.cxx.
|
inline |
Set which COOL instance to connect to (run1, run2)
Definition at line 40 of file ReadLumiBlock.h.
| bool ReadLumiBlock::updateLumiBlocks | ( | uint32_t | run, |
| MsgStream & | msg ) |
Load information for.
| run |
Definition at line 42 of file ReadLumiBlock.cxx.
|
private |
Definition at line 60 of file ReadLumiBlock.h.
|
private |
Definition at line 61 of file ReadLumiBlock.h.
|
private |
Definition at line 62 of file ReadLumiBlock.h.
|
private |
Definition at line 63 of file ReadLumiBlock.h.
|
private |
Definition at line 65 of file ReadLumiBlock.h.
|
private |
Definition at line 58 of file ReadLumiBlock.h.
|
private |
Definition at line 66 of file ReadLumiBlock.h.
|
private |
Definition at line 67 of file ReadLumiBlock.h.