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_ |
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 | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
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<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
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) |
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 () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
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) pedestal - is a constant noise term for low lumi period
authors:Sam Higginbotham (shigg) and Chris Palmer ( inb@ cern. chcapal) , Jose Benitez ( mer@ cern. chjose.) beni tez@c ern. ch
Definition at line 50 of file CorrPCCProducer.cc.
|
explicit |
Definition at line 133 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 185 of file CorrPCCProducer.cc.
|
finalprivate |
|
overrideprivatevirtual |
Implements DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 670 of file CorrPCCProducer.cc.
References dqm::implementation::IBooker::book1D(), maxLS, dqm::implementation::NavigatorBase::setCurrentFolder(), Type1FracMon, Type1ResMon, and Type2ResMon.
|
private |
Definition at line 296 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(), DiMuonV_cfg::threshold, dtNoiseDBValidation_cfg::trial, and type1Frac.
Referenced by dqmEndRunProduce().
|
finalprivatevirtual |
Reimplemented from DQMOneEDAnalyzer< edm::one::WatchLuminosityBlocks >.
Definition at line 413 of file CorrPCCProducer.cc.
References dqmEndRunProduce().
|
private |
Definition at line 419 of file CorrPCCProducer.cc.
References approxLumiBlockSize_, nano_mu_digi_cff::bx, calculateCorrections(), correctionScaleFactors_, corrlumiAvg_h, gather_cfg::cout, errOnLumiByBX_, events_, dqmdumpme::first, nano_mu_digi_cff::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_, 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(), jetUpdater_cfi::sort, thisLS, totalLumiByBX_, totalLumiByBXAvg_, type1Frac, type1FracGraph, type1FracHist, Type1FracMon, type1resGraph, type1resHist, Type1ResMon, type2resGraph, type2resHist, Type2ResMon, and cond::service::PoolDBOutputService::writeOneIOV().
Referenced by dqmEndRun().
|
finalprivatevirtual |
Reimplemented from edm::one::EDProducerBase.
Definition at line 678 of file CorrPCCProducer.cc.
References histoFile, pedestalGraph, type1FracGraph, type1resGraph, and type2resGraph.
Referenced by o2olib.O2ORunMgr::executeJob().
|
finalprivate |
Definition at line 382 of file CorrPCCProducer.cc.
References nano_mu_digi_cff::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 209 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 240 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 DiMuonV_cfg::threshold.
Referenced by calculateCorrections(), and estimateType1Frac().
|
private |
Definition at line 197 of file CorrPCCProducer.cc.
References mps_fire::i.
Referenced by calculateCorrections(), and evaluateCorrectionResiduals().
|
private |
Definition at line 189 of file CorrPCCProducer.cc.
References nano_mu_digi_cff::bx, correctionTemplate_, JetChargeProducer_cfi::exp, LumiConstants::numBX, type2_a_, and type2_b_.
Referenced by CorrPCCProducer().
|
private |
Definition at line 661 of file CorrPCCProducer.cc.
References nano_mu_digi_cff::bx, correctionScaleFactors_, events_, LumiConstants::numBX, totalLumiByBX_, and totalLumiByBXAvg_.
Referenced by CorrPCCProducer(), and dqmEndRunProduce().
|
private |
Definition at line 119 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and dqmEndRunProduce().
|
private |
Definition at line 81 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), CorrPCCProducer(), dqmEndRunProduce(), and resetBlock().
|
private |
Definition at line 80 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), CorrPCCProducer(), estimateType1Frac(), and makeCorrectionTemplate().
|
private |
Definition at line 94 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 118 of file CorrPCCProducer.cc.
Referenced by beginLuminosityBlock(), and CorrPCCProducer().
|
private |
Definition at line 76 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 79 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endLuminosityBlock(), and resetBlock().
|
private |
Definition at line 110 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endJob(), and evaluateCorrectionResiduals().
|
private |
Definition at line 109 of file CorrPCCProducer.cc.
|
private |
Definition at line 84 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 96 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 92 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 91 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 89 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 87 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 71 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and endLuminosityBlock().
|
private |
Definition at line 88 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 101 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().
|
private |
Definition at line 113 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), estimateType1Frac(), and evaluateCorrectionResiduals().
|
private |
Definition at line 115 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 114 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 116 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and evaluateCorrectionResiduals().
|
private |
Definition at line 85 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and endLuminosityBlock().
|
private |
Definition at line 117 of file CorrPCCProducer.cc.
Referenced by evaluateCorrectionResiduals().
|
private |
Definition at line 82 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), and dqmEndRunProduce().
|
private |
Definition at line 72 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer().
|
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 calculateCorrections(), and dqmEndRunProduce().
|
private |
Definition at line 127 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 129 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 73 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer().
|
private |
Definition at line 75 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 95 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 120 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce(), and endLuminosityBlock().
|
private |
Definition at line 77 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), endLuminosityBlock(), and resetBlock().
|
private |
Definition at line 78 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and resetBlock().
|
private |
Definition at line 112 of file CorrPCCProducer.cc.
Referenced by calculateCorrections(), dqmEndRunProduce(), and estimateType1Frac().
|
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 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().
|
private |
Definition at line 122 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and makeCorrectionTemplate().
|
private |
Definition at line 123 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), and makeCorrectionTemplate().
|
private |
Definition at line 108 of file CorrPCCProducer.cc.
Referenced by CorrPCCProducer(), dqmEndRunProduce(), and endJob().
|
private |
Definition at line 99 of file CorrPCCProducer.cc.
Referenced by dqmEndRunProduce().
|
private |
Definition at line 104 of file CorrPCCProducer.cc.
Referenced by bookHistograms(), and dqmEndRunProduce().