#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 } |
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) |
Description: primary vertex analyzer for events with pile-up
Implementation: <Notes on="" implementation>="">
Definition at line 63 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Definition at line 64 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
private |
Enumerator | |
---|---|
HIGHEST_PT | |
IS_ASSOC2FIRST_RECO | |
IS_ASSOC2ANY_RECO |
Definition at line 66 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
explicit |
Definition at line 28 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::EDConsumerBase::consumes(), edm::ParameterSet::getParameter(), cmsLHEtoEOSManager::l, reco_vertex_collection_tokens_, and reco_vertex_collections_.
PrimaryVertexAnalyzer4PUSlimmed::~PrimaryVertexAnalyzer4PUSlimmed | ( | ) |
Definition at line 65 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
|
overridevirtual |
Implements edm::stream::EDAnalyzerBase.
Definition at line 1194 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References begin, calculatePurityAndFillHistograms(), computePairDistance(), gather_cfg::cout, edmView_recoTrack_Token_, end, HcalObjRepresent::Fill(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenVertexHistograms(), spr::find(), edm::Event::getByToken(), getRecoPVs(), getSimPVs(), HIGHEST_PT, IS_ASSOC2ANY_RECO, IS_ASSOC2FIRST_RECO, diffTwoXMLs::label, matchReco2SimVertices(), matchSim2RecoVertices(), mes_, AlCaHLTBitMon_ParallelJobs::p, edm::Handle< T >::product(), r2s_, dt_dqm_sourceclient_common_cff::reco, reco_vertex_collection_tokens_, reco_vertex_collections_, recoToSimAssociationToken_, recoTrackCollectionToken_, resetSimPVAssociation(), s2r_, simToRecoAssociationToken_, AlCaHLTBitMon_QueryRunRegistry::string, trackingParticleCollectionToken_, trackingVertexCollectionToken_, findQualityFiles::v, vecPileupSummaryInfoToken_, verbose_, and vertexAssociatorToken_.
|
overridevirtual |
Implements DQMEDAnalyzer.
Definition at line 70 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), MonitorElement::getTH2F(), cmsLHEtoEOSManager::l, diffTwoXMLs::label, bookConverter::max, mes_, min(), mergeVDriftHistosByStation::name, reco_vertex_collections_, root_folder_, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, fw3dlego::xbins, SiStripMonitorClusterAlca_cfi::xmax, SiStripMonitorClusterAlca_cfi::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
|
private |
Definition at line 791 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References i, diffTwoXMLs::label, matchRecoTrack2SimSignal(), mes_, combine::missing, EnergyCorrector::pt, AlCaHLTBitMon_QueryRunRegistry::string, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), and findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 1431 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), MonitorElement::Fill(), i, j, and z.
Referenced by analyze().
|
private |
Definition at line 636 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::closest_vertex_distance_z, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::DUPLICATE, fillResolutionAndPullHistograms(), i, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::kind_of_vertex, diffTwoXMLs::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, 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 576 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 600 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::closest_vertex_distance_z, diffTwoXMLs::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 731 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References deltar::bestMatch(), diffTwoXMLs::label, mes_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, 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 fillGenAssociatedRecoVertexHistograms().
|
private |
Definition at line 1029 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::ptsq, r2s_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::recVtx, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 861 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), assert(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::average_match_quality, gather_cfg::cout, HLT_FULL_cff::distance, alignCSCRings::e, edm::AssociationMap< Tag >::end(), event(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, edm::AssociationMap< Tag >::find(), min(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::nGenTrk, NULL, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::num_matched_reco_tracks, SingleMuPt40Fwdv2_cfi_GEN_SIM::pdgId, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptot, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::ptsq, s2r_, use_only_charged_tracks_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1155 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 774 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), newFWLiteAna::found, and r2s_.
Referenced by calculatePurityAndFillHistograms().
|
private |
Definition at line 1121 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 1113 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 177 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
private |
Definition at line 188 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 180 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), calculatePurityAndFillHistograms(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenVertexHistograms(), and fillResolutionAndPullHistograms().
|
private |
Definition at line 181 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), matchReco2SimVertices(), and matchRecoTrack2SimSignal().
|
private |
Definition at line 185 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 186 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 192 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 187 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 178 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by bookHistograms().
|
private |
Definition at line 182 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and getSimPVs().
|
private |
Definition at line 176 of file PrimaryVertexAnalyzer4PUSlimmed.h.
|
private |
Definition at line 191 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 189 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 190 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 175 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by getSimPVs().
|
private |
Definition at line 184 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 174 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), getSimPVs(), matchReco2SimVertices(), and matchSim2RecoVertices().
|
private |
Definition at line 193 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().