#include <LHCInfoPerLSPopConSourceHandler.h>
Public Member Functions | |
void | getNewObjects () override |
std::string | id () const override |
LHCInfoPerLSPopConSourceHandler (edm::ParameterSet const &pset) | |
~LHCInfoPerLSPopConSourceHandler () override | |
Public Member Functions inherited from popcon::PopConSourceHandler< LHCInfoPerLS > | |
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 () |
cond::TagInfo_t const & | tagInfo () const |
std::string const & | userTextLog () const |
virtual | ~PopConSourceHandler () |
Private Member Functions | |
void | addDefaultPayload (cond::Time_t iov, unsigned short fill, const cond::OMSService &oms) |
void | addDefaultPayload (cond::Time_t iov, unsigned short fill, int run, unsigned short lumi) |
void | addEmptyPayload (cond::Time_t iov) |
void | addPayloadToBuffer (cond::OMSServiceResultRef &row) |
size_t | bufferAllLS (const cond::OMSServiceResult &queryResult) |
void | filterInvalidPayloads () |
bool | getCTPPSData (cond::persistency::Session &session, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime) |
size_t | getLumiData (const cond::OMSService &oms, unsigned short fillId, const boost::posix_time::ptime &beginFillTime, const boost::posix_time::ptime &endFillTime) |
bool | isPayloadValid (const LHCInfoPerLS &payload) const |
bool | makeFillPayload (std::unique_ptr< LHCInfoPerLS > &targetPayload, const cond::OMSServiceResult &queryResult) |
void | populateIovs () |
Private Attributes | |
std::string | m_authpath |
std::string | m_connectionString |
bool | m_debug |
const bool | m_debugLogic |
float | m_defaultBetaStarX |
float | m_defaultBetaStarY |
float | m_defaultCrossingAngleX |
float | m_defaultCrossingAngleY |
bool | m_endFillMode = true |
cond::Time_t | m_endFillTime |
cond::Time_t | m_endStableBeamTime |
boost::posix_time::ptime | m_endTime |
std::unique_ptr< LHCInfoPerLS > | m_fillPayload |
bool | m_lastPayloadEmpty = false |
std::map< std::pair< cond::Time_t, unsigned int >, std::pair< cond::Time_t, unsigned int > > | m_lsIdMap |
float | m_maxBetaStar |
float | m_maxCrossingAngle |
float | m_minBetaStar |
float | m_minCrossingAngle |
std::string | m_name |
std::string | m_omsBaseUrl |
cond::Time_t | m_prevEndFillTime = 0 |
std::shared_ptr< LHCInfoPerLS > | m_prevPayload |
cond::Time_t | m_prevStartFillTime |
cond::Time_t | m_startFillTime |
cond::Time_t | m_startStableBeamTime |
boost::posix_time::ptime | m_startTime |
std::vector< std::pair< cond::Time_t, std::shared_ptr< LHCInfoPerLS > > > | m_tmpBuffer |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< LHCInfoPerLS > | |
typedef std::map< Time_t, std::shared_ptr< LHCInfoPerLS > > | Container |
typedef std::unique_ptr< LHCInfoPerLS > | Ref |
typedef PopConSourceHandler< LHCInfoPerLS > | self |
typedef cond::Time_t | Time_t |
typedef LHCInfoPerLS | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< LHCInfoPerLS > | |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< LHCInfoPerLS > | |
Container | m_iovs |
std::vector< std::pair< LHCInfoPerLS *, Time_t > > | m_to_transfer |
std::string | m_userTextLog |
Definition at line 14 of file LHCInfoPerLSPopConSourceHandler.h.
LHCInfoPerLSPopConSourceHandler::LHCInfoPerLSPopConSourceHandler | ( | edm::ParameterSet const & | pset | ) |
Definition at line 115 of file LHCInfoPerLSPopConSourceHandler.cc.
References Exception, m_debugLogic, m_endFillMode, m_endTime, m_startTime, submitPVValidationJobs::now, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridedefault |
|
private |
Definition at line 436 of file LHCInfoPerLSPopConSourceHandler.cc.
References EcalPhiSymFlatTableProducers_cfi::fill, cond::lhcInfoHelper::getFillLastRunAndLS(), beamSpotPI::lastLumi, and PixelBaryCentreAnalyzer_cfg::lastRun.
Referenced by populateIovs().
|
private |
Definition at line 445 of file LHCInfoPerLSPopConSourceHandler.cc.
References theLHCInfoPerLSImpl::comparePayloads(), EcalPhiSymFlatTableProducers_cfi::fill, m_defaultBetaStarX, m_defaultBetaStarY, m_defaultCrossingAngleX, m_defaultCrossingAngleY, popcon::PopConSourceHandler< LHCInfoPerLS >::m_iovs, m_name, m_prevPayload, and writedatasetfile::run.
|
private |
Definition at line 414 of file LHCInfoPerLSPopConSourceHandler.cc.
References PVValHelper::add(), popcon::PopConSourceHandler< LHCInfoPerLS >::m_iovs, m_lastPayloadEmpty, m_name, m_prevEndFillTime, m_prevPayload, m_prevStartFillTime, and cond::time::to_boost().
Referenced by populateIovs().
|
private |
Definition at line 490 of file LHCInfoPerLSPopConSourceHandler.cc.
References cond::time::from_boost(), cond::OMSServiceResultRef::get(), cond::time::lumiTime(), m_endFillMode, m_fillPayload, m_lsIdMap, m_tmpBuffer, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by bufferAllLS(), and getLumiData().
|
private |
Definition at line 505 of file LHCInfoPerLSPopConSourceHandler.cc.
References addPayloadToBuffer(), and alignCSCRings::r.
Referenced by getLumiData().
|
private |
Definition at line 160 of file LHCInfoPerLSPopConSourceHandler.cc.
References isPayloadValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, popcon::PopConSourceHandler< LHCInfoPerLS >::m_iovs, and m_name.
Referenced by getNewObjects().
|
private |
Definition at line 542 of file LHCInfoPerLSPopConSourceHandler.cc.
References m_debug, m_lsIdMap, m_tmpBuffer, jetsAK4_Puppi_cff::payload, runTheMatrix::ret, convertSQLiteXML::runNumber, run_AlCaRecoTriggerBitsUpdateWorkflow::session, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by populateIovs().
|
private |
Definition at line 512 of file LHCInfoPerLSPopConSourceHandler.cc.
References addPayloadToBuffer(), bufferAllLS(), cond::lhcInfoHelper::kLumisectionsQueryLimit, m_debugLogic, m_endFillMode, m_name, cond::OMSService::query(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by populateIovs().
|
overridevirtual |
Implements popcon::PopConSourceHandler< LHCInfoPerLS >.
Definition at line 153 of file LHCInfoPerLSPopConSourceHandler.cc.
References filterInvalidPayloads(), m_endFillMode, and populateIovs().
|
overridevirtual |
Implements popcon::PopConSourceHandler< LHCInfoPerLS >.
Definition at line 412 of file LHCInfoPerLSPopConSourceHandler.cc.
References m_name.
|
private |
Definition at line 181 of file LHCInfoPerLSPopConSourceHandler.cc.
References m_maxBetaStar, m_maxCrossingAngle, m_minBetaStar, m_minCrossingAngle, and jetsAK4_Puppi_cff::payload.
Referenced by filterInvalidPayloads().
|
private |
Definition at line 467 of file LHCInfoPerLSPopConSourceHandler.cc.
References cond::OMSServiceResult::begin(), cond::OMSServiceResult::empty(), cond::time::from_boost(), m_debugLogic, m_endFillTime, m_endStableBeamTime, m_startFillTime, m_startStableBeamTime, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by populateIovs().
|
private |
Definition at line 193 of file LHCInfoPerLSPopConSourceHandler.cc.
References addDefaultPayload(), addEmptyPayload(), cond::persistency::Transaction::commit(), theLHCInfoPerLSImpl::comparePayloads(), cond::persistency::ConnectionPool::configure(), cond::OMSService::connect(), cond::persistency::ConnectionPool::createSession(), popcon::PopConSourceHandler< LHCInfoPerLS >::dbSession(), Debug, Exception, cond::persistency::Session::fetchPayload(), cond::time::from_boost(), getCTPPSData(), getLumiData(), cond::TagInfo_t::lastInterval, m_authpath, m_connectionString, m_debug, m_debugLogic, m_endFillMode, m_endFillTime, m_endStableBeamTime, m_endTime, m_fillPayload, popcon::PopConSourceHandler< LHCInfoPerLS >::m_iovs, m_lsIdMap, m_name, m_omsBaseUrl, m_prevEndFillTime, m_prevPayload, m_prevStartFillTime, m_startFillTime, m_startStableBeamTime, m_startTime, m_tmpBuffer, makeFillPayload(), WZElectronSkims53X_cff::max, cond::TagInfo_t::name, cond::Iov_t::payloadId, cond::OMSService::query(), mps_fire::result, run_AlCaRecoTriggerBitsUpdateWorkflow::session, cond::persistency::ConnectionPool::setAuthenticationPath(), cond::persistency::ConnectionPool::setMessageVerbosity(), cond::Iov_t::since, cond::TagInfo_t::size, findQualityFiles::size, cond::OMSServiceQuery::SNULL, cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< LHCInfoPerLS >::tagInfo(), cond::time::to_boost(), cond::persistency::Session::transaction(), and theLHCInfoPerLSImpl::transferPayloads().
Referenced by getNewObjects().
|
private |
Definition at line 47 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by populateIovs().
|
private |
Definition at line 46 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by populateIovs().
|
private |
Definition at line 39 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by getCTPPSData(), and populateIovs().
|
private |
Definition at line 54 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by getLumiData(), LHCInfoPerLSPopConSourceHandler(), makeFillPayload(), and populateIovs().
|
private |
Definition at line 59 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload().
|
private |
Definition at line 60 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload().
|
private |
Definition at line 57 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload().
|
private |
Definition at line 58 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload().
|
private |
Definition at line 43 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addPayloadToBuffer(), getLumiData(), getNewObjects(), LHCInfoPerLSPopConSourceHandler(), and populateIovs().
|
private |
Definition at line 69 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by makeFillPayload(), and populateIovs().
|
private |
Definition at line 73 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by makeFillPayload(), and populateIovs().
|
private |
Definition at line 42 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by LHCInfoPerLSPopConSourceHandler(), and populateIovs().
|
private |
Definition at line 66 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addPayloadToBuffer(), and populateIovs().
|
private |
Definition at line 75 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addEmptyPayload().
|
private |
Definition at line 79 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addPayloadToBuffer(), getCTPPSData(), and populateIovs().
|
private |
Definition at line 62 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by isPayloadValid().
|
private |
Definition at line 64 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by isPayloadValid().
|
private |
Definition at line 61 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by isPayloadValid().
|
private |
Definition at line 63 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by isPayloadValid().
|
private |
Definition at line 44 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload(), addEmptyPayload(), filterInvalidPayloads(), getLumiData(), id(), and populateIovs().
|
private |
Definition at line 48 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by populateIovs().
|
private |
Definition at line 70 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addEmptyPayload(), and populateIovs().
|
private |
Definition at line 67 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addDefaultPayload(), addEmptyPayload(), and populateIovs().
|
private |
Definition at line 71 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addEmptyPayload(), and populateIovs().
|
private |
Definition at line 68 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by makeFillPayload(), and populateIovs().
|
private |
Definition at line 72 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by makeFillPayload(), and populateIovs().
|
private |
Definition at line 41 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by LHCInfoPerLSPopConSourceHandler(), and populateIovs().
|
private |
Definition at line 74 of file LHCInfoPerLSPopConSourceHandler.h.
Referenced by addPayloadToBuffer(), getCTPPSData(), and populateIovs().