#include <DTHVStatusHandler.h>
Public Member Functions | |
DTHVStatusHandler (const edm::ParameterSet &ps) | |
void | getNewObjects () override |
std::string | id () const override |
~DTHVStatusHandler () override | |
Public Member Functions inherited from popcon::PopConSourceHandler< DTHVStatus > | |
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 Types | |
typedef std::pair< int, float > | channelValue |
typedef DTHVAbstractCheck::timedMeasurement | timedMeasurement |
Private Member Functions | |
int | checkForPeriod (cond::Time_t condSince, cond::Time_t condUntil, int &missingChannels, bool copyOffline) |
void | checkNewData () |
int | checkStatusChange (int type, float oldValue, float newValue) |
void | copyHVData () |
void | createSnapshot () |
void | dumpHVAliases () |
void | dumpSnapshot (const coral::TimeStamp &time) |
void | filterData () |
void | getChannelMap () |
void | getChannelSplit () |
void | getLayerSplit () |
void | getLayerValues (int rawId, int type, float &valueL, float &valueR, float &valueS, float &valueC) |
DTHVStatus * | offlineList () |
cond::Time_t | recoverLastTime () |
int | recoverSnapshot () |
void | setChannelFlag (DTHVStatus *hv, int whe, int sta, int sec, int qua, int lay, int l_p, const DTHVAbstractCheck::flag &flag) |
void | updateHVStatus () |
Static Private Member Functions | |
static cond::Time_t | condTime (const coral::TimeStamp &time) |
static cond::Time_t | condTime (long long int time) |
static coral::TimeStamp | coralTime (const cond::Time_t &time) |
static DTWireId | layerId (int rawId, int l_p) |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< DTHVStatus > | |
typedef std::map< Time_t, std::shared_ptr< DTHVStatus > > | Container |
typedef std::unique_ptr< DTHVStatus > | Ref |
typedef PopConSourceHandler< DTHVStatus > | self |
typedef cond::Time_t | Time_t |
typedef DTHVStatus | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< DTHVStatus > | |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< DTHVStatus > | |
Container | m_iovs |
std::vector< std::pair< DTHVStatus *, Time_t > > | m_to_transfer |
std::string | m_userTextLog |
Description: Class to copy HV status via PopCon
Definition at line 40 of file DTHVStatusHandler.h.
|
private |
Definition at line 58 of file DTHVStatusHandler.h.
Definition at line 57 of file DTHVStatusHandler.h.
DTHVStatusHandler::DTHVStatusHandler | ( | const edm::ParameterSet & | ps | ) |
Constructor
Definition at line 49 of file DTHVStatusHandler.cc.
References gather_cfg::cout, DTHVAbstractCheck::getInstance(), hvChecker, maxPayload, and onlineAuthentication.
|
override |
|
private |
Definition at line 735 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), officialStyle::chan, checkStatusChange(), condTime(), generateEDF::cont, coralTime(), gather_cfg::cout, Calorimetry_cff::dp, DTHVStatus::end(), mps_splice::entry, lastFound, lastStamp, maxPayload, minTime, nextFound, cond::persistency::Session::nominalSchema(), offlineList(), omds_session, procUntil, snapshotValues, timeLimit, and tmpContainer.
Referenced by copyHVData(), and updateHVStatus().
|
private |
Definition at line 188 of file DTHVStatusHandler.cc.
References buff_session, coralTime(), gather_cfg::cout, createSnapshot(), getChannelMap(), getChannelSplit(), getLayerSplit(), cond::persistency::Session::nominalSchema(), omds_session, procSince, procUntil, AlCaHLTBitMon_QueryRunRegistry::string, updateHVStatus(), and util_session.
Referenced by getNewObjects().
|
private |
Definition at line 1030 of file DTHVStatusHandler.cc.
References aliasMap, officialStyle::chan, DTHVAbstractCheck::checkCurrentStatus(), DTHVAbstractCheck::compare(), gather_cfg::cout, getLayerValues(), hvChecker, layerId(), layerMap, snapshotValues, and DTWireId::wire().
Referenced by checkForPeriod().
|
staticprivate |
Definition at line 1187 of file DTHVStatusHandler.cc.
References protons_cff::time.
Referenced by checkForPeriod(), getNewObjects(), and recoverLastTime().
|
staticprivate |
|
private |
Definition at line 841 of file DTHVStatusHandler.cc.
References checkForPeriod(), gather_cfg::cout, filterData(), fwdTime, lastFound, lastStatus, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, maxPayload, offlineList(), procSince, procUntil, and switchOff.
Referenced by updateHVStatus().
|
staticprivate |
Definition at line 1181 of file DTHVStatusHandler.cc.
References protons_cff::time.
Referenced by checkForPeriod(), checkNewData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 487 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, mps_splice::entry, DTLayerId::layer(), L1DTConfigBti_cff::LL, cond::persistency::Session::nominalSchema(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by checkNewData().
|
private |
Definition at line 365 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, Calorimetry_cff::dp, layerMap, cond::persistency::Session::nominalSchema(), omds_session, DetId::rawId(), fileinputsource_cfi::sec, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelMap().
|
private |
Definition at line 666 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, mps_splice::entry, DTLayerId::layer(), cond::persistency::Session::nominalSchema(), submitPVValidationJobs::now, DTChamberId::sector(), snapshotValues, DTChamberId::station(), AlCaHLTBitMon_QueryRunRegistry::string, DTSuperLayerId::superLayer(), protons_cff::time, DTChamberId::wheel(), and DTWireId::wire().
Referenced by updateHVStatus().
|
private |
Definition at line 1092 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), gather_cfg::cout, change_name::diff, HLT_2022v15_cff::distance, DTHVStatus::end(), mps_splice::entry, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, HLT_2022v15_cff::maxTime, GetRecoTauVFromDQM_MC_cff::next, switchOff, and tmpContainer.
Referenced by copyHVData().
|
private |
Definition at line 235 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, dumpHVAliases(), layerMap, and cond::persistency::Session::nominalSchema().
Referenced by checkNewData().
|
private |
Definition at line 300 of file DTHVStatusHandler.cc.
References channelSplit, gather_cfg::cout, cond::persistency::Session::nominalSchema(), DetId::rawId(), submitPVValidationJobs::splitList, splitVersion, AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 258 of file DTHVStatusHandler.cc.
References gather_cfg::cout, laySplit, mapVersion, cond::persistency::Session::nominalSchema(), fileinputsource_cfi::sec, AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 943 of file DTHVStatusHandler.cc.
References gather_cfg::cout, layerId(), layerMap, DetId::rawId(), and snapshotValues.
Referenced by checkStatusChange(), and offlineList().
|
overridevirtual |
Operations
Implements popcon::PopConSourceHandler< DTHVStatus >.
Definition at line 90 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, bufferConnect, officialStyle::chan, checkNewData(), cond::persistency::Session::close(), cond::persistency::Transaction::commit(), condTime(), cond::persistency::ConnectionPool::configure(), coralTime(), gather_cfg::cout, cond::persistency::ConnectionPool::createSession(), data, dataTag, dSince, dUntil, mps_splice::entry, hSince, hUntil, hvChecker, id(), dqmdumpme::last, lastFound, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< DTHVStatus >::lastPayload(), lastStamp, layerMap, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, mSince, mUntil, nextFound, submitPVValidationJobs::now, omds_session, onlineAuthentication, onlineConnect, jetsAK4_Puppi_cff::payload, procSince, procUntil, pSince, pUntil, cond::persistency::ConnectionPool::setAuthenticationPath(), DTHVAbstractCheck::setStatus(), cond::Iov_t::since, snapshotValues, sSince, cond::persistency::Transaction::start(), sUntil, popcon::PopConSourceHandler< DTHVStatus >::tagInfo(), timeLimit, cond::persistency::Session::transaction(), util_session, ySince, and yUntil.
|
overridevirtual |
Implements popcon::PopConSourceHandler< DTHVStatus >.
Definition at line 233 of file DTHVStatusHandler.cc.
Referenced by getNewObjects().
|
staticprivate |
Definition at line 1170 of file DTHVStatusHandler.cc.
References DTLayerId::layer(), fileinputsource_cfi::sec, DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), and DTChamberId::wheel().
Referenced by checkStatusChange(), getLayerValues(), and offlineList().
|
private |
Definition at line 871 of file DTHVStatusHandler.cc.
References aliasMap, channelSplit, DTHVAbstractCheck::checkCurrentStatus(), dataTag, RemoveAddSevLevel::flag, getLayerValues(), hvChecker, DTLayerId::layer(), layerId(), layerMap, DetId::rawId(), fileinputsource_cfi::sec, DTChamberId::sector(), setChannelFlag(), snapshotValues, DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by checkForPeriod(), and copyHVData().
|
private |
Definition at line 640 of file DTHVStatusHandler.cc.
References condTime(), mps_splice::entry, L1DTConfigBti_cff::LL, and snapshotValues.
Referenced by updateHVStatus().
|
private |
Definition at line 599 of file DTHVStatusHandler.cc.
References buff_session, gather_cfg::cout, layerMap, cond::persistency::Session::nominalSchema(), DetId::rawId(), fileinputsource_cfi::sec, snapshotValues, protons_cff::time, and relativeConstraints::value.
Referenced by updateHVStatus().
|
private |
Definition at line 1005 of file DTHVStatusHandler.cc.
References RemoveAddSevLevel::flag, DTHVStatus::get(), laySplit, DetId::rawId(), fileinputsource_cfi::sec, and DTHVStatus::set().
Referenced by offlineList().
|
private |
Definition at line 556 of file DTHVStatusHandler.cc.
References bwdTime, checkForPeriod(), copyHVData(), coralTime(), gather_cfg::cout, dSince, dumpAtEnd, dumpAtStart, dumpSnapshot(), lastFound, mSince, procSince, recoverLastTime(), recoverSnapshot(), loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, and ySince.
Referenced by checkNewData().
|
private |
Definition at line 130 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), createSnapshot(), dumpHVAliases(), dumpSnapshot(), getChannelMap(), getNewObjects(), and offlineList().
|
private |
Definition at line 126 of file DTHVStatusHandler.h.
Referenced by checkNewData(), createSnapshot(), dumpHVAliases(), dumpSnapshot(), getChannelMap(), getNewObjects(), and recoverSnapshot().
|
private |
Definition at line 92 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 109 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 133 of file DTHVStatusHandler.h.
Referenced by getChannelSplit(), and offlineList().
|
private |
Definition at line 88 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and offlineList().
|
private |
Definition at line 97 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 108 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 107 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 103 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 110 of file DTHVStatusHandler.h.
Referenced by copyHVData().
|
private |
Definition at line 98 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 104 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 114 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), DTHVStatusHandler(), getNewObjects(), and offlineList().
|
private |
Definition at line 118 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), copyHVData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 121 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 93 of file DTHVStatusHandler.h.
Referenced by copyHVData().
|
private |
Definition at line 131 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), dumpHVAliases(), getChannelMap(), getLayerValues(), getNewObjects(), offlineList(), and recoverSnapshot().
|
private |
Definition at line 132 of file DTHVStatusHandler.h.
Referenced by getLayerSplit(), and setChannelFlag().
|
private |
Definition at line 128 of file DTHVStatusHandler.h.
Referenced by getLayerSplit().
|
private |
Definition at line 122 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), copyHVData(), and DTHVStatusHandler().
|
private |
Definition at line 111 of file DTHVStatusHandler.h.
Referenced by checkForPeriod().
|
private |
Definition at line 96 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 102 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 119 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 124 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkNewData(), dumpHVAliases(), and getNewObjects().
|
private |
Definition at line 91 of file DTHVStatusHandler.h.
Referenced by DTHVStatusHandler(), and getNewObjects().
|
private |
Definition at line 89 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 116 of file DTHVStatusHandler.h.
Referenced by checkNewData(), copyHVData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 117 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkNewData(), copyHVData(), and getNewObjects().
|
private |
Definition at line 99 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 105 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 113 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkStatusChange(), dumpSnapshot(), getLayerValues(), getNewObjects(), offlineList(), recoverLastTime(), and recoverSnapshot().
|
private |
Definition at line 129 of file DTHVStatusHandler.h.
Referenced by getChannelSplit().
|
private |
Definition at line 100 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 106 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 135 of file DTHVStatusHandler.h.
Referenced by copyHVData(), and filterData().
|
private |
Definition at line 120 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 134 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and filterData().
|
private |
Definition at line 125 of file DTHVStatusHandler.h.
Referenced by checkNewData(), getChannelSplit(), getLayerSplit(), and getNewObjects().
|
private |
Definition at line 90 of file DTHVStatusHandler.h.
|
private |
Definition at line 95 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 101 of file DTHVStatusHandler.h.
Referenced by getNewObjects().