#include <RecoLuminosity/LumiProducer/src/LumiCorrectionSource.cc>
Public Types | |
typedef std::shared_ptr< const LumiCorrectionParam > | ReturnParamType |
Protected Member Functions | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
Protected Member Functions inherited from edm::ESProducer | |
ESConsumesInfo * | consumesInfoPushBackNew () |
unsigned int | consumesInfoSize () const |
template<typename CallbackT , typename TList , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
template<typename CallbackT , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord > | |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord , typename TDecorator > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename TFunc > | |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
void | usesResources (std::vector< std::string > const &) |
Protected Member Functions inherited from edm::ESProductResolverFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder | |
template<class T > | |
void | findingRecord () |
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
Private Member Functions | |
float | fetchIntglumi (coral::ISchema &schema, unsigned int runnumber) |
void | fillparamcache (unsigned int runnumber) |
void | parseGlobaltagForLumi (coral::ISchema &schema, const std::string &globaltag) |
void | reloadAuth () |
XMLCh * | s2x (const std::string &input) const |
const std::string | servletTranslation (const std::string &servlet) const |
std::string | toParentString (const xercesc::DOMNode &nodeToConvert) const |
std::string | translateFrontierConnect (const std::string &connectStr) |
std::string | x2s (const XMLCh *input) const |
Private Attributes | |
std::string | m_authfilename |
unsigned int | m_cachesize |
std::string | m_connectStr |
std::string | m_datatag |
std::string | m_globaltag |
bool | m_isNullRun |
std::string | m_normtag |
std::map< unsigned int, std::shared_ptr< const LumiCorrectionParam > > | m_paramcache |
unsigned int | m_paramcachedrun |
std::shared_ptr< const LumiCorrectionParam > | m_paramresult |
const edm::IOVSyncValue * | m_pcurrentTime |
std::string | m_siteconfpath |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Types inherited from edm::ESProductResolverFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::ESProductResolverProvider | |
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
retrieve lumi corrections and perrun parameters needed by the correction funcs
Description: A essource/esproducer for lumi correction factor and run parameters needed to deduce the corrections Author: Zhen Xie
Definition at line 25 of file LumiCorrectionSource.h.
typedef std::shared_ptr<const LumiCorrectionParam> LumiCorrectionSource::ReturnParamType |
Definition at line 28 of file LumiCorrectionSource.h.
LumiCorrectionSource::LumiCorrectionSource | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 170 of file LumiCorrectionSource.cc.
References EcalCondDB::authpath, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), download_sqlite_cfg::globaltag, m_authfilename, m_cachesize, m_connectStr, m_datatag, m_globaltag, m_normtag, m_siteconfpath, EnsembleCalibrationLA_cfg::path, produceLumiCorrectionParam(), edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, and translateFrontierConnect().
|
override |
Definition at line 410 of file LumiCorrectionSource.cc.
|
private |
Definition at line 386 of file LumiCorrectionSource.cc.
References lumi::LumiNames::intglumiv2TableName(), mps_fire::result, cond::runnumber, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fillparamcache().
|
private |
Definition at line 242 of file LumiCorrectionSource.cc.
References lumi::RevisionDML::currentHFDataTagId(), lumi::RevisionDML::dataIDForRun(), Exception, fetchIntglumi(), dqmdumpme::first, LumiCorrectionParam::HF, lumi::NormDML::HF, lumi::RevisionDML::HFDataTagIdByName(), instance, lumi::RevisionDML::DataID::lumi_id, cond::lumiid, m_authfilename, m_connectStr, m_datatag, m_globaltag, m_normtag, m_paramcache, m_paramcachedrun, eostools::move(), lumi::NormDML::normById(), lumi::NormDML::normIdByName(), lumi::NormDML::normIdByType(), parseGlobaltagForLumi(), reloadAuth(), mps_fire::result, cond::runnumber, run_AlCaRecoTriggerBitsUpdateWorkflow::session, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produceLumiCorrectionParam().
|
private |
select i.pfn,i.tagname from TAGINVENTORY_TABLE i,TAGTREE_TABLE_GLOBALTAG v from i.tagid=v.tagid and i.recordname='LumiCorrectionParamRcd'
Definition at line 354 of file LumiCorrectionSource.cc.
References download_sqlite_cfg::globaltag, m_connectStr, m_normtag, AlCaHLTBitMon_QueryRunRegistry::string, and translateFrontierConnect().
Referenced by fillparamcache().
LumiCorrectionSource::ReturnParamType LumiCorrectionSource::produceLumiCorrectionParam | ( | const LumiCorrectionParamRcd & | ) |
Definition at line 206 of file LumiCorrectionSource.cc.
References dqmiodumpmetadata::currentrun, edm::IOVSyncValue::eventID(), fillparamcache(), m_paramcache, m_paramcachedrun, m_paramresult, m_pcurrentTime, and edm::EventID::run().
Referenced by LumiCorrectionSource().
|
private |
Definition at line 236 of file LumiCorrectionSource.cc.
References instance, and m_authfilename.
Referenced by fillparamcache().
|
private |
Definition at line 72 of file LumiCorrectionSource.cc.
References make_classfiles::buff, and groupFilesInBlocks::temp.
Referenced by servletTranslation().
|
private |
Definition at line 101 of file LumiCorrectionSource.cc.
References ALCARECOEcalPhiSym_cff::doc, MillePedeFileConverter_cfg::e, m_siteconfpath, writedatasetfile::parser, s2x(), AlCaHLTBitMon_QueryRunRegistry::string, toParentString(), and cms::concurrency::xercesInitialize().
Referenced by translateFrontierConnect().
|
overrideprotectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 228 of file LumiCorrectionSource.cc.
References m_pcurrentTime, edm::ValidityInterval::setFirst(), and edm::ValidityInterval::setLast().
|
private |
Definition at line 77 of file LumiCorrectionSource.cc.
References mps_fire::i, dqmiolumiharvest::j, and x2s().
Referenced by servletTranslation().
|
private |
Definition at line 138 of file LumiCorrectionSource.cc.
References Exception, m_siteconfpath, EnsembleCalibrationLA_cfg::path, mps_fire::result, servletTranslation(), AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and relmon_authenticated_wget::url.
Referenced by LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 67 of file LumiCorrectionSource.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
Referenced by toParentString().
|
private |
Definition at line 47 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and reloadAuth().
|
private |
Definition at line 55 of file LumiCorrectionSource.h.
Referenced by LumiCorrectionSource().
|
private |
Definition at line 46 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 48 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and LumiCorrectionSource().
|
private |
Definition at line 49 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and LumiCorrectionSource().
|
private |
Definition at line 53 of file LumiCorrectionSource.h.
|
private |
Definition at line 50 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 52 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and produceLumiCorrectionParam().
|
private |
Definition at line 54 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and produceLumiCorrectionParam().
|
private |
Definition at line 56 of file LumiCorrectionSource.h.
Referenced by produceLumiCorrectionParam().
|
private |
Definition at line 57 of file LumiCorrectionSource.h.
Referenced by produceLumiCorrectionParam(), and setIntervalFor().
|
private |
Definition at line 51 of file LumiCorrectionSource.h.
Referenced by LumiCorrectionSource(), servletTranslation(), and translateFrontierConnect().