#include <MultiTrackValidator.h>
Private Types | |
using | MVACollection = std::vector< float > |
using | QualityMaskCollection = std::vector< unsigned char > |
Private Member Functions | |
const reco::Vertex::Point * | getRecoPVPosition (const edm::Event &event, const edm::Handle< TrackingVertexCollection > &htv) const |
const TrackingVertex::LorentzVector * | getSimPVPosition (const edm::Handle< TrackingVertexCollection > &htv) const |
size_t | tpDR (const TrackingParticleRefVector &tPCeff, const std::vector< size_t > &selected_tPCeff, DynArray< float > &dR_tPCeff) const |
void | tpParametersAndSelection (const TrackingParticleRefVector &tPCeff, const ParametersDefinerForTP ¶metersDefinerTP, const edm::Event &event, const edm::EventSetup &setup, const reco::BeamSpot &bs, std::vector< std::tuple< TrackingParticle::Vector, TrackingParticle::Point > > &momVert_tPCeff, std::vector< size_t > &selected_tPCeff) const |
void | trackDR (const edm::View< reco::Track > &trackCollection, const edm::View< reco::Track > &trackCollectionDr, DynArray< float > &dR_trk) const |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDAnalyzerBase | |
typedef EDAnalyzerAdaptorBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from DQMEDAnalyzer | |
static std::shared_ptr< dqmDetails::NoCache > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
static std::shared_ptr< dqmDetails::NoCache > | globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *) |
static void | globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *) |
Static Public Member Functions inherited from edm::stream::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 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 Member Functions inherited from MultiTrackValidatorBase | |
MultiTrackValidatorBase (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC, bool isSeed=false) | |
Constructor. More... | |
virtual | ~MultiTrackValidatorBase ()(false) |
Destructor. More... | |
Class that prodecs histrograms to validate Track Reconstruction performances
Definition at line 18 of file MultiTrackValidator.h.
|
private |
Definition at line 74 of file MultiTrackValidator.h.
|
private |
Definition at line 75 of file MultiTrackValidator.h.
MultiTrackValidator::MultiTrackValidator | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 52 of file MultiTrackValidator.cc.
References _simHitTpMapTag, associatormapRtSs, associatormapStRs, MultiTrackValidatorBase::associators, associatorTokens, AlignmentProducer_cff::beamSpotTag, calculateDrSingleCollection_, edm::EDConsumerBase::consumesCollector(), cosmictpSelector, dirName_, dodEdxPlots_, doMVAPlots_, doPlotsOnlyForTruePV_, doPVAssociationPlots_, doSeedPlots_, dRtpSelector, dRtpSelectorNoPtCut, dRTrackSelector, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), histoProducerAlgo_, MultiTrackValidatorBase::label_tv, tablePrinter::labels, edm::EDConsumerBase::labelsForToken(), MultiTrackValidatorBase::labelToken, labelTokenForDrCalculation, MultiTrackValidatorBase::m_dEdx1Tag, MultiTrackValidatorBase::m_dEdx2Tag, MTVHistoProducerAlgoForTracker::makeRecoTrackSelectorFromTPSelectorParameters(), edm::ProductLabels::module, mvaQualityCollectionTokens_, recoVertexToken_, TrackRefitter_38T_cff::src, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, tpNLayersToken_, tpNPixelLayersToken_, tpNStripStereoLayersToken_, tpSelector, UseAssociators, useGsf, edm::vector_transform(), and vertexAssociatorToken_.
|
virtual |
|
override |
Method called once per event.
Definition at line 449 of file MultiTrackValidator.cc.
References _simHitTpMapTag, funct::abs(), reco::TrackToTrackingParticleAssociator::associateRecoToSim(), reco::TrackToTrackingParticleAssociator::associateSimToReco(), associationMapFilterValues(), associatormapRtSs, associatormapStRs, MultiTrackValidatorBase::associators, associatorTokens, MultiTrackValidatorBase::bsSrc, EncodedEventId::bunchCrossing(), calculateDrSingleCollection_, ParametersDefinerForTP::clone(), cosmictpSelector, declareDynArray, dodEdxPlots_, doMVAPlots_, doPlotsOnlyForTruePV_, doPVAssociationPlots_, doRecoTrackPlots_, doSeedPlots_, doSimTrackPlots_, doSummaryPlots_, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, dRtpSelector, dRtpSelectorNoPtCut, dRTrackSelector, TrackingParticleIP::dxy(), TrackingParticleIP::dz(), relativeConstraints::empty, edm::AssociationMap< Tag >::end(), EncodedEventId::event(), TrackingParticle::eventId(), Exception, edm::AssociationMap< Tag >::find(), plotBeamSpotDB::first, edm::EventSetup::get(), edm::Event::getByToken(), PileupSummaryInfo::getPU_NumInteractions(), getRecoPVPosition(), getSimPVPosition(), h_assoc2_coll, h_assoc_coll, h_assoc_coll_allPt, h_looper_coll, h_pileup_coll, h_reco_coll, h_simul_coll, h_simul_coll_allPt, reco::TrackBase::highPurity, histoProducerAlgo_, mps_fire::i, MultiTrackValidatorBase::ignoremissingtkcollection_, CosmicTrackingParticleSelector::initEvent(), edm::EDGetTokenT< T >::isUninitialized(), MultiTrackValidatorBase::label, MultiTrackValidatorBase::label_pileupinfo, MultiTrackValidatorBase::label_tp_effic, MultiTrackValidatorBase::label_tp_effic_refvector, MultiTrackValidatorBase::label_tp_fake, MultiTrackValidatorBase::label_tp_fake_refvector, MultiTrackValidatorBase::label_tv, MultiTrackValidatorBase::labelToken, labelTokenForDrCalculation, LogDebug, LogTrace, reco::TrackBase::loose, MultiTrackValidatorBase::m_dEdx1Tag, MultiTrackValidatorBase::m_dEdx2Tag, hpstanc_transforms::max, TrackingParticle::momentum(), eostools::move(), mvaQualityCollectionTokens_, TrackingParticle::numberOfTrackerHits(), MultiTrackValidatorBase::parametersDefiner, parametersDefinerIsCosmic_, reco::BeamSpot::position(), edm::Handle< T >::product(), edm::RefToBaseVector< T >::push_back(), edm::RefVector< C, T, F >::push_back(), edm::View< T >::refAt(), simPVMaxZ_, edm::RefVector< C, T, F >::size(), edm::View< T >::size(), findQualityFiles::size, mathSSE::sqrt(), tpDR(), tpNLayersToken_, tpNPixelLayersToken_, tpNStripStereoLayersToken_, tpParametersAndSelection(), HiIsolationCommonParameters_cff::track, findElectronsInSiStrips_cfi::trackCollection, TrackValidationHeavyIons_cff::trackCollectionForDrCalculation, trackDR(), trackFromSeedFitFailed(), UseAssociators, TrackingParticle::vertex(), and w.
|
overridevirtual |
Method called to book the DQM histograms.
Implements DQMEDAnalyzer.
Definition at line 178 of file MultiTrackValidator.cc.
References patPFMETCorrections_cff::algo, trackingPlots::assoc, MultiTrackValidatorBase::associators, DQMStore::IBooker::book1D(), DQMStore::IBooker::cd(), TrackerOfflineValidation_Dqm_cff::dirName, dirName_, dodEdxPlots_, doMVAPlots_, doPVAssociationPlots_, doRecoTrackPlots_, doSeedPlots_, doSimPlots_, doSimTrackPlots_, doSummaryPlots_, edm::RefVector< C, T, F >::empty(), Exception, h_assoc2_coll, h_assoc_coll, h_assoc_coll_allPt, h_looper_coll, h_pileup_coll, h_reco_coll, h_simul_coll, h_simul_coll_allPt, edm::IndexSet::has(), histoProducerAlgo_, mps_fire::i, edm::RefVector< C, T, F >::id(), edm::IndexSet::insert(), edm::InputTag::instance(), edm::InputTag::label(), MultiTrackValidatorBase::label, mvaQualityCollectionTokens_, edm::InputTag::process(), python.rootplot.root2matplotlib::replace(), edm::IndexSet::reserve(), DQMStore::IBooker::setCurrentFolder(), edm::RefVector< C, T, F >::size(), and findQualityFiles::size.
|
private |
Definition at line 305 of file MultiTrackValidator.cc.
References reco::VertexToTrackingVertexAssociator::associateRecoToSim(), EncodedEventId::bunchCrossing(), EncodedEventId::event(), TrackingVertex::eventId(), recoVertexToken_, and vertexAssociatorToken_.
Referenced by analyze().
|
private |
Definition at line 296 of file MultiTrackValidator.cc.
Referenced by analyze().
|
private |
Definition at line 388 of file MultiTrackValidator.cc.
References reco::deltaR2(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, dRtpSelector, PVValHelper::eta, hpstanc_transforms::max, AlCaHLTBitMon_ParallelJobs::p, phi, edm::RefVector< C, T, F >::size(), and mathSSE::sqrt().
Referenced by analyze().
|
private |
Definition at line 331 of file MultiTrackValidator.cc.
References EncodedEventId::bunchCrossing(), cosmictpSelector, doSimPlots_, TrackingParticle::eventId(), histoProducerAlgo_, ParametersDefinerForTP::momentum(), TrackingParticle::momentum(), parametersDefinerIsCosmic_, edm::RefVector< C, T, F >::size(), tpSelector, ParametersDefinerForTP::vertex(), and TrackingParticle::vertex().
Referenced by analyze().
|
private |
Definition at line 419 of file MultiTrackValidator.cc.
References reco::deltaR2(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, PVValHelper::eta, mps_fire::i, hpstanc_transforms::max, min(), AlCaHLTBitMon_ParallelJobs::p, phi, edm::View< T >::size(), mathSSE::sqrt(), HiIsolationCommonParameters_cff::track, and trackFromSeedFitFailed().
Referenced by analyze().
|
private |
Definition at line 90 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 67 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 66 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 65 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
protected |
Definition at line 37 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 85 of file MultiTrackValidator.h.
Referenced by analyze(), MultiTrackValidator(), and tpParametersAndSelection().
|
private |
Definition at line 78 of file MultiTrackValidator.h.
Referenced by bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 43 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 46 of file MultiTrackValidator.h.
Referenced by analyze(), bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 38 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
protected |
Definition at line 44 of file MultiTrackValidator.h.
Referenced by analyze(), bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 42 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), and bookHistograms().
|
protected |
Definition at line 45 of file MultiTrackValidator.h.
Referenced by analyze(), bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 40 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), bookHistograms(), and tpParametersAndSelection().
|
protected |
Definition at line 41 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), and bookHistograms().
|
protected |
Definition at line 39 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 86 of file MultiTrackValidator.h.
Referenced by analyze(), MultiTrackValidator(), and tpDR().
|
private |
Definition at line 87 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 88 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 96 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 95 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 96 of file MultiTrackValidator.h.
Referenced by analyze(), and bookHistograms().
|
protected |
Definition at line 47 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), bookHistograms(), MultiTrackValidator(), and tpParametersAndSelection().
|
private |
Definition at line 91 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 76 of file MultiTrackValidator.h.
Referenced by analyze(), bookHistograms(), and MultiTrackValidator().
|
protected |
Definition at line 36 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), and tpParametersAndSelection().
|
private |
Definition at line 92 of file MultiTrackValidator.h.
Referenced by getRecoPVPosition(), and MultiTrackValidator().
|
private |
Definition at line 81 of file MultiTrackValidator.h.
Referenced by analyze().
|
private |
Definition at line 69 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 70 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 71 of file MultiTrackValidator.h.
Referenced by analyze(), and MultiTrackValidator().
|
private |
Definition at line 84 of file MultiTrackValidator.h.
Referenced by MultiTrackValidator(), and tpParametersAndSelection().
|
protected |
Definition at line 35 of file MultiTrackValidator.h.
Referenced by MultiTrackValidatorGenPs::analyze(), analyze(), MultiTrackValidator(), and MultiTrackValidatorGenPs::MultiTrackValidatorGenPs().
|
private |
Definition at line 80 of file MultiTrackValidator.h.
Referenced by MultiTrackValidator().
|
private |
Definition at line 93 of file MultiTrackValidator.h.
Referenced by getRecoPVPosition(), and MultiTrackValidator().