#include <DQMGenericClient.h>
Classes | |
struct | CDOption |
struct | EfficOption |
struct | NoFlowOption |
struct | NormOption |
struct | ProfileOption |
struct | ResolOption |
Public Types | |
enum | EfficType { EfficType::none = 0, EfficType::efficiency, EfficType::fakerate, EfficType::simpleratio } |
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 |
Public Member Functions | |
void | computeEfficiency (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &efficMEName, const std::string &efficMETitle, const std::string &recoMEName, const std::string &simMEName, const EfficType type=EfficType::efficiency, const bool makeProfile=false) |
void | computeProfile (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &profileMEName, const std::string &profileMETitle, const std::string &srcMEName) |
void | computeResolution (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &fitMEPrefix, const std::string &fitMETitlePrefix, const std::string &srcMEName) |
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
void | dqmEndLuminosityBlock (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override |
DQMGenericClient (const edm::ParameterSet &pset) | |
void | limitedFit (MonitorElement *srcME, MonitorElement *meanME, MonitorElement *sigmaME) |
void | makeCumulativeDist (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &cdName, bool ascending=true) |
void | makeNoFlowDist (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &cdName) |
void | normalizeToEntries (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &startDir, const std::string &histName, const std::string &normHistName) |
~DQMGenericClient () override | |
Public Member Functions inherited from DQMEDHarvester | |
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
DQMEDHarvester () | |
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
void | endJob () final |
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
void | endLuminosityBlockProduce (edm::LuminosityBlock &, edm::EventSetup const &) final |
void | endRun (edm::Run const &, edm::EventSetup const &) override |
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
~DQMEDHarvester () override=default | |
Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources > | |
EDProducer ()=default | |
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
SerialTaskQueue * | globalRunsQueue () final |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
bool | wantsStreamLuminosityBlocks () const |
bool | wantsStreamRuns () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
~ProducerBase () noexcept(false) override | |
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 |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
void | findAllSubdirectories (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::string dir, std::set< std::string > *myList, const TString &pattern) |
void | generic_eff (TH1 *denom, TH1 *numer, MonitorElement *efficiencyHist, const EfficType type=EfficType::efficiency) |
void | makeAllPlots (DQMStore::IBooker &, DQMStore::IGetter &) |
void | removeMEIfBooked (const std::string &meName, DQMStore::IGetter &igetter) |
Private Attributes | |
std::vector< CDOption > | cdOptions_ |
std::vector< EfficOption > | efficOptions_ |
bool | isWildcardUsed_ |
bool | makeGlobalEffPlot_ |
std::vector< NoFlowOption > | noFlowOptions_ |
std::vector< NormOption > | normOptions_ |
std::string | outputFileName_ |
std::vector< ProfileOption > | profileOptions_ |
bool | resLimitedFit_ |
std::vector< ResolOption > | resolOptions_ |
bool | runOnEndJob_ |
bool | runOnEndLumi_ |
std::vector< std::string > | subDirs_ |
DQMStore * | theDQM |
unsigned int | verbose_ |
Additional Inherited Members | |
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 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ESProduct , Transition Tr = Transition::Event> | |
auto | esConsumes (eventsetup::EventSetupRecordKey const &, ESInputTag const &tag) |
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) |
Protected Attributes inherited from DQMEDHarvester | |
edm::EDPutTokenT< DQMToken > | lumiToken_ |
edm::EDPutTokenT< DQMToken > | runToken_ |
Definition at line 28 of file DQMGenericClient.h.
|
strong |
Enumerator | |
---|---|
none | |
efficiency | |
fakerate | |
simpleratio |
Definition at line 37 of file DQMGenericClient.h.
DQMGenericClient::DQMGenericClient | ( | const edm::ParameterSet & | pset | ) |
Definition at line 34 of file DQMGenericClient.cc.
References createfilelist::args, DQMGenericClient::CDOption::ascending, DQMGenericClient::EfficOption::denominator, PostProcessor_cff::efficiency, genericClientPSetHelper_cff::efficSet(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), DQMGenericClient::EfficOption::isProfile, DQMGenericClient::EfficOption::name, DQMGenericClient::ProfileOption::name, DQMGenericClient::NormOption::name, DQMGenericClient::CDOption::name, DQMGenericClient::NoFlowOption::name, DQMGenericClient::ResolOption::namePrefix, none, DQMGenericClient::NormOption::normHistName, DQMGenericClient::EfficOption::numerator, or, DQMGenericClient::ResolOption::srcName, DQMGenericClient::ProfileOption::srcName, DQMGenericClient::EfficOption::title, DQMGenericClient::ProfileOption::title, DQMGenericClient::ResolOption::titlePrefix, DQMGenericClient::EfficOption::type, and HistogramManager_cfi::VPSet().
|
inlineoverride |
Definition at line 32 of file DQMGenericClient.h.
References EnergyCorrector::c, dqmEndJob(), and dqmEndLuminosityBlock().
void DQMGenericClient::computeEfficiency | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | efficMEName, | ||
const std::string & | efficMETitle, | ||
const std::string & | recoMEName, | ||
const std::string & | simMEName, | ||
const EfficType | type = EfficType::efficiency , |
||
const bool | makeProfile = false |
||
) |
Definition at line 466 of file DQMGenericClient.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::book3D(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), PostProcessor_cff::efficiency, relativeConstraints::empty, f, DQMStore::IGetter::get(), mps_fire::i, or, DQMStore::IBooker::setCurrentFolder(), mathSSE::sqrt(), and AlCaHLTBitMon_QueryRunRegistry::string.
void DQMGenericClient::computeProfile | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | profileMEName, | ||
const std::string & | profileMETitle, | ||
const std::string & | srcMEName | ||
) |
Definition at line 729 of file DQMGenericClient.cc.
References DQMStore::IBooker::bookProfile(), DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), DQMStore::IGetter::get(), PostProcessor_cff::profile, and DQMStore::IBooker::setCurrentFolder().
void DQMGenericClient::computeResolution | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | fitMEPrefix, | ||
const std::string & | fitMETitlePrefix, | ||
const std::string & | srcMEName | ||
) |
Definition at line 647 of file DQMGenericClient.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), DQMStore::IGetter::get(), FitSlicesYTool::getFittedMeanWithError(), FitSlicesYTool::getFittedSigmaWithError(), postValidation_cfi::namePrefix, and DQMStore::IBooker::setCurrentFolder().
|
overridevirtual |
Implements DQMEDHarvester.
Definition at line 362 of file DQMGenericClient.cc.
References Utilities::operator.
Referenced by ~DQMGenericClient().
|
override |
Definition at line 356 of file DQMGenericClient.cc.
Referenced by ~DQMGenericClient().
|
private |
Definition at line 976 of file DQMGenericClient.cc.
References DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), TrackerOfflineValidation_Dqm_cff::dirName, DQMStore::IGetter::getSubdirs(), nonPerlWildcard(), listBenchmarks::pattern, and fetchall_from_DQM_v2::regexp.
|
private |
Definition at line 1013 of file DQMGenericClient.cc.
References f, LogDebug, funct::pow(), MonitorElement::setBinContent(), MonitorElement::setBinError(), MonitorElement::setEfficiencyFlag(), and mathSSE::sqrt().
void DQMGenericClient::limitedFit | ( | MonitorElement * | srcME, |
MonitorElement * | meanME, | ||
MonitorElement * | sigmaME | ||
) |
Definition at line 924 of file DQMGenericClient.cc.
References MonitorElement::getTH2F(), trackerHits::histo, mps_fire::i, MonitorElement::setBinContent(), MonitorElement::setBinError(), globals_cff::x1, and globals_cff::x2.
|
private |
Definition at line 390 of file DQMGenericClient.cc.
References TrackerOfflineValidation_Dqm_cff::dirName, metacharacters(), listBenchmarks::pattern, and RecoMuonValidator_cff::subDir.
void DQMGenericClient::makeCumulativeDist | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | cdName, | ||
bool | ascending = true |
||
) |
Definition at line 836 of file DQMGenericClient.cc.
References DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), DQMStore::IGetter::get(), and mps_fire::i.
void DQMGenericClient::makeNoFlowDist | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | cdName | ||
) |
Definition at line 884 of file DQMGenericClient.cc.
References DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), and DQMStore::IGetter::get().
void DQMGenericClient::normalizeToEntries | ( | DQMStore::IBooker & | ibooker, |
DQMStore::IGetter & | igetter, | ||
const std::string & | startDir, | ||
const std::string & | histName, | ||
const std::string & | normHistName | ||
) |
Definition at line 774 of file DQMGenericClient.cc.
References DQMStore::IBooker::cd(), DQMStore::IGetter::dirExists(), DQMStore::IGetter::get(), and create_public_lumi_plots::hist.
|
private |
Definition at line 1064 of file DQMGenericClient.cc.
References DQMStore::IGetter::get(), and DQMStore::IGetter::removeElement().
|
private |
Definition at line 133 of file DQMGenericClient.h.
|
private |
Definition at line 129 of file DQMGenericClient.h.
|
private |
Definition at line 122 of file DQMGenericClient.h.
|
private |
Definition at line 121 of file DQMGenericClient.h.
|
private |
Definition at line 134 of file DQMGenericClient.h.
|
private |
Definition at line 132 of file DQMGenericClient.h.
|
private |
Definition at line 127 of file DQMGenericClient.h.
|
private |
Definition at line 131 of file DQMGenericClient.h.
|
private |
Definition at line 123 of file DQMGenericClient.h.
|
private |
Definition at line 130 of file DQMGenericClient.h.
|
private |
Definition at line 120 of file DQMGenericClient.h.
|
private |
Definition at line 119 of file DQMGenericClient.h.
|
private |
Definition at line 126 of file DQMGenericClient.h.
|
private |
Definition at line 125 of file DQMGenericClient.h.
|
private |
Definition at line 118 of file DQMGenericClient.h.