#include <LHCInfoPopConSourceHandler.h>
Public Member Functions | |
void | getNewObjects () override |
std::string | id () const override |
LHCInfoPopConSourceHandler (const edm::ParameterSet &pset) | |
~LHCInfoPopConSourceHandler () override | |
Public Member Functions inherited from popcon::PopConSourceHandler< LHCInfo > | |
void | convertFromOld () |
Summary * | dummySummary (typename OldContainer::value_type const &) const |
void | initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) |
Ref | lastPayload () const |
cond::LogDBEntry_t const & | logDBEntry () const |
std::pair< Container const *, std::string const > | operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const |
PopConSourceHandler () | |
Container const & | returnData () |
void | sort () |
cond::TagInfo_t const & | tagInfo () const |
std::string const & | userTextLog () const |
virtual | ~PopConSourceHandler () |
Private Member Functions | |
void | addEmptyPayload (cond::Time_t iov) |
void | addPayload (LHCInfo &newPayload, cond::Time_t iov) |
bool | getCTTPSData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
bool | getCurrentFillData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
bool | getDipData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
bool | getEcalData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
bool | getFillData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, bool next, LHCInfo &payload) |
bool | getLumiData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
bool | getNextFillData (cond::persistency::Session &session, const boost::posix_time::ptime &targetTime, LHCInfo &payload) |
Private Attributes | |
std::string | m_authpath |
std::string | m_connectionString |
bool | m_debug |
std::string | m_dipSchema |
std::string | m_ecalConnectionString |
boost::posix_time::ptime | m_endTime |
bool | m_lastPayloadEmpty = false |
std::string | m_name |
std::vector< std::unique_ptr< LHCInfo > > | m_payloadBuffer |
unsigned int | m_samplingInterval |
boost::posix_time::ptime | m_startTime |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< LHCInfo > | |
typedef std::vector< Triplet > | Container |
typedef std::vector< std::pair< LHCInfo *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< LHCInfo > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef LHCInfo | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< LHCInfo > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< LHCInfo > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Definition at line 10 of file LHCInfoPopConSourceHandler.h.
LHCInfoPopConSourceHandler::LHCInfoPopConSourceHandler | ( | const edm::ParameterSet & | pset | ) |
Definition at line 20 of file LHCInfoPopConSourceHandler.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getUntrackedParameter(), m_endTime, m_startTime, cmsPerfSuiteHarvest::now, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 43 of file LHCInfoPopConSourceHandler.cc.
|
private |
Definition at line 574 of file LHCInfoPopConSourceHandler.cc.
References popcon::PopConSourceHandler< LHCInfo >::add(), LHCInfo::fillNumber(), m_lastPayloadEmpty, m_payloadBuffer, and popcon::PopConSourceHandler< LHCInfo >::m_to_transfer.
Referenced by getNewObjects().
|
private |
Definition at line 591 of file LHCInfoPopConSourceHandler.cc.
References popcon::PopConSourceHandler< LHCInfo >::add(), LHCInfo::equals(), and popcon::PopConSourceHandler< LHCInfo >::m_to_transfer.
Referenced by getNewObjects().
|
private |
Definition at line 423 of file LHCInfoPopConSourceHandler.cc.
References cond::persistency::Session::coralSession(), m_debug, seconds(), LHCInfo::setCtppsStatus(), LHCInfo::setLhcComment(), LHCInfo::setLhcState(), LHCInfo::setLumiSection(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getNewObjects().
|
private |
Definition at line 237 of file LHCInfoPopConSourceHandler.cc.
References getFillData().
Referenced by getNewObjects().
|
private |
Definition at line 311 of file LHCInfoPopConSourceHandler.cc.
References LHCInfo::availableBunchSlots, cond::persistency::Session::coralSession(), LHCInfo::endTime(), m_debug, m_dipSchema, seconds(), LHCInfo::setBunchBitsetForBeam1(), LHCInfo::setBunchBitsetForBeam2(), LHCInfo::setLumiPerBX(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::time::to_boost().
Referenced by getNewObjects().
|
private |
Definition at line 493 of file LHCInfoPopConSourceHandler.cc.
References ECAL, m_debug, cond::persistency::Session::nominalSchema(), LHCInfo::setBeam1RF(), LHCInfo::setBeam1VC(), LHCInfo::setBeam2RF(), LHCInfo::setBeam2VC(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getNewObjects().
|
private |
Definition at line 53 of file LHCInfoPopConSourceHandler.cc.
References LHCInfo::COSMICS, cond::time::from_boost(), LHCInfo::GAP, LHCInfo::IONS, m_debug, cond::persistency::Session::nominalSchema(), LHCInfo::NONE, LHCInfo::PB82, LHCInfo::PROTON, LHCInfo::PROTONS, seconds(), LHCInfo::setBeginTime(), LHCInfo::setBetaStar(), LHCInfo::setBunchesInBeam1(), LHCInfo::setBunchesInBeam2(), LHCInfo::setCollidingBunches(), LHCInfo::setCreationTime(), LHCInfo::setCrossingAngle(), LHCInfo::setEndTime(), LHCInfo::setEnergy(), LHCInfo::setFill(), LHCInfo::setFillType(), LHCInfo::setInjectionScheme(), LHCInfo::setIntensityForBeam1(), LHCInfo::setIntensityForBeam2(), LHCInfo::setParticleTypeForBeam1(), LHCInfo::setParticleTypeForBeam2(), LHCInfo::setTargetBunches(), AlCaHLTBitMon_QueryRunRegistry::string, ntuplemaker::time, and LHCInfo::UNKNOWN.
Referenced by getCurrentFillData(), and getNextFillData().
|
private |
Definition at line 249 of file LHCInfoPopConSourceHandler.cc.
References muonGEMDigis_cfi::instLumi, cond::persistency::Session::nominalSchema(), seconds(), LHCInfo::setDelivLumi(), LHCInfo::setInstLumi(), LHCInfo::setInstLumiError(), LHCInfo::setRecLumi(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getNewObjects().
|
overridevirtual |
Implements popcon::PopConSourceHandler< LHCInfo >.
Definition at line 607 of file LHCInfoPopConSourceHandler.cc.
References addEmptyPayload(), addPayload(), cond::persistency::Transaction::commit(), cond::persistency::ConnectionPool::configure(), cond::persistency::ConnectionPool::createSession(), popcon::PopConSourceHandler< LHCInfo >::dbSession(), Debug, cond::persistency::Session::fetchPayload(), cond::time::from_boost(), getCTTPSData(), getCurrentFillData(), getDipData(), getEcalData(), getLumiData(), getNextFillData(), LHCInfoImpl::getNextIov(), cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< LHCInfo >::lastPayload(), cond::TagInfo_t::lastPayloadToken, m_authpath, m_connectionString, m_debug, m_ecalConnectionString, m_endTime, m_lastPayloadEmpty, m_name, m_payloadBuffer, m_samplingInterval, m_startTime, SiStripPI::max, cond::time::MAX_VAL(), dataset::name, cond::TagInfo_t::name, nullptr, jets_cff::payload, dataDML::session, cond::persistency::ConnectionPool::setAuthenticationPath(), cond::persistency::ConnectionPool::setMessageVerbosity(), cond::TagInfo_t::size, cond::persistency::Transaction::start(), popcon::PopConSourceHandler< LHCInfo >::tagInfo(), cond::time::to_boost(), cond::TagInfo_t::token, and cond::persistency::Session::transaction().
|
private |
Definition at line 243 of file LHCInfoPopConSourceHandler.cc.
References getFillData().
Referenced by getNewObjects().
|
overridevirtual |
Implements popcon::PopConSourceHandler< LHCInfo >.
Definition at line 747 of file LHCInfoPopConSourceHandler.cc.
References m_name.
|
private |
Definition at line 37 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 36 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 28 of file LHCInfoPopConSourceHandler.h.
Referenced by getCTTPSData(), getDipData(), getEcalData(), getFillData(), and getNewObjects().
|
private |
Definition at line 37 of file LHCInfoPopConSourceHandler.h.
Referenced by getDipData().
|
private |
Definition at line 36 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 31 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects(), and LHCInfoPopConSourceHandler().
|
private |
Definition at line 39 of file LHCInfoPopConSourceHandler.h.
Referenced by addEmptyPayload(), and getNewObjects().
|
private |
Definition at line 34 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects(), and id().
|
private |
Definition at line 38 of file LHCInfoPopConSourceHandler.h.
Referenced by addEmptyPayload(), and getNewObjects().
|
private |
Definition at line 33 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 30 of file LHCInfoPopConSourceHandler.h.
Referenced by getNewObjects(), and LHCInfoPopConSourceHandler().