CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
cond::DataProxyWrapperBase Class Referenceabstract

#include <DataProxy.h>

Inheritance diagram for cond::DataProxyWrapperBase:
DataProxyWrapper< RecordT, DataT, Initializer > DataProxyWrapper< DTKeyedConfigListRcd, cond::persistency::KeyList > DataProxyWrapper< ExDwarfListRcd, cond::persistency::KeyList > ProxyDTKeyedConfigListRcd ProxyExDwarfListRcd

Public Types

typedef std::pair< std::string, std::string > Args
 
typedef std::shared_ptr< edm::eventsetup::DataProxyedmProxyP
 
typedef std::shared_ptr< cond::persistency::BasePayloadProxyProxyP
 

Public Member Functions

void addInfo (std::string const &il, std::string const &cs, std::string const &tag)
 
std::string const & connString () const
 
Iov_t const & currentIov () const
 
 DataProxyWrapperBase ()
 
virtual edmProxyP edmProxy (unsigned int iovIndex) const =0
 
virtual void initConcurrentIOVs (unsigned int nConcurrentIOVs)=0
 
persistency::IOVProxyiovProxy ()
 
persistency::IOVProxy const & iovProxy () const
 
std::string const & label () const
 
virtual void lateInit (persistency::Session &session, const std::string &tag, const boost::posix_time::ptime &snapshotTime, std::string const &il, std::string const &cs)=0
 
void loadTag (std::string const &tag)
 
void loadTag (std::string const &tag, boost::posix_time::ptime const &snapshotTime)
 
virtual ProxyP proxy (unsigned int iovIndex) const =0
 
void reload ()
 
std::shared_ptr< std::vector< Iov_t > > const & requests () const
 
persistency::Sessionsession ()
 
persistency::Session const & session () const
 
ValidityInterval setIntervalFor (Time_t target, Time_t defaultIovSize)
 
void setSession (persistency::Session const &v)
 
std::string const & tag () const
 
TimeType timeType () const
 
virtual edm::eventsetup::TypeTag type () const =0
 
virtual ~DataProxyWrapperBase ()
 

Private Attributes

std::string m_connString
 
Iov_t m_currentIov
 
persistency::IOVProxy m_iovProxy
 
std::string m_label
 
std::shared_ptr< std::vector< Iov_t > > m_requests
 
persistency::Session m_session
 
std::string m_tag
 

Detailed Description

Definition at line 66 of file DataProxy.h.

Member Typedef Documentation

◆ Args

typedef std::pair<std::string, std::string> cond::DataProxyWrapperBase::Args

Definition at line 72 of file DataProxy.h.

◆ edmProxyP

Definition at line 69 of file DataProxy.h.

◆ ProxyP

Definition at line 68 of file DataProxy.h.

Constructor & Destructor Documentation

◆ DataProxyWrapperBase()

cond::DataProxyWrapperBase::DataProxyWrapperBase ( )

Definition at line 19 of file ProxyFactory.cc.

19 {}

◆ ~DataProxyWrapperBase()

cond::DataProxyWrapperBase::~DataProxyWrapperBase ( )
virtual

Definition at line 21 of file ProxyFactory.cc.

21 {}

Member Function Documentation

◆ addInfo()

void cond::DataProxyWrapperBase::addInfo ( std::string const &  il,
std::string const &  cs,
std::string const &  tag 
)

◆ connString()

std::string const& cond::DataProxyWrapperBase::connString ( ) const
inline

Definition at line 93 of file DataProxy.h.

93 { return m_connString; }

References m_connString.

◆ currentIov()

Iov_t const& cond::DataProxyWrapperBase::currentIov ( ) const
inline

◆ edmProxy()

virtual edmProxyP cond::DataProxyWrapperBase::edmProxy ( unsigned int  iovIndex) const
pure virtual

◆ initConcurrentIOVs()

virtual void cond::DataProxyWrapperBase::initConcurrentIOVs ( unsigned int  nConcurrentIOVs)
pure virtual

◆ iovProxy() [1/2]

persistency::IOVProxy& cond::DataProxyWrapperBase::iovProxy ( )
inline

Definition at line 95 of file DataProxy.h.

95 { return m_iovProxy; }

References m_iovProxy.

◆ iovProxy() [2/2]

persistency::IOVProxy const& cond::DataProxyWrapperBase::iovProxy ( ) const
inline

Definition at line 96 of file DataProxy.h.

96 { return m_iovProxy; }

References m_iovProxy.

◆ label()

std::string const& cond::DataProxyWrapperBase::label ( ) const
inline

Definition at line 92 of file DataProxy.h.

92 { return m_label; }

References m_label.

◆ lateInit()

virtual void cond::DataProxyWrapperBase::lateInit ( persistency::Session session,
const std::string &  tag,
const boost::posix_time::ptime &  snapshotTime,
std::string const &  il,
std::string const &  cs 
)
pure virtual

◆ loadTag() [1/2]

void cond::DataProxyWrapperBase::loadTag ( std::string const &  tag)

Definition at line 29 of file ProxyFactory.cc.

29  {
30  m_session.transaction().start(true);
34  m_requests = std::make_shared<std::vector<cond::Iov_t>>();
35 }

References GlobalPosition_Frontier_DevDB_cff::tag.

Referenced by DataProxyWrapper< ExDwarfListRcd, cond::persistency::KeyList >::lateInit().

◆ loadTag() [2/2]

void cond::DataProxyWrapperBase::loadTag ( std::string const &  tag,
boost::posix_time::ptime const &  snapshotTime 
)

Definition at line 37 of file ProxyFactory.cc.

37  {
38  m_session.transaction().start(true);
42  m_requests = std::make_shared<std::vector<cond::Iov_t>>();
43 }

References GlobalTag_cfi::snapshotTime, and GlobalPosition_Frontier_DevDB_cff::tag.

◆ proxy()

virtual ProxyP cond::DataProxyWrapperBase::proxy ( unsigned int  iovIndex) const
pure virtual

◆ reload()

void cond::DataProxyWrapperBase::reload ( )

Definition at line 45 of file ProxyFactory.cc.

45  {
47  if (!tag.empty())
48  loadTag(tag);
49 }

References AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.

◆ requests()

std::shared_ptr<std::vector<Iov_t> > const& cond::DataProxyWrapperBase::requests ( ) const
inline

◆ session() [1/2]

persistency::Session& cond::DataProxyWrapperBase::session ( )
inline

◆ session() [2/2]

persistency::Session const& cond::DataProxyWrapperBase::session ( ) const
inline

Definition at line 99 of file DataProxy.h.

99 { return m_session; }

References m_session.

◆ setIntervalFor()

cond::ValidityInterval cond::DataProxyWrapperBase::setIntervalFor ( Time_t  target,
Time_t  defaultIovSize 
)

Definition at line 51 of file ProxyFactory.cc.

51  {
54  m_session.transaction().start(true);
55  m_currentIov = m_iovProxy.getInterval(time, defaultIovSize);
57  }
59 }

References ntuplemaker::time.

◆ setSession()

void cond::DataProxyWrapperBase::setSession ( persistency::Session const &  v)
inline

◆ tag()

std::string const& cond::DataProxyWrapperBase::tag ( ) const
inline

Definition at line 94 of file DataProxy.h.

94 { return m_tag; }

References m_tag.

Referenced by DataProxyWrapper< ExDwarfListRcd, cond::persistency::KeyList >::lateInit().

◆ timeType()

TimeType cond::DataProxyWrapperBase::timeType ( ) const
inline

Definition at line 109 of file DataProxy.h.

109 { return m_iovProxy.tagInfo().timeType; }

References m_iovProxy, cond::persistency::IOVProxy::tagInfo(), and cond::Tag_t::timeType.

◆ type()

virtual edm::eventsetup::TypeTag cond::DataProxyWrapperBase::type ( ) const
pure virtual

Member Data Documentation

◆ m_connString

std::string cond::DataProxyWrapperBase::m_connString
private

Definition at line 113 of file DataProxy.h.

Referenced by connString().

◆ m_currentIov

Iov_t cond::DataProxyWrapperBase::m_currentIov
private

Definition at line 116 of file DataProxy.h.

Referenced by currentIov().

◆ m_iovProxy

persistency::IOVProxy cond::DataProxyWrapperBase::m_iovProxy
private

Definition at line 115 of file DataProxy.h.

Referenced by iovProxy(), and timeType().

◆ m_label

std::string cond::DataProxyWrapperBase::m_label
private

Definition at line 112 of file DataProxy.h.

Referenced by label().

◆ m_requests

std::shared_ptr<std::vector<Iov_t> > cond::DataProxyWrapperBase::m_requests
private

Definition at line 118 of file DataProxy.h.

Referenced by requests().

◆ m_session

persistency::Session cond::DataProxyWrapperBase::m_session
private

Definition at line 117 of file DataProxy.h.

Referenced by session(), and setSession().

◆ m_tag

std::string cond::DataProxyWrapperBase::m_tag
private

Definition at line 114 of file DataProxy.h.

Referenced by tag().

GlobalTag_cfi.snapshotTime
snapshotTime
Definition: GlobalTag_cfi.py:19
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:45
cond::persistency::IOVProxy::getInterval
cond::Iov_t getInterval(cond::Time_t time)
Definition: IOVProxy.cc:317
cond::DataProxyWrapperBase::m_iovProxy
persistency::IOVProxy m_iovProxy
Definition: DataProxy.h:115
cond::Iov_t::isValidFor
bool isValidFor(Time_t target) const
Definition: Types.cc:18
cond::DataProxyWrapperBase::m_label
std::string m_label
Definition: DataProxy.h:112
findQualityFiles.v
v
Definition: findQualityFiles.py:179
cond::DataProxyWrapperBase::m_currentIov
Iov_t m_currentIov
Definition: DataProxy.h:116
cond::DataProxyWrapperBase::m_tag
std::string m_tag
Definition: DataProxy.h:114
cond::Iov_t::till
Time_t till
Definition: Types.h:54
cond::DataProxyWrapperBase::m_session
persistency::Session m_session
Definition: DataProxy.h:117
cond::persistency::Session::readIov
IOVProxy readIov(const std::string &tag)
Definition: Session.cc:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::DataProxyWrapperBase::m_requests
std::shared_ptr< std::vector< Iov_t > > m_requests
Definition: DataProxy.h:118
cond::Iov_t::since
Time_t since
Definition: Types.h:53
cond::Iov_t::clear
virtual void clear()
Definition: Types.cc:10
cond::Tag_t::name
std::string name
Definition: Types.h:61
cond::persistency::Transaction::commit
void commit()
Definition: Session.cc:23
cond::DataProxyWrapperBase::loadTag
void loadTag(std::string const &tag)
Definition: ProxyFactory.cc:29
cond::persistency::Session::transaction
Transaction & transaction()
Definition: Session.cc:52
cond::persistency::Transaction::start
void start(bool readOnly=true)
Definition: Session.cc:18
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
cond::DataProxyWrapperBase::m_connString
std::string m_connString
Definition: DataProxy.h:113
ntuplemaker.time
time
Definition: ntuplemaker.py:310
cond::persistency::IOVProxy::tagInfo
cond::Tag_t tagInfo() const
Definition: IOVProxy.cc:243
cond::DataProxyWrapperBase::tag
std::string const & tag() const
Definition: DataProxy.h:94
cond::Tag_t::timeType
TimeType timeType
Definition: Types.h:63