#include <EcalDCSHandler.h>
Public Member Functions | |
int | detIDToLogicID (int, int, int) |
EcalDCSHandler (edm::ParameterSet const &) | |
void | getNewObjects () |
int * | HVEELogicIDToDetID (int, int) const |
int * | HVLogicIDToDetID (int, int) const |
std::string | id () const |
bool | insertHVDataSetToOffline (const std::map< EcalLogicID, RunDCSHVDat > *dataset, EcalDCSTowerStatus *dcs_temp) const |
bool | insertLVDataSetToOffline (const std::map< EcalLogicID, RunDCSLVDat > *dataset, EcalDCSTowerStatus *dcs_temp, const std::vector< EcalLogicID > &) const |
int * | LVLogicIDToDetID (int, int) const |
uint16_t | OffDBStatus (uint16_t dbStatus, int pos) |
void | printHVDataSet (const std::map< EcalLogicID, RunDCSHVDat > *dataset, int) const |
void | printLVDataSet (const std::map< EcalLogicID, RunDCSLVDat > *dataset, int) const |
uint16_t | updateHV (RunDCSHVDat *hv, uint16_t dbStatus, int modo=0) const |
uint16_t | updateLV (RunDCSLVDat *lv, uint16_t dbStatus) const |
~EcalDCSHandler () | |
Public Member Functions inherited from popcon::PopConSourceHandler< EcalDCSTowerStatus > | |
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 () |
Public Attributes | |
EcalCondDBInterface * | econn |
Private Attributes | |
unsigned long | m_firstRun |
unsigned long | m_lastRun |
std::string | m_name |
std::string | m_pass |
std::string | m_sid |
std::string | m_user |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< EcalDCSTowerStatus > | |
typedef std::vector< Triplet > | Container |
typedef std::vector< std::pair< EcalDCSTowerStatus *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< EcalDCSTowerStatus > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef EcalDCSTowerStatus | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< EcalDCSTowerStatus > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< EcalDCSTowerStatus > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Definition at line 52 of file EcalDCSHandler.h.
popcon::EcalDCSHandler::EcalDCSHandler | ( | edm::ParameterSet const & | ) |
Definition at line 11 of file EcalDCSHandler.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), m_firstRun, m_lastRun, m_pass, m_sid, m_user, and AlCaHLTBitMon_QueryRunRegistry::string.
popcon::EcalDCSHandler::~EcalDCSHandler | ( | ) |
Definition at line 26 of file EcalDCSHandler.cc.
int popcon::EcalDCSHandler::detIDToLogicID | ( | int | iz, |
int | i, | ||
int | j | ||
) |
Definition at line 324 of file EcalDCSHandler.cc.
|
virtual |
Implements popcon::PopConSourceHandler< EcalDCSTowerStatus >.
Definition at line 626 of file EcalDCSHandler.cc.
References gather_cfg::cout, createfilelist::dataset, EcalBarrel, econn, Exception, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchValidDataSet(), EcalCondDBInterface::getEcalLogicIDSetOrdered(), RunIOV::getRunNumber(), EcalTrigTowerDetId::hashedIndex(), mps_fire::i, insertHVDataSetToOffline(), insertLVDataSetToOffline(), gen::k, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< EcalDCSTowerStatus >::lastPayload(), m_pass, m_sid, popcon::PopConSourceHandler< EcalDCSTowerStatus >::m_to_transfer, m_user, popcon::PopConSourceHandler< EcalDCSTowerStatus >::m_userTextLog, NULL, EcalLogicID::NULLID, printHVDataSet(), printLVDataSet(), alignCSCRings::r, DetId::rawId(), lumiCalc2::runmax, EcalCondTowerObjectContainer< T >::setValue(), findQualityFiles::size, AlCaHLTBitMon_QueryRunRegistry::string, popcon::PopConSourceHandler< EcalDCSTowerStatus >::tagInfo(), EcalTrigTowerDetId::validDetId(), and EcalScDetId::validDetId().
int * popcon::EcalDCSHandler::HVEELogicIDToDetID | ( | int | dee, |
int | chan | ||
) | const |
Definition at line 355 of file EcalDCSHandler.cc.
References mps_fire::result.
Referenced by insertHVDataSetToOffline().
int * popcon::EcalDCSHandler::HVLogicIDToDetID | ( | int | sm, |
int | chan | ||
) | const |
Definition at line 400 of file EcalDCSHandler.cc.
References mps_fire::result.
Referenced by insertHVDataSetToOffline().
|
inlinevirtual |
Implements popcon::PopConSourceHandler< EcalDCSTowerStatus >.
Definition at line 66 of file EcalDCSHandler.h.
bool popcon::EcalDCSHandler::insertHVDataSetToOffline | ( | const std::map< EcalLogicID, RunDCSHVDat > * | dataset, |
EcalDCSTowerStatus * | dcs_temp | ||
) | const |
Definition at line 162 of file EcalDCSHandler.cc.
References officialStyle::chan, gather_cfg::cout, EcalBarrel, EcalCondTowerObjectContainer< T >::end(), EcalCondTowerObjectContainer< T >::find(), RunDCSHVDat::getHV(), RunDCSHVDat::getHVNominal(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getName(), AnalysisDataFormats_SUSYBSMObjects::hv, HVEELogicIDToDetID(), HVLogicIDToDetID(), checklumidiff::l, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), mps_fire::result, EcalCondTowerObjectContainer< T >::setValue(), updateHV(), EcalTrigTowerDetId::validDetId(), and EcalScDetId::validDetId().
Referenced by getNewObjects().
bool popcon::EcalDCSHandler::insertLVDataSetToOffline | ( | const std::map< EcalLogicID, RunDCSLVDat > * | dataset, |
EcalDCSTowerStatus * | dcs_temp, | ||
const std::vector< EcalLogicID > & | my_EELVchan | ||
) | const |
Definition at line 504 of file EcalDCSHandler.cc.
References officialStyle::chan, gather_cfg::cout, EcalBarrel, EcalCondTowerObjectContainer< T >::end(), EcalCondTowerObjectContainer< T >::find(), EcalLogicID::getID1(), EcalLogicID::getID2(), RunDCSLVDat::getLV(), RunDCSLVDat::getLVNominal(), EcalLogicID::getName(), createfilelist::int, LVLogicIDToDetID(), gen::n, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), mps_fire::result, EcalCondTowerObjectContainer< T >::setValue(), updateLV(), EcalTrigTowerDetId::validDetId(), and EcalScDetId::validDetId().
Referenced by getNewObjects().
int * popcon::EcalDCSHandler::LVLogicIDToDetID | ( | int | sm, |
int | chan | ||
) | const |
Definition at line 444 of file EcalDCSHandler.cc.
References officialStyle::chan, and mps_fire::result.
Referenced by insertLVDataSetToOffline().
uint16_t popcon::EcalDCSHandler::OffDBStatus | ( | uint16_t | dbStatus, |
int | pos | ||
) |
Definition at line 86 of file EcalDCSHandler.cc.
void popcon::EcalDCSHandler::printHVDataSet | ( | const std::map< EcalLogicID, RunDCSHVDat > * | dataset, |
int | limit = 0 |
||
) | const |
Definition at line 30 of file EcalDCSHandler.cc.
References KineDebug3::count(), gather_cfg::cout, RunDCSHVDat::getHV(), RunDCSHVDat::getHVNominal(), EcalLogicID::getID1(), EcalLogicID::getID2(), RunDCSHVDat::getStatus(), AnalysisDataFormats_SUSYBSMObjects::hv, MessageLogger_cfi::limit, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getNewObjects().
void popcon::EcalDCSHandler::printLVDataSet | ( | const std::map< EcalLogicID, RunDCSLVDat > * | dataset, |
int | limit = 0 |
||
) | const |
Definition at line 58 of file EcalDCSHandler.cc.
References KineDebug3::count(), gather_cfg::cout, EcalLogicID::getID1(), EcalLogicID::getID2(), RunDCSLVDat::getLV(), RunDCSLVDat::getLVNominal(), RunDCSLVDat::getStatus(), MessageLogger_cfi::limit, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getNewObjects().
uint16_t popcon::EcalDCSHandler::updateHV | ( | RunDCSHVDat * | hv, |
uint16_t | dbStatus, | ||
int | modo = 0 |
||
) | const |
Definition at line 92 of file EcalDCSHandler.cc.
References RunDCSHVDat::getStatus(), EcalDCSTowerStatusHelper::HVEEDNOMINALSTATUS, EcalDCSTowerStatusHelper::HVEEDSTATUS, EcalDCSTowerStatusHelper::HVNOMINALSTATUS, RunDCSHVDat::HVNOTNOMINAL, RunDCSHVDat::HVOFF, EcalDCSTowerStatusHelper::HVSTATUS, mps_fire::i, mps_fire::result, and groupFilesInBlocks::temp.
Referenced by insertHVDataSetToOffline().
uint16_t popcon::EcalDCSHandler::updateLV | ( | RunDCSLVDat * | lv, |
uint16_t | dbStatus | ||
) | const |
Definition at line 132 of file EcalDCSHandler.cc.
References RunDCSLVDat::getStatus(), mps_fire::i, EcalDCSTowerStatusHelper::LVNOMINALSTATUS, RunDCSLVDat::LVNOTNOMINAL, RunDCSLVDat::LVOFF, EcalDCSTowerStatusHelper::LVSTATUS, mps_fire::result, and groupFilesInBlocks::temp.
Referenced by insertLVDataSetToOffline().
EcalCondDBInterface* popcon::EcalDCSHandler::econn |
Definition at line 67 of file EcalDCSHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 78 of file EcalDCSHandler.h.
Referenced by EcalDCSHandler().
|
private |
Definition at line 79 of file EcalDCSHandler.h.
Referenced by EcalDCSHandler().
|
private |
Definition at line 84 of file EcalDCSHandler.h.
|
private |
Definition at line 83 of file EcalDCSHandler.h.
Referenced by EcalDCSHandler(), and getNewObjects().
|
private |
Definition at line 81 of file EcalDCSHandler.h.
Referenced by EcalDCSHandler(), and getNewObjects().
|
private |
Definition at line 82 of file EcalDCSHandler.h.
Referenced by EcalDCSHandler(), and getNewObjects().