#include <HGCalValidator.h>
Public Types | |
using | Histograms = HGCalValidatorHistograms |
Public Types inherited from edm::global::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Attributes | |
const edm::FileInPath | cummatbudinxo_ |
edm::EDGetTokenT< Density > | density_ |
const bool | doCaloParticlePlots_ |
const bool | dolayerclustersPlots_ |
std::unique_ptr< HGVHistoProducerAlgo > | histoProducerAlgo_ |
std::vector< edm::InputTag > | label |
edm::EDGetTokenT< std::vector< CaloParticle > > | label_cp_effic |
edm::EDGetTokenT< std::vector< CaloParticle > > | label_cp_fake |
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > | labelToken |
edm::EDGetTokenT< HGCRecHitCollection > | recHitsBH_ |
edm::EDGetTokenT< HGCRecHitCollection > | recHitsEE_ |
edm::EDGetTokenT< HGCRecHitCollection > | recHitsFH_ |
const bool | SaveGeneralInfo_ |
edm::EDGetTokenT< std::vector< SimVertex > > | simVertices_ |
Private Member Functions | |
void | fillHitMap (std::map< DetId, const HGCRecHit * > &, const HGCRecHitCollection &, const HGCRecHitCollection &, const HGCRecHitCollection &) const |
Private Attributes | |
CaloParticleSelector | cpSelector |
std::map< double, double > | cummatbudg |
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 | |
Static Public Member Functions inherited from edm::global::EDAnalyzerBase | |
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 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) |
Class that produces histograms to validate HGCal Reconstruction performances
Definition at line 36 of file HGCalValidator.h.
Definition at line 38 of file HGCalValidator.h.
HGCalValidator::HGCalValidator | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 9 of file HGCalValidator.cc.
References cpSelector, cummatbudg, cummatbudinxo_, density_, dirName_, fmb, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), histoProducerAlgo_, label, label_cp_effic, label_cp_fake, labelToken, particles_to_monitor_, recHitsBH_, recHitsEE_, recHitsFH_, simVertices_, AlCaHLTBitMon_QueryRunRegistry::string, thicknesses_to_monitor_, tools_, and totallayers_to_monitor_.
|
override |
|
overridevirtual |
Method called to book the DQM histograms.
Implements DQMGlobalEDAnalyzer< HGCalValidatorHistograms >.
Definition at line 78 of file HGCalValidator.cc.
References patPFMETCorrections_cff::algo, DQMStore::IBooker::cd(), cummatbudinxo_, TrackerOfflineValidation_Dqm_cff::dirName, dirName_, doCaloParticlePlots_, dolayerclustersPlots_, edm::FileInPath::fullPath(), HGCalValidatorHistograms::histoProducerAlgo, histoProducerAlgo_, edm::InputTag::instance(), edm::InputTag::label(), label, LogDebug, particles_to_monitor_, edm::InputTag::process(), SaveGeneralInfo_, DQMStore::IBooker::setCurrentFolder(), thicknesses_to_monitor_, and totallayers_to_monitor_.
void HGCalValidator::cpParametersAndSelection | ( | const Histograms & | histograms, |
std::vector< CaloParticle > const & | cPeff, | ||
std::vector< SimVertex > const & | simVertices, | ||
std::vector< size_t > & | selected_cPeff | ||
) | const |
Definition at line 125 of file HGCalValidator.cc.
References cpSelector, doCaloParticlePlots_, HGCalValidatorHistograms::histoProducerAlgo, and histoProducerAlgo_.
Referenced by dqmAnalyze().
|
override |
Method called once per event.
Definition at line 146 of file HGCalValidator.cc.
References caloTruthProducer_cfi::caloParticles, fastPrimaryVertexProducer_cfi::clusters, cpParametersAndSelection(), cummatbudg, density_, dolayerclustersPlots_, fillHitMap(), HGCalValidatorHistograms::histoProducerAlgo, histoProducerAlgo_, label, label_cp_effic, labelToken, LogDebug, LogTrace, recHitsBH_, recHitsEE_, recHitsFH_, SaveGeneralInfo_, HGCalValidator_cfi::simVertices, simVertices_, thicknesses_to_monitor_, tools_, totallayers_to_monitor_, and w.
|
private |
Definition at line 223 of file HGCalValidator.cc.
Referenced by dqmAnalyze().
|
private |
Definition at line 81 of file HGCalValidator.h.
Referenced by cpParametersAndSelection(), and HGCalValidator().
|
private |
Definition at line 83 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 61 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 70 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 87 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 59 of file HGCalValidator.h.
Referenced by bookHistograms(), and cpParametersAndSelection().
|
protected |
Definition at line 60 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 71 of file HGCalValidator.h.
Referenced by bookHistograms(), cpParametersAndSelection(), dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 57 of file HGCalValidator.h.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::_sort_list(), bookHistograms(), dqmAnalyze(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::fullFilename(), HGCalValidator(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor::properties(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::readConnections(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor::updateProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::usedBy().
|
protected |
Definition at line 64 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 65 of file HGCalValidator.h.
Referenced by HGCalValidator().
|
protected |
Definition at line 63 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 84 of file HGCalValidator.h.
Referenced by bookHistograms(), and HGCalValidator().
|
protected |
Definition at line 69 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 67 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 68 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
protected |
Definition at line 58 of file HGCalValidator.h.
Referenced by bookHistograms(), and dqmAnalyze().
|
protected |
Definition at line 66 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 86 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 82 of file HGCalValidator.h.
Referenced by dqmAnalyze(), and HGCalValidator().
|
private |
Definition at line 85 of file HGCalValidator.h.
Referenced by bookHistograms(), dqmAnalyze(), and HGCalValidator().