#include <Validation/RecoVertex/src/PrimaryVertexAnalyzer4PUSlimmed.cc>
Classes | |
struct | recoPrimaryVertex |
struct | simPrimaryVertex |
Private Types | |
typedef math::XYZTLorentzVector | LorentzVector |
enum | SignalVertexKind { HIGHEST_PT = 0, IS_ASSOC2FIRST_RECO = 1, IS_ASSOC2ANY_RECO = 2 } |
Private Attributes | |
const bool | do_generic_sim_plots_ |
std::vector< bool > | errorPrintedForColl_ |
std::map< std::string, std::map< std::string, MonitorElement * > > | mes_ |
const reco::RecoToSimCollection * | r2s_ |
std::vector< edm::EDGetTokenT< edm::View< reco::Vertex > > > | reco_vertex_collection_tokens_ |
std::vector< edm::InputTag > | reco_vertex_collections_ |
edm::EDGetTokenT< reco::RecoToSimCollection > | recoToSimAssociationToken_ |
std::string | root_folder_ |
const reco::SimToRecoCollection * | s2r_ |
edm::EDGetTokenT< reco::SimToRecoCollection > | simToRecoAssociationToken_ |
edm::EDGetTokenT< TrackingParticleCollection > | trackingParticleCollectionToken_ |
edm::EDGetTokenT< TrackingVertexCollection > | trackingVertexCollectionToken_ |
bool | use_only_charged_tracks_ |
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > | vecPileupSummaryInfoToken_ |
bool | verbose_ |
edm::EDGetTokenT< reco::VertexToTrackingVertexAssociator > | vertexAssociatorToken_ |
Additional Inherited Members | |
Public Types inherited from DQMEDAnalyzer | |
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 | |
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 edm::ProducerBase | |
ProducesCollector | producesCollector () |
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) |
Protected Attributes inherited from DQMEDAnalyzer | |
edm::EDPutTokenT< DQMToken > | lumiToken_ |
edm::EDPutTokenT< DQMToken > | runToken_ |
Description: primary vertex analyzer for events with pile-up
Implementation: <Notes on="" implementation>="">
Definition at line 61 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Definition at line 62 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
private |
Enumerator | |
---|---|
HIGHEST_PT | |
IS_ASSOC2FIRST_RECO | |
IS_ASSOC2ANY_RECO |
Definition at line 64 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
explicit |
Definition at line 44 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::EDConsumerBase::consumes(), errorPrintedForColl_, edm::ParameterSet::getParameter(), cmsLHEtoEOSManager::l, reco_vertex_collection_tokens_, and reco_vertex_collections_.
|
override |
Definition at line 68 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
|
override |
Definition at line 1108 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References reco::VertexToTrackingVertexAssociator::associateRecoToSim(), reco::VertexToTrackingVertexAssociator::associateSimToReco(), begin, calculatePurityAndFillHistograms(), computePairDistance(), gather_cfg::cout, do_generic_sim_plots_, end, errorPrintedForColl_, fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenPVHistograms(), fillRecoAssociatedGenVertexHistograms(), fillResolutionAndPullHistograms(), spr::find(), edm::Event::getByToken(), getRecoPVs(), getSimPVs(), HIGHEST_PT, IS_ASSOC2ANY_RECO, IS_ASSOC2FIRST_RECO, edm::HandleBase::isValid(), label, matchReco2SimVertices(), matchSim2RecoVertices(), mes_, convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, edm::Handle< T >::product(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, MetAnalyzer::pv(), r2s_, reco_vertex_collection_tokens_, reco_vertex_collections_, recoToSimAssociationToken_, resetSimPVAssociation(), s2r_, simToRecoAssociationToken_, AlCaHLTBitMon_QueryRunRegistry::string, trackingParticleCollectionToken_, trackingVertexCollectionToken_, findQualityFiles::v, vecPileupSummaryInfoToken_, verbose_, packedPFCandidates_cfi::vertexAssociator, and vertexAssociatorToken_.
|
overridevirtual |
Implements DQMEDAnalyzer.
Definition at line 73 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References trigObjTnPSource_cfi::bins, dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), dqm::dqmstoreimpl::DQMStore::IBooker::bookProfile(), do_generic_sim_plots_, MillePedeFileConverter_cfg::e, vertexPlots::e4, cmsLHEtoEOSManager::l, label, SiStripPI::max, hlt_dqm_clientPB-live_cfg::me, mes_, min(), Skims_PA_cff::name, ZMuMuAnalysisNtupler_cff::prefix, reco_vertex_collections_, root_folder_, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, fw3dlego::xbins, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
|
private |
Definition at line 728 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References mps_fire::i, label, matchRecoTrack2SimSignal(), mes_, combine::missing, ZMuMuAnalysisNtupler_cff::prefix, DiDispStaMuonMonitor_cfi::pt, HLT_2018_cff::pt2, AlCaHLTBitMon_QueryRunRegistry::string, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), findQualityFiles::v, and bphysicsOniaDQM_cfi::vertex.
Referenced by analyze().
|
private |
Definition at line 1364 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), dqm::impl::MonitorElement::Fill(), mps_fire::i, dqmiolumiharvest::j, and z.
Referenced by analyze().
|
private |
Definition at line 553 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::closest_vertex_distance_z, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::DUPLICATE, fillResolutionAndPullHistograms(), mps_fire::i, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::kind_of_vertex, label, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::MATCHED, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::MERGED, mes_, reco::Vertex::ndof(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::num_matched_reco_tracks, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::num_matched_sim_tracks, ZMuMuAnalysisNtupler_cff::prefix, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::purity, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices_internal, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices_num_shared_tracks, AlCaHLTBitMon_QueryRunRegistry::string, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 488 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::closest_vertex_distance_z, EncodedEventId::event(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 541 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References label, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 509 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::closest_vertex_distance_z, label, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::r, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::rec_vertices, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 641 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References deltar::bestMatch(), label, mes_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, ZMuMuAnalysisNtupler_cff::prefix, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::pt, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::sim_vertices_internal, AlCaHLTBitMon_QueryRunRegistry::string, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::x, reco::Vertex::xError(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::y, reco::Vertex::yError(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::z, and reco::Vertex::zError().
Referenced by analyze(), and fillGenAssociatedRecoVertexHistograms().
|
private |
Definition at line 953 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), gather_cfg::cout, HLT_2018_cff::distance, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), muonTagProbeFilters_cff::matched, min(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::num_matched_sim_tracks, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::pt, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, r2s_, mathSSE::sqrt(), pfDeepBoostedJetPreprocessParams_cfi::sv, findQualityFiles::v, V0Monitor_cff::v0, and verbose_.
Referenced by analyze().
|
private |
Definition at line 796 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), gather_cfg::cout, HLT_2018_cff::distance, MillePedeFileConverter_cfg::e, edm::AssociationMap< Tag >::end(), event(), edm::AssociationMap< Tag >::find(), min(), EgammaValidation_cff::pdgId, s2r_, pfDeepBoostedJetPreprocessParams_cfi::sv, use_only_charged_tracks_, findQualityFiles::v, V0Monitor_cff::v0, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1074 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References calculateVertexSharedTracks(), gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), muonTagProbeFilters_cff::matched, r2s_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 711 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), newFWLiteAna::found, and r2s_.
Referenced by calculatePurityAndFillHistograms().
|
private |
Definition at line 1045 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), muonTagProbeFilters_cff::matched, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1038 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 167 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 183 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 170 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), calculatePurityAndFillHistograms(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenPVHistograms(), fillRecoAssociatedGenVertexHistograms(), and fillResolutionAndPullHistograms().
|
private |
Definition at line 171 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), matchReco2SimVertices(), and matchRecoTrack2SimSignal().
|
private |
Definition at line 175 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 176 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 180 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 168 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by bookHistograms().
|
private |
Definition at line 172 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and getSimPVs().
|
private |
Definition at line 179 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 177 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 178 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 166 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by getSimPVs().
|
private |
Definition at line 174 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 165 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), getSimPVs(), matchReco2SimVertices(), and matchSim2RecoVertices().
|
private |
Definition at line 181 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().