CMS 3D CMS Logo

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

#include <ProductResolver.h>

Inheritance diagram for cond::ProductResolverWrapperBase:
ProductResolverWrapper< RecordT, DataT, Initializer > ProductResolverWrapper< DTKeyedConfigListRcd, cond::persistency::KeyList > ProductResolverWrapper< ExDwarfListRcd, cond::persistency::KeyList > ProductResolverDTKeyedConfigListRcd ProductResolverExDwarfListRcd

Public Types

typedef std::pair< std::string, std::string > Args
 
typedef std::shared_ptr< edm::eventsetup::ESProductResolveresResolverP
 
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
 
virtual esResolverP esResolver (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, edm::SerialTaskQueue *queue, std::mutex *mutex)=0
 
void loadTag (std::string const &tag)
 
void loadTag (std::string const &tag, boost::posix_time::ptime const &snapshotTime)
 
 ProductResolverWrapperBase ()
 
virtual ProxyP proxy (unsigned int iovIndex) const =0
 
virtual edm::eventsetup::EventSetupRecordKey recordKey () 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)
 
void setSession (persistency::Session const &v)
 
std::string const & tag () const
 
TimeType timeType () const
 
virtual edm::eventsetup::TypeTag type () const =0
 
virtual ~ProductResolverWrapperBase ()
 

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 62 of file ProductResolver.h.

Member Typedef Documentation

◆ Args

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

Definition at line 68 of file ProductResolver.h.

◆ esResolverP

Definition at line 65 of file ProductResolver.h.

◆ ProxyP

Definition at line 64 of file ProductResolver.h.

Constructor & Destructor Documentation

◆ ProductResolverWrapperBase()

cond::ProductResolverWrapperBase::ProductResolverWrapperBase ( )

Definition at line 19 of file ProductResolverFactory.cc.

19 {}

◆ ~ProductResolverWrapperBase()

cond::ProductResolverWrapperBase::~ProductResolverWrapperBase ( )
virtual

Definition at line 21 of file ProductResolverFactory.cc.

21 {}

Member Function Documentation

◆ addInfo()

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

◆ connString()

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

Definition at line 92 of file ProductResolver.h.

References m_connString.

92 { return m_connString; }

◆ currentIov()

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

◆ esResolver()

virtual esResolverP cond::ProductResolverWrapperBase::esResolver ( unsigned int  iovIndex) const
pure virtual

◆ initConcurrentIOVs()

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

◆ iovProxy() [1/2]

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

Definition at line 94 of file ProductResolver.h.

References m_iovProxy.

94 { return m_iovProxy; }
persistency::IOVProxy m_iovProxy

◆ iovProxy() [2/2]

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

Definition at line 95 of file ProductResolver.h.

References m_iovProxy.

95 { return m_iovProxy; }
persistency::IOVProxy m_iovProxy

◆ label()

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

Definition at line 91 of file ProductResolver.h.

References m_label.

91 { return m_label; }

◆ lateInit()

virtual void cond::ProductResolverWrapperBase::lateInit ( persistency::Session session,
const std::string &  tag,
const boost::posix_time::ptime &  snapshotTime,
std::string const &  il,
std::string const &  cs,
edm::SerialTaskQueue queue,
std::mutex mutex 
)
pure virtual

◆ loadTag() [1/2]

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

Definition at line 29 of file ProductResolverFactory.cc.

References makeGlobalPositionRcd_cfg::tag.

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

29  {
30  m_session.transaction().start(true);
34  m_requests = std::make_shared<std::vector<cond::Iov_t>>();
35 }
virtual void clear()
Definition: Types.cc:10
std::shared_ptr< std::vector< Iov_t > > m_requests
void start(bool readOnly=true)
Definition: Session.cc:18
Transaction & transaction()
Definition: Session.cc:52
IOVProxy readIov(const std::string &tag)
Definition: Session.cc:63
std::string const & tag() const
persistency::IOVProxy m_iovProxy

◆ loadTag() [2/2]

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

Definition at line 37 of file ProductResolverFactory.cc.

References loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, and makeGlobalPositionRcd_cfg::tag.

37  {
38  m_session.transaction().start(true);
42  m_requests = std::make_shared<std::vector<cond::Iov_t>>();
43 }
virtual void clear()
Definition: Types.cc:10
std::shared_ptr< std::vector< Iov_t > > m_requests
void start(bool readOnly=true)
Definition: Session.cc:18
Transaction & transaction()
Definition: Session.cc:52
IOVProxy readIov(const std::string &tag)
Definition: Session.cc:63
std::string const & tag() const
persistency::IOVProxy m_iovProxy

◆ proxy()

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

◆ recordKey()

virtual edm::eventsetup::EventSetupRecordKey cond::ProductResolverWrapperBase::recordKey ( ) const
pure virtual

◆ reload()

void cond::ProductResolverWrapperBase::reload ( )

Definition at line 45 of file ProductResolverFactory.cc.

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

45  {
47  if (!tag.empty())
48  loadTag(tag);
49 }
void loadTag(std::string const &tag)
std::string name
Definition: Types.h:61
cond::Tag_t tagInfo() const
Definition: IOVProxy.cc:247
std::string const & tag() const
persistency::IOVProxy m_iovProxy

◆ requests()

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

◆ session() [1/2]

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

◆ session() [2/2]

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

Definition at line 98 of file ProductResolver.h.

References m_session.

98 { return m_session; }

◆ setIntervalFor()

cond::ValidityInterval cond::ProductResolverWrapperBase::setIntervalFor ( Time_t  target)

Definition at line 51 of file ProductResolverFactory.cc.

References hcalRecHitTable_cff::time.

51  {
54  m_session.transaction().start(true);
57  }
59 }
virtual void clear()
Definition: Types.cc:10
bool isValidFor(Time_t target) const
Definition: Types.cc:18
void start(bool readOnly=true)
Definition: Session.cc:18
Time_t since
Definition: Types.h:53
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
Transaction & transaction()
Definition: Session.cc:52
cond::Iov_t getInterval(cond::Time_t time)
Definition: IOVProxy.cc:327
persistency::IOVProxy m_iovProxy
Time_t till
Definition: Types.h:54

◆ setSession()

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

◆ tag()

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

◆ timeType()

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

Definition at line 108 of file ProductResolver.h.

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

108 { return m_iovProxy.tagInfo().timeType; }
cond::Tag_t tagInfo() const
Definition: IOVProxy.cc:247
TimeType timeType
Definition: Types.h:63
persistency::IOVProxy m_iovProxy

◆ type()

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

Member Data Documentation

◆ m_connString

std::string cond::ProductResolverWrapperBase::m_connString
private

Definition at line 112 of file ProductResolver.h.

Referenced by connString().

◆ m_currentIov

Iov_t cond::ProductResolverWrapperBase::m_currentIov
private

Definition at line 115 of file ProductResolver.h.

Referenced by currentIov().

◆ m_iovProxy

persistency::IOVProxy cond::ProductResolverWrapperBase::m_iovProxy
private

Definition at line 114 of file ProductResolver.h.

Referenced by iovProxy(), and timeType().

◆ m_label

std::string cond::ProductResolverWrapperBase::m_label
private

Definition at line 111 of file ProductResolver.h.

Referenced by label().

◆ m_requests

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

Definition at line 117 of file ProductResolver.h.

Referenced by requests().

◆ m_session

persistency::Session cond::ProductResolverWrapperBase::m_session
private

Definition at line 116 of file ProductResolver.h.

Referenced by session(), and setSession().

◆ m_tag

std::string cond::ProductResolverWrapperBase::m_tag
private

Definition at line 113 of file ProductResolver.h.

Referenced by tag().