#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 | 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 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::vector< Triplet > | Container |
typedef std::vector< std::pair< DTHVStatus *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< DTHVStatus > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef DTHVStatus | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< DTHVStatus > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< DTHVStatus > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Description: Class to copy HV status via PopCon
Definition at line 41 of file DTHVStatusHandler.h.
|
private |
Definition at line 62 of file DTHVStatusHandler.h.
Definition at line 61 of file DTHVStatusHandler.h.
DTHVStatusHandler::DTHVStatusHandler | ( | const edm::ParameterSet & | ps | ) |
Constructor
Definition at line 52 of file DTHVStatusHandler.cc.
References gather_cfg::cout, DTHVAbstractCheck::getInstance(), hvChecker, maxPayload, and onlineAuthentication.
|
override |
|
private |
Definition at line 862 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), officialStyle::chan, checkStatusChange(), condTime(), coralTime(), gather_cfg::cout, reco::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 223 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 1203 of file DTHVStatusHandler.cc.
References aliasMap, DTHVAbstractCheck::checkCurrentStatus(), DTHVAbstractCheck::compare(), gather_cfg::cout, getLayerValues(), hvChecker, layerId(), layerMap, snapshotValues, and DTWireId::wire().
Referenced by checkForPeriod().
|
staticprivate |
Definition at line 1391 of file DTHVStatusHandler.cc.
Referenced by checkForPeriod(), getNewObjects(), and recoverLastTime().
|
staticprivate |
Definition at line 1398 of file DTHVStatusHandler.cc.
|
private |
Definition at line 993 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 1383 of file DTHVStatusHandler.cc.
Referenced by checkForPeriod(), checkNewData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 560 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, mps_splice::entry, DTLayerId::layer(), cond::persistency::Session::nominalSchema(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by checkNewData().
|
private |
Definition at line 430 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, reco::dp, layerMap, cond::persistency::Session::nominalSchema(), omds_session, DetId::rawId(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelMap().
|
private |
Definition at line 782 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, mps_splice::entry, DTLayerId::layer(), cond::persistency::Session::nominalSchema(), cmsPerfSuiteHarvest::now, DTChamberId::sector(), snapshotValues, DTChamberId::station(), AlCaHLTBitMon_QueryRunRegistry::string, DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by updateHVStatus().
|
private |
Definition at line 1287 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), gather_cfg::cout, mps_update::diff, SoftLeptonByDistance_cfi::distance, DTHVStatus::end(), mps_splice::entry, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, DTLinearDriftAlgo_cfi::maxTime, GetRecoTauVFromDQM_MC_cff::next, switchOff, and tmpContainer.
Referenced by copyHVData().
|
private |
Definition at line 285 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 358 of file DTHVStatusHandler.cc.
References channelSplit, gather_cfg::cout, cond::persistency::Session::nominalSchema(), DetId::rawId(), splitVersion, AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 313 of file DTHVStatusHandler.cc.
References gather_cfg::cout, laySplit, mapVersion, cond::persistency::Session::nominalSchema(), AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 1101 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 97 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, DTHVStatusData::flagA, DTHVStatusData::flagC, DTHVStatusData::flagS, hSince, hUntil, hvChecker, id(), plotBeamSpotDB::last, lastFound, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< DTHVStatus >::lastPayload(), lastStamp, layerId(), layerMap, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, mSince, mUntil, nextFound, cmsPerfSuiteHarvest::now, omds_session, onlineAuthentication, onlineConnect, jetCorrFactors_cfi::payload, procSince, procUntil, pSince, pUntil, DTHVStatusId::sectorId, cond::persistency::ConnectionPool::setAuthenticationPath(), DTHVAbstractCheck::setStatus(), snapshotValues, sSince, cond::persistency::Transaction::start(), DTHVStatusId::stationId, sUntil, popcon::PopConSourceHandler< DTHVStatus >::tagInfo(), timeLimit, cond::persistency::Session::transaction(), util_session, DTHVStatusId::wheelId, ySince, and yUntil.
|
overridevirtual |
Implements popcon::PopConSourceHandler< DTHVStatus >.
Definition at line 280 of file DTHVStatusHandler.cc.
Referenced by getNewObjects().
|
staticprivate |
Definition at line 1371 of file DTHVStatusHandler.cc.
References DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), and DTChamberId::wheel().
Referenced by checkStatusChange(), getLayerValues(), getNewObjects(), and offlineList().
|
private |
Definition at line 1025 of file DTHVStatusHandler.cc.
References DTHVAbstractCheck::flag::a, aliasMap, DTHVAbstractCheck::flag::c, channelSplit, DTHVAbstractCheck::checkCurrentStatus(), dataTag, RemoveAddSevLevel::flag, getLayerValues(), AnalysisDataFormats_SUSYBSMObjects::hv, hvChecker, DTLayerId::layer(), layerId(), layerMap, DetId::rawId(), DTHVAbstractCheck::flag::s, DTChamberId::sector(), setChannelFlag(), snapshotValues, DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by checkForPeriod(), and copyHVData().
|
private |
Definition at line 756 of file DTHVStatusHandler.cc.
References condTime(), mps_splice::entry, and snapshotValues.
Referenced by updateHVStatus().
|
private |
Definition at line 711 of file DTHVStatusHandler.cc.
References buff_session, gather_cfg::cout, layerMap, cond::persistency::Session::nominalSchema(), DetId::rawId(), snapshotValues, ntuplemaker::time, and relativeConstraints::value.
Referenced by updateHVStatus().
|
private |
Definition at line 1171 of file DTHVStatusHandler.cc.
References DTHVAbstractCheck::flag::a, DTHVAbstractCheck::flag::c, DTHVStatus::get(), laySplit, DetId::rawId(), DTHVAbstractCheck::flag::s, and DTHVStatus::set().
Referenced by offlineList().
|
private |
Definition at line 658 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 140 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), createSnapshot(), dumpHVAliases(), dumpSnapshot(), getChannelMap(), getNewObjects(), and offlineList().
|
private |
Definition at line 136 of file DTHVStatusHandler.h.
Referenced by checkNewData(), createSnapshot(), dumpHVAliases(), dumpSnapshot(), getChannelMap(), getNewObjects(), and recoverSnapshot().
|
private |
Definition at line 102 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 119 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 143 of file DTHVStatusHandler.h.
Referenced by getChannelSplit(), and offlineList().
|
private |
Definition at line 98 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and offlineList().
|
private |
Definition at line 107 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 118 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 117 of file DTHVStatusHandler.h.
Referenced by updateHVStatus().
|
private |
Definition at line 113 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 120 of file DTHVStatusHandler.h.
Referenced by copyHVData().
|
private |
Definition at line 108 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 114 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 124 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), DTHVStatusHandler(), getNewObjects(), and offlineList().
|
private |
Definition at line 128 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), copyHVData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 131 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 103 of file DTHVStatusHandler.h.
Referenced by copyHVData().
|
private |
Definition at line 141 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), dumpHVAliases(), getChannelMap(), getLayerValues(), getNewObjects(), offlineList(), and recoverSnapshot().
|
private |
Definition at line 142 of file DTHVStatusHandler.h.
Referenced by getLayerSplit(), and setChannelFlag().
|
private |
Definition at line 138 of file DTHVStatusHandler.h.
Referenced by getLayerSplit().
|
private |
Definition at line 132 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), copyHVData(), and DTHVStatusHandler().
|
private |
Definition at line 121 of file DTHVStatusHandler.h.
Referenced by checkForPeriod().
|
private |
Definition at line 106 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 112 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 129 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 134 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkNewData(), dumpHVAliases(), and getNewObjects().
|
private |
Definition at line 101 of file DTHVStatusHandler.h.
Referenced by DTHVStatusHandler(), and getNewObjects().
|
private |
Definition at line 99 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 126 of file DTHVStatusHandler.h.
Referenced by checkNewData(), copyHVData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 127 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkNewData(), copyHVData(), and getNewObjects().
|
private |
Definition at line 109 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 115 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 123 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), checkStatusChange(), dumpSnapshot(), getLayerValues(), getNewObjects(), offlineList(), recoverLastTime(), and recoverSnapshot().
|
private |
Definition at line 139 of file DTHVStatusHandler.h.
Referenced by getChannelSplit().
|
private |
Definition at line 110 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 116 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 145 of file DTHVStatusHandler.h.
Referenced by copyHVData(), and filterData().
|
private |
Definition at line 130 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and getNewObjects().
|
private |
Definition at line 144 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and filterData().
|
private |
Definition at line 135 of file DTHVStatusHandler.h.
Referenced by checkNewData(), getChannelSplit(), getLayerSplit(), and getNewObjects().
|
private |
Definition at line 100 of file DTHVStatusHandler.h.
|
private |
Definition at line 105 of file DTHVStatusHandler.h.
Referenced by getNewObjects(), and updateHVStatus().
|
private |
Definition at line 111 of file DTHVStatusHandler.h.
Referenced by getNewObjects().