Private Member Functions | |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &iSetup) final |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
void | calculateCorrections (std::vector< float >, std::vector< float > &, float &) |
void | dqmEndRun (edm::Run const &runSeg, const edm::EventSetup &iSetup) final |
void | dqmEndRunProduce (const edm::Run &runSeg, const edm::EventSetup &iSetup) |
void | endJob () final |
void | endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &iSetup) final |
void | estimateType1Frac (std::vector< float >, float &) |
void | evaluateCorrectionResiduals (std::vector< float >) |
float | getMaximum (std::vector< float >) |
void | makeCorrectionTemplate () |
void | resetBlock () |
Private Attributes | |
unsigned int | approxLumiBlockSize_ |
std::vector< float > | correctionScaleFactors_ |
std::vector< float > | correctionTemplate_ |
TH1F * | corrlumiAvg_h |
unsigned int | countLumi_ |
std::vector< float > | errOnLumiByBX_ |
std::vector< float > | events_ |
TFile * | histoFile |
TList * | hlist |
unsigned int | iBlock = 0 |
TH1F * | lumiAvg_h |
std::map< std::pair< unsigned int, unsigned int >, unsigned int > | lumiInfoCounter |
std::map< std::pair< unsigned int, unsigned int >, LumiInfo * > | lumiInfoMap |
std::map< std::pair< unsigned int, unsigned int >, LumiInfo * >::iterator | lumiInfoMapIterator |
std::map< unsigned int, LumiInfo * > | lumiInfoMapPerLS |
edm::EDGetTokenT< LumiInfo > | lumiInfoToken |
std::vector< unsigned int > | lumiSections |
unsigned int | maxLS = 3500 |
float | mean_type1_residual |
float | mean_type1_residual_unc |
float | mean_type2_residual |
float | mean_type2_residual_unc |
unsigned int | minimumNumberOfEvents |
unsigned int | nTrain |
float | overallCorrection_ |
LumiCorrections * | pccCorrections |
std::string | pccSrc_ |
float | pedestal |
float | pedestal_unc |
TGraphErrors * | pedestalGraph |
edm::Service< cond::service::PoolDBOutputService > | poolDbService |
std::string | prodInst_ |
std::vector< float > | rawlumiBX_ |
TH1F * | scaleFactorAvg_h |
unsigned int | thisLS |
std::vector< float > | totalLumiByBX_ |
std::vector< float > | totalLumiByBXAvg_ |
float | type1Frac |
TGraphErrors * | type1FracGraph |
TH1F * | type1FracHist |
MonitorElement * | Type1FracMon |
TGraphErrors * | type1resGraph |
TH1F * | type1resHist |
MonitorElement * | Type1ResMon |
double | type2_a_ |
double | type2_b_ |
TGraphErrors * | type2resGraph |
TH1F * | type2resHist |
MonitorElement * | Type2ResMon |
Additional Inherited Members | |
Public Types inherited from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks > | |
typedef dqm::reco::DQMStore | DQMStore |
typedef dqm::reco::MonitorElement | MonitorElement |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks > | |
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
Protected Member Functions inherited from edm::ProducerBase | |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
declare what type of product will make and with which optional label More... | |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Protected Attributes inherited from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks > | |
edm::EDPutTokenT< DQMToken > | runToken_ |
class: CorrPCCProducer.cc
description: Computes the type 1 and type 2 corrections to the luminosity type 1 - first (spillover from previous BXs real clusters) type 2 - after (comes from real activation)
authors:Sam Higginbotham (shigg) and Chris Palmer ( inb@ cern. chcapal) mer@ cern. ch
Definition at line 49 of file CorrPCCProducer.cc.
|
explicit |
Definition at line 134 of file CorrPCCProducer.cc.
References approxLumiBlockSize_, correctionScaleFactors_, correctionTemplate_, countLumi_, events_, edm::ParameterSet::getParameter(), histoFile, lumiInfoToken, makeCorrectionTemplate(), minimumNumberOfEvents, LumiConstants::numBX, pccSrc_, pedestalGraph, prodInst_, resetBlock(), totalLumiByBX_, totalLumiByBXAvg_, type1FracGraph, type1resGraph, type2_a_, type2_b_, and type2resGraph.
|
override |
Definition at line 186 of file CorrPCCProducer.cc.
|
finalprivate |
Definition at line 378 of file CorrPCCProducer.cc.
References countLumi_.
|
overrideprivatevirtual |
Implements DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 673 of file CorrPCCProducer.cc.
References dqm::implementation::IBooker::book1D(), maxLS, dqm::implementation::NavigatorBase::setCurrentFolder(), Type1FracMon, Type1ResMon, and Type2ResMon.
|
private |
Definition at line 297 of file CorrPCCProducer.cc.
References correctionScaleFactors_, correctionTemplate_, estimateType1Frac(), evaluateCorrectionResiduals(), getMaximum(), mps_fire::i, dqmiolumiharvest::j, SiStripPI::max, LumiConstants::numBX, overallCorrection_, pedestal, pedestal_unc, mathSSE::sqrt(), remoteMonitoring_LED_IterMethod_cfg::threshold, dtNoiseDBValidation_cfg::trial, and type1Frac.
Referenced by dqmEndRunProduce().
|
finalprivatevirtual |
Reimplemented from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 414 of file CorrPCCProducer.cc.
References dqmEndRunProduce().
|
private |
Definition at line 420 of file CorrPCCProducer.cc.
References approxLumiBlockSize_, l1GtPatternGenerator_cfi::bx, calculateCorrections(), correctionScaleFactors_, corrlumiAvg_h, gather_cfg::cout, errOnLumiByBX_, events_, dqmdumpme::first, dqmMemoryStats::float, histoFile, mps_fire::i, iBlock, edm::RunBase::id(), edm::Service< T >::isAvailable(), lumiAvg_h, lumiInfoCounter, lumiInfoMap, lumiInfoMapIterator, lumiInfoMapPerLS, lumiSections, maxLS, mean_type1_residual, mean_type1_residual_unc, mean_type2_residual, mean_type2_residual_unc, LumiConstants::numBX, overallCorrection_, pccCorrections, pedestal, pedestal_unc, pedestalGraph, poolDbService, rawlumiBX_, resetBlock(), edm::RunID::run(), edm::RunBase::run(), scaleFactorAvg_h, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), LumiCorrections::setCorrectionsBX(), LumiCorrections::setOverallCorrection(), LumiCorrections::setType1Fraction(), LumiCorrections::setType1Residual(), LumiCorrections::setType2Residual(), thisLS, totalLumiByBX_, totalLumiByBXAvg_, type1Frac, type1FracGraph, type1FracHist, Type1FracMon, type1resGraph, type1resHist, Type1ResMon, type2resGraph, type2resHist, Type2ResMon, and cond::service::PoolDBOutputService::writeOne().
Referenced by dqmEndRun().
|
finalprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 681 of file CorrPCCProducer.cc.
References histoFile, pedestalGraph, type1FracGraph, type1resGraph, and type2resGraph.
Referenced by o2olib.O2ORunMgr::executeJob().
|
finalprivate |
Definition at line 383 of file CorrPCCProducer.cc.
References l1GtPatternGenerator_cfi::bx, errOnLumiByBX_, events_, edm::LuminosityBlock::getByToken(), LumiInfo::getErrorLumiAllBX(), LumiInfo::getInstLumiAllBX(), lumiInfoMapPerLS, lumiInfoToken, edm::LuminosityBlockBase::luminosityBlock(), lumiSections, minimumNumberOfEvents, LumiConstants::numBX, edm::Handle< T >::product(), thisLS, and totalLumiByBX_.
|
private |
Definition at line 210 of file CorrPCCProducer.cc.
References correctionTemplate_, evaluateCorrectionResiduals(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, mean_type1_residual, LumiConstants::numBX, and type1Frac.
Referenced by calculateCorrections().
|
private |
Definition at line 241 of file CorrPCCProducer.cc.
References getMaximum(), histoFile, mean_type1_residual, mean_type1_residual_unc, mean_type2_residual, mean_type2_residual_unc, nTrain, LumiConstants::numBX, and remoteMonitoring_LED_IterMethod_cfg::threshold.
Referenced by calculateCorrections(), and estimateType1Frac().
|
private |
Definition at line 198 of file CorrPCCProducer.cc.
References mps_fire::i.
Referenced by calculateCorrections(), and evaluateCorrectionResiduals().
|
private |
Definition at line 190 of file CorrPCCProducer.cc.
References l1GtPatternGenerator_cfi::bx, correctionTemplate_, JetChargeProducer_cfi::exp, LumiConstants::numBX, type2_a_, and type2_b_.
Referenced by CorrPCCProducer().
|
private |
Definition at line 664 of file CorrPCCProducer.cc.
References l1GtPatternGenerator_cfi::bx, correctionScaleFactors_, events_, LumiConstants::numBX, totalLumiByBX_, and totalLumiByBXAvg_.
Referenced by CorrPCCProducer(), and dqmEndRunProduce().
|
private |
Definition at line 118 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and dqmEndRunProduce().
|
private |
Definition at line 80 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), CorrPCCProducer(), dqmEndRunProduce(), and resetBlock().
|
private |
Definition at line 79 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), CorrPCCProducer(), estimateType1Frac(), and makeCorrectionTemplate().
|
private |
Definition at line 93 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 117 of file CorrPCCProducer.cc.
Referenced by beginLuminosityBlock(), and CorrPCCProducer().
|
private |
Definition at line 75 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 78 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endLuminosityBlock(), and resetBlock().
|
private |
Definition at line 109 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endJob(), and evaluateCorrectionResiduals().
|
private |
Definition at line 108 of file CorrPCCProducer.cc.
|
private |
Definition at line 83 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 95 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 91 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 90 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 88 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 86 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 70 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and endLuminosityBlock().
|
private |
Definition at line 87 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 100 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().
|
private |
Definition at line 112 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), estimateType1Frac(), and evaluateCorrectionResiduals().
|
private |
Definition at line 114 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 113 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 115 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 84 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and endLuminosityBlock().
|
private |
Definition at line 116 of file CorrPCCProducer.cc.
Referenced by evaluateCorrectionResiduals().
|
private |
Definition at line 81 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), and dqmEndRunProduce().
|
private |
Definition at line 128 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 71 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer().
|
private |
Definition at line 124 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), and dqmEndRunProduce().
|
private |
Definition at line 125 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), and dqmEndRunProduce().
|
private |
Definition at line 126 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 130 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 72 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer().
|
private |
Definition at line 74 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 94 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 119 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 76 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endLuminosityBlock(), and resetBlock().
|
private |
Definition at line 77 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and resetBlock().
|
private |
Definition at line 111 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), dqmEndRunProduce(), and estimateType1Frac().
|
private |
Definition at line 105 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 96 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 101 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().
|
private |
Definition at line 106 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 97 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 102 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().
|
private |
Definition at line 121 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and makeCorrectionTemplate().
|
private |
Definition at line 122 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and makeCorrectionTemplate().
|
private |
Definition at line 107 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 98 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 103 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().