#include <EcalPedestalsHandler.h>
Public Attributes | |
EcalCondDBInterface * | econn |
Private Attributes | |
bool | m_corrected |
std::string | m_filename |
unsigned int | m_firstRun |
std::string | m_gentag |
unsigned int | m_lastRun |
std::string | m_location |
std::string | m_locationsource |
std::string | m_name |
std::string | m_pass |
std::string | m_runtag |
int | m_runtype |
std::string | m_sid |
std::string | m_user |
const EcalPedestals * | mypedestals |
Additional Inherited Members | |
Public Types inherited from popcon::PopConSourceHandler< EcalPedestals > | |
typedef std::vector< Triplet > | Container |
typedef std::vector< std::pair< EcalPedestals *, cond::Time_t > > | OldContainer |
typedef PopConSourceHandler< EcalPedestals > | self |
typedef cond::Summary | Summary |
typedef cond::Time_t | Time_t |
typedef EcalPedestals | value_type |
Protected Member Functions inherited from popcon::PopConSourceHandler< EcalPedestals > | |
int | add (value_type *payload, Summary *summary, Time_t time) |
cond::persistency::Session & | dbSession () const |
Protected Attributes inherited from popcon::PopConSourceHandler< EcalPedestals > | |
OldContainer | m_to_transfer |
std::string | m_userTextLog |
Definition at line 53 of file EcalPedestalsHandler.h.
popcon::EcalPedestalsHandler::EcalPedestalsHandler | ( | edm::ParameterSet const & | ) |
Definition at line 17 of file EcalPedestalsHandler.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_corrected, m_filename, m_firstRun, m_gentag, m_lastRun, m_location, m_locationsource, m_pass, m_runtag, m_runtype, m_sid, m_user, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 37 of file EcalPedestalsHandler.cc.
bool popcon::EcalPedestalsHandler::checkPedestal | ( | EcalPedestals::Item * | item | ) |
Definition at line 69 of file EcalPedestalsHandler.cc.
References EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, mps_fire::result, EcalPedestal::rms_x1, EcalPedestal::rms_x12, and EcalPedestal::rms_x6.
Referenced by getNewObjectsP5().
|
overridevirtual |
Implements popcon::PopConSourceHandler< EcalPedestals >.
Definition at line 40 of file EcalPedestalsHandler.cc.
References cmsRelvalreport::exit, getNewObjectsH2(), getNewObjectsP5(), m_locationsource, readPedestal2017(), readPedestalFile(), readPedestalMC(), readPedestalTimestamp(), and readPedestalTree().
void popcon::EcalPedestalsHandler::getNewObjectsH2 | ( | ) |
Definition at line 458 of file EcalPedestalsHandler.cc.
References gather_cfg::cout, econn, EcalCondObjectContainer< T >::endcap(), Exception, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunList(), EcalLogicID::getID2(), MonPedestalsDat::getPedMeanG1(), MonPedestalsDat::getPedMeanG12(), MonPedestalsDat::getPedMeanG6(), MonPedestalsDat::getPedRMSG1(), MonPedestalsDat::getPedRMSG12(), MonPedestalsDat::getPedRMSG6(), MonRunList::getRuns(), EEDetId::hashedIndex(), EcalCondObjectContainer< T >::insert(), cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< EcalPedestals >::lastPayload(), m_lastRun, m_pass, m_sid, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, m_user, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, RunTag::setGeneralTag(), MonRunTag::setGeneralTag(), LocationDef::setLocation(), RunTag::setLocationDef(), MonVersionDef::setMonitoringVersion(), MonRunList::setMonRunTag(), MonRunTag::setMonVersionDef(), MonRunList::setRunTag(), RunTypeDef::setRunType(), RunTag::setRunTypeDef(), popcon::PopConSourceHandler< EcalPedestals >::tagInfo(), and EEDetId::validDetId().
Referenced by getNewObjects().
void popcon::EcalPedestalsHandler::getNewObjectsP5 | ( | ) |
Definition at line 83 of file EcalPedestalsHandler.cc.
References EcalCondObjectContainer< T >::barrel(), checkPedestal(), gather_cfg::cout, econn, EcalCondObjectContainer< T >::endcap(), EBDetId::ETAPHIMODE, EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchMonRunList(), EcalLogicID::getID1(), EcalLogicID::getID2(), EcalLogicID::getID3(), EcalLogicID::getName(), MonPedestalsDat::getPedMeanG1(), MonPedestalsDat::getPedMeanG12(), MonPedestalsDat::getPedMeanG6(), MonPedestalsDat::getPedRMSG1(), MonPedestalsDat::getPedRMSG12(), MonPedestalsDat::getPedRMSG6(), MonRunList::getRuns(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EcalCondObjectContainer< T >::insert(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, cond::TagInfo_t::lastInterval, popcon::PopConSourceHandler< EcalPedestals >::lastPayload(), m_firstRun, m_gentag, m_lastRun, m_location, m_pass, m_runtag, m_sid, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, m_user, popcon::PopConSourceHandler< EcalPedestals >::m_userTextLog, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, min(), EBDetId::MIN_IPHI, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, RunTag::setGeneralTag(), MonRunTag::setGeneralTag(), LocationDef::setLocation(), RunTag::setLocationDef(), MonVersionDef::setMonitoringVersion(), MonRunList::setMonRunTag(), MonRunTag::setMonVersionDef(), MonRunList::setRunTag(), RunTypeDef::setRunType(), RunTag::setRunTypeDef(), EBDetId::SMCRYSTALMODE, popcon::PopConSourceHandler< EcalPedestals >::tagInfo(), EBDetId::validDetId(), EEDetId::validDetId(), and x.
Referenced by getNewObjects().
|
inlineoverridevirtual |
Implements popcon::PopConSourceHandler< EcalPedestals >.
Definition at line 67 of file EcalPedestalsHandler.h.
Referenced by readPedestalTimestamp(), and readPedestalTree().
void popcon::EcalPedestalsHandler::readPedestal2017 | ( | ) |
Definition at line 1036 of file EcalPedestalsHandler.cc.
References EcalCondObjectContainer< T >::barrel(), debug, EcalCondObjectContainer< T >::endcap(), EBDetId::ETAPHIMODE, cmsRelvalreport::exit, EBDetId::hashedIndex(), EEDetId::hashedIndex(), EcalCondObjectContainer< T >::insert(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, kEBChannels, kEEChannels, popcon::PopConSourceHandler< EcalPedestals >::lastPayload(), m_filename, m_firstRun, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, EBDetId::MIN_IPHI, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, EBDetId::validDetId(), and EEDetId::validDetId().
Referenced by getNewObjects().
void popcon::EcalPedestalsHandler::readPedestalFile | ( | ) |
Definition at line 666 of file EcalPedestalsHandler.cc.
References cmsRelvalreport::exit, EBDetId::hashedIndex(), EEDetId::hashedIndex(), EcalCondObjectContainer< T >::insert(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, kEBChannels, kEEChannels, m_filename, m_firstRun, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, EBDetId::MIN_IPHI, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, EBDetId::validDetId(), and EEDetId::validDetId().
Referenced by getNewObjects().
void popcon::EcalPedestalsHandler::readPedestalMC | ( | ) |
Definition at line 752 of file EcalPedestalsHandler.cc.
References funct::abs(), cmsRelvalreport::exit, groupFilesInBlocks::fout, muonCSCDigis_cfi::gain, gainValues, EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, EBDetId::ieta(), EcalCondObjectContainer< T >::insert(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, kEBChannels, kEEChannels, kGains, m_corrected, m_filename, m_firstRun, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, EBDetId::MIN_IPHI, diffTwoXMLs::r1, DetId::rawId(), relativeConstraints::ring, SiStripPI::rms, EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, EBDetId::unhashIndex(), EBDetId::validDetId(), EEDetId::validDetId(), and x.
Referenced by getNewObjects().
void popcon::EcalPedestalsHandler::readPedestalTimestamp | ( | ) |
Definition at line 1555 of file EcalPedestalsHandler.cc.
References funct::abs(), officialStyle::chan, debug, mps_splice::entry, cmsRelvalreport::exit, groupFilesInBlocks::fout, mps_fire::i, id(), EcalCondObjectContainer< T >::insert(), createfilelist::int, kChannels, kEBChannels, kEEChannels, csvLumiCalc::lumi, m_filename, m_firstRun, m_lastRun, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, Nbpedxml, muonCSCDigis_cfi::pedestal, diffTwoXMLs::r1, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, writedatasetfile::run, AlCaHLTBitMon_QueryRunRegistry::string, protons_cff::time, EBDetId::unhashIndex(), and EEDetId::unhashIndex().
Referenced by getNewObjects().
void popcon::EcalPedestalsHandler::readPedestalTree | ( | ) |
Definition at line 1205 of file EcalPedestalsHandler.cc.
References funct::abs(), officialStyle::chan, mps_splice::entry, cmsRelvalreport::exit, groupFilesInBlocks::fout, mps_fire::i, id(), EcalCondObjectContainer< T >::insert(), createfilelist::int, kChannels, kEBChannels, kEEChannels, csvLumiCalc::lumi, m_filename, m_firstRun, m_lastRun, m_runtype, popcon::PopConSourceHandler< EcalPedestals >::m_to_transfer, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, Nbpedxml, muonCSCDigis_cfi::pedestal, diffTwoXMLs::r1, DetId::rawId(), EcalPedestal::rms_x1, EcalPedestal::rms_x12, EcalPedestal::rms_x6, writedatasetfile::run, AlCaHLTBitMon_QueryRunRegistry::string, protons_cff::time, EBDetId::unhashIndex(), and EEDetId::unhashIndex().
Referenced by getNewObjects().
EcalCondDBInterface* popcon::EcalPedestalsHandler::econn |
Definition at line 68 of file EcalPedestalsHandler.h.
Referenced by getNewObjectsH2(), and getNewObjectsP5().
|
private |
Definition at line 86 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and readPedestalMC().
|
private |
Definition at line 84 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), readPedestal2017(), readPedestalFile(), readPedestalMC(), readPedestalTimestamp(), and readPedestalTree().
|
private |
Definition at line 73 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), getNewObjectsP5(), readPedestal2017(), readPedestalFile(), readPedestalMC(), readPedestalTimestamp(), and readPedestalTree().
|
private |
Definition at line 77 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and getNewObjectsP5().
|
private |
Definition at line 74 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), getNewObjectsH2(), getNewObjectsP5(), readPedestalTimestamp(), and readPedestalTree().
|
private |
Definition at line 76 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and getNewObjectsP5().
|
private |
Definition at line 82 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and getNewObjects().
|
private |
Definition at line 83 of file EcalPedestalsHandler.h.
|
private |
Definition at line 81 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), getNewObjectsH2(), and getNewObjectsP5().
|
private |
Definition at line 78 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and getNewObjectsP5().
|
private |
Definition at line 85 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), and readPedestalTree().
|
private |
Definition at line 79 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), getNewObjectsH2(), and getNewObjectsP5().
|
private |
Definition at line 80 of file EcalPedestalsHandler.h.
Referenced by EcalPedestalsHandler(), getNewObjectsH2(), and getNewObjectsP5().
|
private |
Definition at line 71 of file EcalPedestalsHandler.h.