#include <RecoLuminosity/LumiProducer/src/LumiCorrectionSource.cc>
Public Types | |
typedef boost::shared_ptr < LumiCorrectionParam > | ReturnParamType |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair < DataKey, edm::propagate_const < std::shared_ptr< DataProxy > > > > | KeyedProxies |
typedef std::vector < EventSetupRecordKey > | Keys |
typedef std::map < EventSetupRecordKey, KeyedProxies > | RecordProxies |
Protected Member Functions | |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
template<typename T > | |
void | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
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, boost::shared_ptr < LumiCorrectionParam > > | m_paramcache |
unsigned int | m_paramcachedrun |
boost::shared_ptr < LumiCorrectionParam > | m_paramresult |
const edm::IOVSyncValue * | m_pcurrentTime |
std::string | m_siteconfpath |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
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 boost::shared_ptr<LumiCorrectionParam> LumiCorrectionSource::ReturnParamType |
Definition at line 28 of file LumiCorrectionSource.h.
LumiCorrectionSource::LumiCorrectionSource | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 175 of file LumiCorrectionSource.cc.
References EcalCondDB::authpath, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), align_cfg::globaltag, m_authfilename, m_cachesize, m_connectStr, m_datatag, m_globaltag, m_normtag, m_siteconfpath, fed_dqm_sourceclient-live_cfg::path, produceLumiCorrectionParam(), edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, and translateFrontierConnect().
LumiCorrectionSource::~LumiCorrectionSource | ( | ) |
Definition at line 414 of file LumiCorrectionSource.cc.
|
private |
Definition at line 390 of file LumiCorrectionSource.cc.
References lumi::LumiNames::intglumiv2TableName(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fillparamcache().
|
private |
Definition at line 246 of file LumiCorrectionSource.cc.
References lumi::RevisionDML::currentHFDataTagId(), lumi::RevisionDML::dataIDForRun(), Exception, fetchIntglumi(), plotBeamSpotDB::first, LumiCorrectionParam::HF, lumi::NormDML::HF, lumi::RevisionDML::HFDataTagIdByName(), instance, normFunctors::intglumi, lumi::RevisionDML::DataID::lumi_id, cond::lumiid, m_authfilename, m_connectStr, m_datatag, m_globaltag, m_normtag, m_paramcache, m_paramcachedrun, lumi::NormDML::normById(), lumiCalc2::normid, lumi::NormDML::normIdByName(), lumi::NormDML::normIdByType(), parseGlobaltagForLumi(), reloadAuth(), mps_fire::result, cond::runnumber, dataDML::schema, models::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 357 of file LumiCorrectionSource.cc.
References m_connectStr, m_normtag, AlCaHLTBitMon_QueryRunRegistry::string, and translateFrontierConnect().
Referenced by fillparamcache().
LumiCorrectionSource::ReturnParamType LumiCorrectionSource::produceLumiCorrectionParam | ( | const LumiCorrectionParamRcd & | ) |
Definition at line 205 of file LumiCorrectionSource.cc.
References edm::IOVSyncValue::eventID(), fillparamcache(), m_paramcache, m_paramcachedrun, m_paramresult, m_pcurrentTime, and edm::EventID::run().
Referenced by LumiCorrectionSource().
|
private |
Definition at line 239 of file LumiCorrectionSource.cc.
References instance, and m_authfilename.
Referenced by fillparamcache().
|
private |
Definition at line 76 of file LumiCorrectionSource.cc.
References XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by servletTranslation().
|
private |
Definition at line 109 of file LumiCorrectionSource.cc.
References alignCSCRings::e, m_siteconfpath, mps_alisetup::parser, s2x(), AlCaHLTBitMon_QueryRunRegistry::string, toParentString(), and cms::concurrency::xercesInitialize().
Referenced by translateFrontierConnect().
|
protectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 229 of file LumiCorrectionSource.cc.
References m_pcurrentTime, edm::ValidityInterval::setFirst(), and edm::ValidityInterval::setLast().
|
private |
Definition at line 82 of file LumiCorrectionSource.cc.
Referenced by servletTranslation().
|
private |
Definition at line 147 of file LumiCorrectionSource.cc.
References Exception, m_siteconfpath, fed_dqm_sourceclient-live_cfg::path, mps_fire::result, servletTranslation(), AlCaHLTBitMon_QueryRunRegistry::string, tmp, and relmon_authenticated_wget::url.
Referenced by LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 70 of file LumiCorrectionSource.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, tmp, and XERCES_CPP_NAMESPACE_USE::transcode().
Referenced by toParentString().
|
private |
Definition at line 44 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and reloadAuth().
|
private |
Definition at line 52 of file LumiCorrectionSource.h.
Referenced by LumiCorrectionSource().
|
private |
Definition at line 43 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 45 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and LumiCorrectionSource().
|
private |
Definition at line 46 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and LumiCorrectionSource().
|
private |
Definition at line 50 of file LumiCorrectionSource.h.
|
private |
Definition at line 47 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), LumiCorrectionSource(), and parseGlobaltagForLumi().
|
private |
Definition at line 49 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and produceLumiCorrectionParam().
|
private |
Definition at line 51 of file LumiCorrectionSource.h.
Referenced by fillparamcache(), and produceLumiCorrectionParam().
|
private |
Definition at line 53 of file LumiCorrectionSource.h.
Referenced by produceLumiCorrectionParam().
|
private |
Definition at line 54 of file LumiCorrectionSource.h.
Referenced by produceLumiCorrectionParam(), and setIntervalFor().
|
private |
Definition at line 48 of file LumiCorrectionSource.h.
Referenced by LumiCorrectionSource(), servletTranslation(), and translateFrontierConnect().