#include <GTProxy.h>
Classes | |
class | Iterator |
Public Types | |
typedef std::vector< std::tuple< std::string, std::string, std::string > > | GTContainer |
Public Member Functions | |
Iterator | begin () const |
Iterator | end () const |
GTProxy () | |
GTProxy (const std::shared_ptr< SessionImpl > &session) | |
GTProxy (const GTProxy &rhs) | |
void | load (const std::string >Name, const std::string &preFix="", const std::string &postFix="") |
std::string | name () const |
GTProxy & | operator= (const GTProxy &rhs) |
void | reload () |
void | reset () |
int | size () const |
boost::posix_time::ptime | snapshotTime () const |
cond::Time_t | validity () const |
Private Member Functions | |
void | checkTransaction (const std::string &ctx) |
Private Attributes | |
std::shared_ptr< GTProxyData > | m_data |
std::shared_ptr< SessionImpl > | m_session |
typedef std::vector<std::tuple<std::string, std::string, std::string> > cond::persistency::GTProxy::GTContainer |
GTProxy::GTProxy | ( | ) |
Definition at line 77 of file GTProxy.cc.
|
explicit |
Definition at line 79 of file GTProxy.cc.
GTProxy::GTProxy | ( | const GTProxy & | rhs | ) |
Definition at line 81 of file GTProxy.cc.
GTProxy::Iterator GTProxy::begin | ( | void | ) | const |
|
private |
Definition at line 139 of file GTProxy.cc.
References m_session, and cond::persistency::throwException().
Referenced by load().
GTProxy::Iterator GTProxy::end | ( | void | ) | const |
Definition at line 153 of file GTProxy.cc.
References m_data.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void GTProxy::load | ( | const std::string & | gtName, |
const std::string & | pref = "" , |
||
const std::string & | postf = "" |
||
) |
this will be the final function void GTProxy::load( const std::string& gtName ){ clear reset();
checkSession( "GTProxy::load" );
if(!m_session->gtSchema().gtTable().select( gtName, m_data->validity, m_data->snapshotTime ) ){ throwException( "Global Tag \""+gtName+"" has not been found in the database.","GTProxy::load"); } m_data->name = gtName;
m_session->gtSchema().gtMapTable().select( m_data->name, m_data->tagList );
}
Definition at line 107 of file GTProxy.cc.
References checkTransaction(), m_data, m_session, reset(), and cond::persistency::throwException().
Referenced by MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::listAll(), ConfigBuilder.ConfigBuilder::prepare_FILTER(), cond::persistency::Session::readGlobalTag(), and reload().
std::string GTProxy::name | ( | ) | const |
Definition at line 131 of file GTProxy.cc.
References m_data, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
Definition at line 83 of file GTProxy.cc.
References m_data, and m_session.
void GTProxy::reload | ( | ) |
Definition at line 123 of file GTProxy.cc.
References load(), and m_data.
void GTProxy::reset | ( | void | ) |
Definition at line 125 of file GTProxy.cc.
References m_data.
Referenced by MatrixReader.MatrixReader::__init__(), data_sources.json_list::__next__(), load(), and MatrixReader.MatrixReader::showRaw().
int GTProxy::size | ( | void | ) | const |
Definition at line 160 of file GTProxy.cc.
References m_data.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
boost::posix_time::ptime GTProxy::snapshotTime | ( | ) | const |
Definition at line 135 of file GTProxy.cc.
References m_data.
Referenced by CondDBESSource::fillTagCollectionFromGT().
cond::Time_t GTProxy::validity | ( | ) | const |
Definition at line 133 of file GTProxy.cc.
References m_data, and cond::time::MIN_VAL().
|
private |
Definition at line 112 of file GTProxy.h.
Referenced by begin(), end(), load(), name(), operator=(), reload(), reset(), size(), snapshotTime(), and validity().
|
private |
Definition at line 113 of file GTProxy.h.
Referenced by checkTransaction(), load(), and operator=().