#include <HGCalValidator.h>
Public Member Functions | |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override |
Method called to book the DQM histograms. More... | |
void | cpParametersAndSelection (const Histograms &histograms, std::vector< CaloParticle > const &cPeff, std::vector< SimVertex > const &simVertices, std::vector< size_t > &selected_cPeff, unsigned int layers, std::unordered_map< DetId, const unsigned int > const &, std::vector< HGCRecHit > const &hits) const |
void | dqmAnalyze (const edm::Event &, const edm::EventSetup &, const Histograms &) const override |
Method called once per event. More... | |
HGCalValidator (const edm::ParameterSet &pset) | |
Constructor. More... | |
~HGCalValidator () override | |
Destructor. More... | |
Public Member Functions inherited from DQMGlobalEDAnalyzer< HGCalValidatorHistograms > | |
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &, HGCalValidatorHistograms const &) const |
void | globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup) const final |
Public Member Functions inherited from DQMGlobalEDAnalyzerBase< HGCalValidatorHistograms, Args... > | |
void | accumulate (edm::StreamID id, edm::Event const &event, edm::EventSetup const &setup) const final |
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &, HGCalValidatorHistograms &) const |
DQMGlobalEDAnalyzerBase () | |
std::shared_ptr< HGCalValidatorHistograms > | globalBeginRun (edm::Run const &run, edm::EventSetup const &setup) const final |
void | globalEndRun (edm::Run const &, edm::EventSetup const &) const final |
Public Member Functions inherited from edm::global::EDProducer< edm::RunCache< HGCalValidatorHistograms >, edm::EndRunProducer, edm::Accumulator, Args... > | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
EDProducer & | operator= (const EDProducer &)=delete |
bool | wantsGlobalLuminosityBlocks () const noexcept final |
bool | wantsGlobalRuns () const noexcept final |
bool | wantsInputProcessBlocks () const noexcept final |
bool | wantsProcessBlocks () const noexcept final |
bool | wantsStreamLuminosityBlocks () const noexcept final |
bool | wantsStreamRuns () const noexcept final |
Public Member Functions inherited from edm::global::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () 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 |
std::vector< bool > const & | recordProvenanceList () 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) |
TypeLabelList const & | typeLabelList () const |
used by the fwk to register the list of products of this module More... | |
~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 | |
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
CaloParticleSelector | cpSelector |
std::map< double, double > | cumulative_material_budget |
std::string | dirName_ |
std::vector< int > | particles_to_monitor_ |
std::vector< int > | thicknesses_to_monitor_ |
std::shared_ptr< hgcal::RecHitTools > | tools_ |
unsigned | totallayers_to_monitor_ |
Additional Inherited Members | |
Protected Member Functions inherited from DQMGlobalEDAnalyzerBase< HGCalValidatorHistograms, Args... > | |
uint64_t | meId (edm::Run const &run) 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) |
Class that produces histograms to validate HGCal Reconstruction performances
Definition at line 43 of file HGCalValidator.h.
Definition at line 45 of file HGCalValidator.h.
using HGCalValidator::SimClusterToCaloParticleMap = ticl::AssociationMap<ticl::oneToOneMapWithFraction, std::vector<SimCluster>, std::vector<CaloParticle> > |
Definition at line 49 of file HGCalValidator.h.
using HGCalValidator::TracksterToTracksterMap = ticl::AssociationMap<ticl::mapWithFractionAndScore, std::vector<ticl::Trackster>, std::vector<ticl::Trackster> > |
Definition at line 47 of file HGCalValidator.h.
HGCalValidator::HGCalValidator | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 63 of file HGCalValidator.cc.
References allTracksterTracksterAssociatorsLabels_, allTracksterTracksterByHitsAssociatorsLabels_, associator_, associatorMapRtS, associatorMapRtSim, associatorMapSimtR, associatorMapStR, associatorSim_, candidateVal_, clustersMaskTokens_, edm::EDConsumerBase::consumes(), cpSelector, cummatbudinxo_, cumulative_material_budget, dirName_, doCandidatesPlots_, fmb, edm::FileInPath::fullPath(), histoProducerAlgo_, hitMap_, hits_label_, hits_token_, ProducerED_cfi::InputTag, isTICLv5_, label, label_clustersmask, label_cp_effic, label_cp_fake, label_lcl, label_simTS, label_simTSFromCP, label_tst, label_tstTokens, layerclusters_, particles_to_monitor_, muonDTDigis_cfi::pset, simClusters_, simTracksters_, simTracksters_fromCPs_, simTrackstersMap_, simVertices_, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, thicknesses_to_monitor_, tools_, totallayers_to_monitor_, tracksterToTracksterAssociatorsTokens_, and tracksterToTracksterByHitsAssociatorsTokens_.
|
override |
|
overridevirtual |
Method called to book the DQM histograms.
Implements DQMGlobalEDAnalyzerBase< HGCalValidatorHistograms, Args... >.
Definition at line 206 of file HGCalValidator.cc.
References candidateVal_, dqm::implementation::NavigatorBase::cd(), cummatbudinxo_, TrackerOfflineValidation_Dqm_cff::dirName, dirName_, doCaloParticlePlots_, doCandidatesPlots_, doLayerClustersPlots_, doSimClustersPlots_, doTrackstersPlots_, edm::FileInPath::fullPath(), histoProducerAlgo_, edm::InputTag::label(), label_candidates_, label_clustersmask, label_layerClustersPlots_, label_LCToCPLinking_, label_SimClustersLevel_, label_SimClustersPlots_, label_TS_, label_TSbyHits_, label_TSbyHitsCP_, label_TSbyLCs_, label_TSbyLCsCP_, label_tst, LogDebug, particles_to_monitor_, SaveGeneralInfo_, dqm::implementation::NavigatorBase::setCurrentFolder(), thicknesses_to_monitor_, to_string(), totallayers_to_monitor_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::ws.
void HGCalValidator::cpParametersAndSelection | ( | const Histograms & | histograms, |
std::vector< CaloParticle > const & | cPeff, | ||
std::vector< SimVertex > const & | simVertices, | ||
std::vector< size_t > & | selected_cPeff, | ||
unsigned int | layers, | ||
std::unordered_map< DetId, const unsigned int > const & | hitMap, | ||
std::vector< HGCRecHit > const & | hits | ||
) | const |
Definition at line 336 of file HGCalValidator.cc.
References cpSelector, doCaloParticlePlots_, doCaloParticleSelection_, histoProducerAlgo_, hfClusterShapes_cfi::hits, dqmiolumiharvest::j, and hgcalTBTopologyTester_cfi::layers.
Referenced by dqmAnalyze().
|
overridevirtual |
Method called once per event.
Implements DQMGlobalEDAnalyzerBase< HGCalValidatorHistograms, Args... >.
Definition at line 360 of file HGCalValidator.cc.
References associatorMapRtS, associatorMapRtSim, associatorMapSimtR, associatorMapStR, caloGeomToken_, caloTruthCellsProducer_cfi::caloParticles, candidateVal_, bsc_activity_cfg::clusters, clustersMaskTokens_, cpParametersAndSelection(), cumulative_material_budget, doCandidatesPlots_, doLayerClustersPlots_, doSimClustersPlots_, doTrackstersPlots_, edmPickEvents::event, relativeConstraints::geom, histoProducerAlgo_, hitMap_, hfClusterShapes_cfi::hits, hits_token_, edm::HandleBase::id(), edm::InputTag::instance(), edm::InputTag::label(), label_clustersmask, label_cp_effic, label_lcl, label_tstTokens, layerclusters_, LogDebug, LogTrace, or, edm::InputTag::process(), removeCPFromPU(), SaveGeneralInfo_, scToCpMapToken_, singleTopDQM_cfi::setup, SimClusterToCaloParticleAssociation_cfi::simClusters, simClusters_, simTracksters_, simTracksters_fromCPs_, simTrackstersMap_, simVertices_, thicknesses_to_monitor_, unpackBuffers-CaloStage2::token, tools_, totallayers_to_monitor_, HitToTracksterAssociation_cfi::tracksters, tracksterToTracksterAssociatorsTokens_, tracksterToTracksterByHitsAssociatorsTokens_, w(), and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::ws.
|
static |
Definition at line 612 of file HGCalValidator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 76 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 77 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 79 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 108 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 111 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 110 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 109 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 80 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 73 of file HGCalValidator.h.
Referenced by dqmAnalyze().
|
protected |
Definition at line 115 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 106 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 121 of file HGCalValidator.h.
Referenced by cpParametersAndSelection(), and HGCalValidator().
|
protected |
Definition at line 93 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
private |
Definition at line 123 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 127 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 82 of file HGCalValidator.h.
Referenced by bookHistograms(), and cpParametersAndSelection().
|
protected |
Definition at line 83 of file HGCalValidator.h.
Referenced by cpParametersAndSelection().
|
protected |
Definition at line 91 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 86 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 84 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 88 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 112 of file HGCalValidator.h.
Referenced by bookHistograms(), cpParametersAndSelection(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 107 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 113 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 114 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 94 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 92 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 90 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 103 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 104 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 87 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 74 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 87 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 85 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 85 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 78 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 78 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 89 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 89 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 89 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 89 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 89 of file HGCalValidator.h.
Referenced by bookHistograms().
|
protected |
Definition at line 75 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 99 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 96 of file HGCalValidator.h.
|
protected |
Definition at line 98 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 124 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 81 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 118 of file HGCalValidator.h.
Referenced by dqmAnalyze().
|
protected |
Definition at line 97 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 100 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 101 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 102 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 105 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 126 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 122 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 125 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 116 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 117 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().