#include <DTHVStatusHandler.h>
Public Member Functions | |
DTHVStatusHandler (const edm::ParameterSet &ps) | |
void | getNewObjects () |
std::string | id () const |
virtual | ~DTHVStatusHandler () |
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) |
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 53 of file DTHVStatusHandler.cc.
References gather_cfg::cout, DTHVAbstractCheck::getInstance(), hvChecker, maxPayload, and onlineAuthentication.
|
virtual |
|
private |
Definition at line 878 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), checkStatusChange(), condTime(), cont, coralTime(), gather_cfg::cout, DTHVStatus::end(), lastFound, lastStamp, maxPayload, minTime, nextFound, cond::DbSession::nominalSchema(), offlineList(), omds_session, procUntil, snapshotValues, timeLimit, and tmpContainer.
Referenced by copyHVData(), and updateHVStatus().
|
private |
Definition at line 239 of file DTHVStatusHandler.cc.
References buff_session, coralTime(), gather_cfg::cout, createSnapshot(), getChannelMap(), getChannelSplit(), getLayerSplit(), cond::DbSession::nominalSchema(), omds_session, procSince, procUntil, AlCaHLTBitMon_QueryRunRegistry::string, updateHVStatus(), and util_session.
Referenced by getNewObjects().
|
private |
Definition at line 1219 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 1407 of file DTHVStatusHandler.cc.
Referenced by checkForPeriod(), getNewObjects(), and recoverLastTime().
|
staticprivate |
Definition at line 1414 of file DTHVStatusHandler.cc.
|
private |
Definition at line 1009 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 1399 of file DTHVStatusHandler.cc.
Referenced by checkForPeriod(), checkNewData(), getNewObjects(), and updateHVStatus().
|
private |
Definition at line 576 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, getDQMSummary::iter, DTLayerId::layer(), cond::DbSession::nominalSchema(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by checkNewData().
|
private |
Definition at line 446 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, layerMap, cond::DbSession::nominalSchema(), omds_session, DetId::rawId(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getChannelMap().
|
private |
Definition at line 798 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, DTLayerId::layer(), cond::DbSession::nominalSchema(), fileCollector::now, DTChamberId::sector(), snapshotValues, DTChamberId::station(), AlCaHLTBitMon_QueryRunRegistry::string, DTSuperLayerId::superLayer(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by updateHVStatus().
|
private |
Definition at line 1303 of file DTHVStatusHandler.cc.
References DTHVStatus::begin(), gather_cfg::cout, diffTreeTool::diff, DTHVStatus::end(), getDQMSummary::iter, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, GetRecoTauVFromDQM_MC_cff::next, switchOff, and tmpContainer.
Referenced by copyHVData().
|
private |
Definition at line 301 of file DTHVStatusHandler.cc.
References aliasMap, buff_session, gather_cfg::cout, dumpHVAliases(), layerMap, and cond::DbSession::nominalSchema().
Referenced by checkNewData().
|
private |
Definition at line 374 of file DTHVStatusHandler.cc.
References channelSplit, gather_cfg::cout, getDQMSummary::iter, cond::DbSession::nominalSchema(), DetId::rawId(), splitVersion, AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 329 of file DTHVStatusHandler.cc.
References gather_cfg::cout, laySplit, mapVersion, cond::DbSession::nominalSchema(), AlCaHLTBitMon_QueryRunRegistry::string, and util_session.
Referenced by checkNewData().
|
private |
Definition at line 1117 of file DTHVStatusHandler.cc.
References gather_cfg::cout, layerId(), layerMap, DetId::rawId(), and snapshotValues.
Referenced by checkStatusChange(), and offlineList().
|
virtual |
Operations
Implements popcon::PopConSourceHandler< DTHVStatus >.
Definition at line 101 of file DTHVStatusHandler.cc.
References aliasMap, buff_conn, buff_session, bufferConnect, checkNewData(), cond::DbSession::close(), cond::DbTransaction::commit(), condTime(), cond::DbConnection::configuration(), cond::DbConnection::configure(), coralTime(), gather_cfg::cout, cond::DbConnection::createSession(), data, dataTag, dSince, dUntil, DTHVStatusData::flagA, DTHVStatusData::flagC, DTHVStatusData::flagS, hSince, hUntil, hvChecker, id(), prof2calltree::last, lastFound, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< DTHVStatus >::lastPayload(), lastStamp, layerId(), layerMap, popcon::PopConSourceHandler< DTHVStatus >::m_to_transfer, mSince, mUntil, nextFound, fileCollector::now, omds_conn, omds_session, onlineAuthentication, onlineConnect, cond::DbSession::open(), procSince, procUntil, pSince, pUntil, DTHVStatusId::sectorId, cond::DbConnectionConfiguration::setAuthenticationPath(), DTHVAbstractCheck::setStatus(), snapshotValues, sSince, cond::DbTransaction::start(), DTHVStatusId::stationId, sUntil, popcon::PopConSourceHandler< DTHVStatus >::tagInfo(), timeLimit, cond::DbSession::transaction(), util_conn, util_session, DTHVStatusId::wheelId, ySince, and yUntil.
|
virtual |
Implements popcon::PopConSourceHandler< DTHVStatus >.
Definition at line 296 of file DTHVStatusHandler.cc.
Referenced by getNewObjects().
|
staticprivate |
Definition at line 1387 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 1041 of file DTHVStatusHandler.cc.
References DTHVAbstractCheck::flag::a, aliasMap, DTHVAbstractCheck::flag::c, channelSplit, DTHVAbstractCheck::checkCurrentStatus(), dataTag, archive::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 772 of file DTHVStatusHandler.cc.
References condTime(), and snapshotValues.
Referenced by updateHVStatus().
|
private |
Definition at line 727 of file DTHVStatusHandler.cc.
References buff_session, gather_cfg::cout, layerMap, cond::DbSession::nominalSchema(), DetId::rawId(), snapshotValues, cond::rpcobgas::time, and relativeConstraints::value.
Referenced by updateHVStatus().
|
private |
Definition at line 1187 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 674 of file DTHVStatusHandler.cc.
References bwdTime, checkForPeriod(), copyHVData(), coralTime(), gather_cfg::cout, dSince, dumpAtEnd, dumpAtStart, dumpSnapshot(), lastFound, mSince, procSince, recoverLastTime(), recoverSnapshot(), and ySince.
Referenced by checkNewData().
|
private |
Definition at line 143 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 getNewObjects().
|
private |
Definition at line 139 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 146 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 144 of file DTHVStatusHandler.h.
Referenced by checkStatusChange(), dumpHVAliases(), getChannelMap(), getLayerValues(), getNewObjects(), offlineList(), and recoverSnapshot().
|
private |
Definition at line 145 of file DTHVStatusHandler.h.
Referenced by getLayerSplit(), and setChannelFlag().
|
private |
Definition at line 141 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 getNewObjects().
|
private |
Definition at line 137 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 142 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 148 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 147 of file DTHVStatusHandler.h.
Referenced by checkForPeriod(), and filterData().
|
private |
Definition at line 135 of file DTHVStatusHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 138 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().