Public Member Functions | |
LumiCalculator (edm::ParameterSet const &pset) | |
virtual | ~LumiCalculator () |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
virtual void | analyze (edm::Event const &e, edm::EventSetup const &c) override |
virtual void | beginJob () override |
virtual void | beginRun (const edm::Run &run, const edm::EventSetup &c) override |
virtual void | endJob () override |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c) override |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) override |
std::vector< std::string > | splitpathstr (const std::string &strValue, const std::string separator) |
Private Attributes | |
unsigned int | currentlumi_ |
HLTConfigProvider | hltConfig_ |
std::map< std::string, hltPerPathInfo > | hltmap_ |
std::map< std::string, l1PerBitInfo > | l1map_ |
edm::LogInfo * | log_ |
std::vector< MyPerLumiInfo > | perrunlumiinfo_ |
bool | showTrgInfo_ |
std::multimap< std::string, std::string > | trgpathMmap_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 34 of file LumiCalculator.cc.
|
explicit |
Definition at line 62 of file LumiCalculator.cc.
References edm::ParameterSet::getUntrackedParameter(), and showTrgInfo_.
|
virtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Definition at line 88 of file LumiCalculator.cc.
References Exception, edm::ParameterSet::getParameter(), ValidationMatrix::hlt, hltConfig_, hltmap_, lumiCalc2::hltname, mps_fire::i, HLTConfigProvider::init(), l1map_, log_, HLTConfigProvider::moduleLabels(), HLTConfigProvider::modulePSet(), HLTConfigProvider::moduleType(), perrunlumiinfo_, hltPerPathInfo::prescale, edm::RunBase::run(), showTrgInfo_, HLTConfigProvider::size(), findQualityFiles::size, splitpathstr(), AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, HLTConfigProvider::tableName(), trgpathMmap_, and HLTConfigProvider::triggerName().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Integrated Luminosity per Lumi Section instantaneousLumi*93.244(sec)
for(hltit=hltitBeg;hltit!=hltitEnd;++hltit){ }
Reimplemented from edm::EDAnalyzer.
Definition at line 204 of file LumiCalculator.cc.
References LumiSummary::avgInsDelLumi(), EnergyCorrector::c, currentlumi_, MyPerLumiInfo::deadcount, LumiSummary::deadcount(), edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), LumiSummaryRunHeader::getL1Index(), LumiSummaryRunHeader::getL1Name(), edm::LuminosityBlock::getRun(), hltmap_, lumiCalc2::hltname, mps_fire::i, edm::LuminosityBlockBase::id(), MyPerLumiInfo::intglumi, checklumidiff::l, LumiSummary::l1info(), l1map_, LumiSummary::liveFrac(), MyPerLumiInfo::livefraction, log_, MyPerLumiInfo::lsnum, edm::LuminosityBlockID::luminosityBlock(), generateDummyData::lumiSummary(), gen::n, LumiSummary::nTriggerLine(), perrunlumiinfo_, l1PerBitInfo::prescale, LumiSummary::L1::prescale, showTrgInfo_, AlCaHLTBitMon_QueryRunRegistry::string, lumiQTWidget::t, trgpathMmap_, and LumiSummary::L1::triggernameidx.
|
overrideprivatevirtual |
Notes on calculation:
CMS recorded Luminosity per run : sum over HLX&&HF certified LS lumiSummary->avgInsDelLumi()*93.244*livefraction()
avgInsDelLumi()*93.244*livefraction()/(HLTprescale*L1prescale) for now HLTprescale=1
Reimplemented from edm::EDAnalyzer.
Definition at line 287 of file LumiCalculator.cc.
References gather_cfg::cout, hltmap_, l1map_, log_, perrunlumiinfo_, csvLumiCalc::recorded, edm::RunBase::run(), and trgpathMmap_.
|
private |
Definition at line 355 of file LumiCalculator.cc.
References DEFINE_FWK_MODULE, end, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by beginRun().
|
private |
Definition at line 57 of file LumiCalculator.cc.
Referenced by endLuminosityBlock().
|
private |
Definition at line 49 of file LumiCalculator.cc.
Referenced by beginRun().
|
private |
Definition at line 51 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 52 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 55 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), endRun(), and ~LumiCalculator().
|
private |
Definition at line 53 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 56 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), and LumiCalculator().
|
private |
Definition at line 50 of file LumiCalculator.cc.
Referenced by beginRun(), endLuminosityBlock(), and endRun().