#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_ |
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 43 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References errorPrintedForColl_, edm::ParameterSet::getParameter(), cmsLHEtoEOSManager::l, reco_vertex_collection_tokens_, and reco_vertex_collections_.
|
override |
Definition at line 67 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
|
overridevirtual |
Reimplemented from DQMEDAnalyzer.
Definition at line 1107 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References cms::cuda::assert(), SplitLinear::begin, calculatePurityAndFillHistograms(), computePairDistance(), gather_cfg::cout, do_generic_sim_plots_, dataset::end, errorPrintedForColl_, fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenPVHistograms(), fillRecoAssociatedGenVertexHistograms(), fillResolutionAndPullHistograms(), spr::find(), edm::Event::getByToken(), getRecoPVs(), getSimPVs(), HIGHEST_PT, IS_ASSOC2ANY_RECO, IS_ASSOC2FIRST_RECO, gpuVertexFinder::iv, label, matchReco2SimVertices(), matchSim2RecoVertices(), mes_, convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, edm::Handle< T >::product(), MetAnalyzer::pv(), r2s_, dt_dqm_sourceclient_common_cff::reco, reco_vertex_collection_tokens_, reco_vertex_collections_, recoToSimAssociationToken_, resetSimPVAssociation(), s2r_, simToRecoAssociationToken_, AlCaHLTBitMon_QueryRunRegistry::string, trackingParticleCollectionToken_, trackingVertexCollectionToken_, findQualityFiles::v, vecPileupSummaryInfoToken_, trackerHitRTTI::vector, verbose_, and vertexAssociatorToken_.
|
overridevirtual |
Implements DQMEDAnalyzer.
Definition at line 72 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), do_generic_sim_plots_, alignCSCRings::e, cmsLHEtoEOSManager::l, label, SiStripPI::max, hlt_dqm_clientPB-live_cfg::me, mes_, min(), mergeVDriftHistosByStation::name, PostProcessorHGCAL_cfi::prefix, reco_vertex_collections_, root_folder_, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, fw3dlego::xbins, hlt_dqm_clientPB-live_cfg::xmax, hlt_dqm_clientPB-live_cfg::xmin, SiStrip_OfflineMonitoring_cff::ymax, and SiStrip_OfflineMonitoring_cff::ymin.
|
private |
Definition at line 727 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References mps_fire::i, label, matchRecoTrack2SimSignal(), mes_, combine::missing, PostProcessorHGCAL_cfi::prefix, DiDispStaMuonMonitor_cfi::pt, AlCaHLTBitMon_QueryRunRegistry::string, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), and findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 1363 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 552 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, PostProcessorHGCAL_cfi::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 487 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 540 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References label, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 508 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 640 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References deltar::bestMatch(), label, mes_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PostProcessorHGCAL_cfi::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 952 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), gather_cfg::cout, HLT_FULL_cff::distance, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), min(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::num_matched_sim_tracks, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::pt, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::ptsq, r2s_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, mathSSE::sqrt(), findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 795 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), cms::cuda::assert(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::average_match_quality, gather_cfg::cout, HLT_FULL_cff::distance, alignCSCRings::e, edm::AssociationMap< Tag >::end(), edmPickEvents::event, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, edm::AssociationMap< Tag >::find(), min(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::num_matched_reco_tracks, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptot, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, s2r_, use_only_charged_tracks_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1073 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References calculateVertexSharedTracks(), gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), r2s_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 710 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), newFWLiteAna::found, r2s_, and cmsswSequenceInfo::tp.
Referenced by calculatePurityAndFillHistograms().
|
private |
Definition at line 1044 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1037 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().