#include <EcalLaserHandler.h>
Public Attributes | |
EcalCondDBInterface * | econn |
Private Attributes | |
bool | m_debug |
bool | m_fake |
std::string | m_maxtime |
std::string | m_name |
std::string | m_pass |
unsigned long | m_sequences |
std::string | m_sid |
std::string | m_user |
const EcalLaserAPDPNRatios * | myapdpns |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< EcalLaserAPDPNRatios > | |
typedef std::vector< Triplet > | Container |
typedef std::vector< std::pair< EcalLaserAPDPNRatios *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< EcalLaserAPDPNRatios > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef EcalLaserAPDPNRatios | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< EcalLaserAPDPNRatios > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< EcalLaserAPDPNRatios > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Definition at line 55 of file EcalLaserHandler.h.
|
override |
Definition at line 37 of file EcalLaserHandler.cc.
popcon::EcalLaserHandler::EcalLaserHandler | ( | edm::ParameterSet const & | ) |
Definition at line 13 of file EcalLaserHandler.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), m_debug, m_fake, m_maxtime, m_pass, m_sequences, m_sid, m_user, and AlCaHLTBitMon_QueryRunRegistry::string.
bool popcon::EcalLaserHandler::checkAPDPN | ( | const EcalLaserAPDPNRatios::EcalLaserAPDPNpair & | old, |
const EcalLaserAPDPNRatios::EcalLaserAPDPNpair & | current, | ||
int | hashedIndex | ||
) |
Definition at line 63 of file EcalLaserHandler.cc.
References diff(), notifyProblems(), EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, and EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3.
Referenced by checkAPDPNs().
bool popcon::EcalLaserHandler::checkAPDPNs | ( | const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap & | laserMap, |
const EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap & | apdpns_popcon | ||
) |
Definition at line 82 of file EcalLaserHandler.cc.
References EcalCondObjectContainer< T >::barrel(), checkAPDPN(), EcalCondObjectContainer< T >::endcap(), and ecalpyutils::hashedIndex().
double popcon::EcalLaserHandler::diff | ( | float | x, |
float | old_x | ||
) |
Definition at line 42 of file EcalLaserHandler.cc.
References a, and funct::abs().
Referenced by checkAPDPN().
void popcon::EcalLaserHandler::dumpBarrelPayload | ( | EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const & | laserMap | ) |
Definition at line 98 of file EcalLaserHandler.cc.
References EcalCondObjectContainer< T >::barrelItems(), EnergyCorrector::c, MessageLogger_cfi::cerr, gather_cfg::cout, MillePedeFileConverter_cfg::e, econn, Exception, alignBH_cfg::fixed, EcalCondDBInterface::getEcalLogicID(), mps_fire::i, EBDetId::ieta(), EBDetId::iphi(), m_pass, m_sid, m_user, EcalLogicID::NULLID, and EBDetId::unhashIndex().
Referenced by getNewObjects().
void popcon::EcalLaserHandler::dumpEndcapPayload | ( | EcalLaserAPDPNRatios::EcalLaserAPDPNRatiosMap const & | laserMap | ) |
Definition at line 126 of file EcalLaserHandler.cc.
References EnergyCorrector::c, MessageLogger_cfi::cerr, gather_cfg::cout, MillePedeFileConverter_cfg::e, econn, EcalCondObjectContainer< T >::endcapItems(), Exception, alignBH_cfg::fixed, EcalCondDBInterface::getEcalLogicID(), mps_fire::i, EEDetId::ix(), EEDetId::iy(), m_pass, m_sid, m_user, EEDetId::unhashIndex(), and EEDetId::zside().
Referenced by getNewObjects().
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.
Definition at line 154 of file EcalLaserHandler.cc.
References MessageLogger_cfi::cerr, Tm::cmsNanoSeconds(), KineDebug3::count(), gather_cfg::cout, edmIntegrityCheck::d, data, LMFCorrCoefDat::debug(), dumpBarrelPayload(), dumpEndcapPayload(), MillePedeFileConverter_cfg::e, econn, Exception, LMFCorrCoefDat::getCorrections(), EcalCondDBInterface::getEcalLogicID2LmrMap(), EcalCondDBInterface::getEcalLogicIDSetOrdered(), ecalpyutils::hashedIndex(), mps_fire::i, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< EcalLaserAPDPNRatios >::lastPayload(), m_debug, m_fake, m_maxtime, m_name, m_pass, m_sequences, m_sid, popcon::PopConSourceHandler< EcalLaserAPDPNRatios >::m_to_transfer, m_user, Tm::microsTime(), EcalLogicID::NULLID, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, jets_cff::payload, EcalLaserAPDPNRatios::setTime(), Tm::setToCurrentLocalTime(), Tm::setToString(), EcalLaserAPDPNRatios::setValue(), cond::TagInfo_t::size, EcalCondObjectContainer< T >::size(), Tm::str(), EcalLaserAPDPNRatios::EcalLaserTimeStamp::t1, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t2, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t3, popcon::PopConSourceHandler< EcalLaserAPDPNRatios >::tagInfo(), cond::timestamp, tmax, and edm::Timestamp::value().
|
inlineoverridevirtual |
Implements popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.
Definition at line 65 of file EcalLaserHandler.h.
References ecalpyutils::hashedIndex(), and AlCaHLTBitMon_QueryRunRegistry::string.
void popcon::EcalLaserHandler::notifyProblems | ( | const EcalLaserAPDPNRatios::EcalLaserAPDPNpair & | old, |
const EcalLaserAPDPNRatios::EcalLaserAPDPNpair & | current, | ||
int | hashedIndex, | ||
const std::string & | reason | ||
) |
Definition at line 46 of file EcalLaserHandler.cc.
References gather_cfg::cout, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, EBDetId::unhashIndex(), and EEDetId::unhashIndex().
Referenced by checkAPDPN().
EcalCondDBInterface* popcon::EcalLaserHandler::econn |
Definition at line 64 of file EcalLaserHandler.h.
Referenced by dumpBarrelPayload(), dumpEndcapPayload(), and getNewObjects().
|
private |
Definition at line 86 of file EcalLaserHandler.h.
Referenced by EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 87 of file EcalLaserHandler.h.
Referenced by EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 85 of file EcalLaserHandler.h.
Referenced by EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 84 of file EcalLaserHandler.h.
Referenced by getNewObjects().
|
private |
Definition at line 83 of file EcalLaserHandler.h.
Referenced by dumpBarrelPayload(), dumpEndcapPayload(), EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 80 of file EcalLaserHandler.h.
Referenced by EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 81 of file EcalLaserHandler.h.
Referenced by dumpBarrelPayload(), dumpEndcapPayload(), EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 82 of file EcalLaserHandler.h.
Referenced by dumpBarrelPayload(), dumpEndcapPayload(), EcalLaserHandler(), and getNewObjects().
|
private |
Definition at line 79 of file EcalLaserHandler.h.