#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 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 44 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::EDConsumerBase::consumes(), errorPrintedForColl_, edm::ParameterSet::getParameter(), checklumidiff::l, reco_vertex_collection_tokens_, and reco_vertex_collections_.
PrimaryVertexAnalyzer4PUSlimmed::~PrimaryVertexAnalyzer4PUSlimmed | ( | ) |
Definition at line 75 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
|
overridevirtual |
Definition at line 1263 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References reco::VertexToTrackingVertexAssociator::associateRecoToSim(), reco::VertexToTrackingVertexAssociator::associateSimToReco(), begin, calculatePurityAndFillHistograms(), computePairDistance(), gather_cfg::cout, do_generic_sim_plots_, end, errorPrintedForColl_, HcalObjRepresent::Fill(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenPVHistograms(), fillRecoAssociatedGenVertexHistograms(), fillResolutionAndPullHistograms(), spr::find(), edm::Event::getByToken(), getRecoPVs(), getSimPVs(), HIGHEST_PT, IS_ASSOC2ANY_RECO, IS_ASSOC2FIRST_RECO, edm::HandleBase::isValid(), diffTwoXMLs::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 80 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References create_public_pileup_plots::bins, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookProfile(), do_generic_sim_plots_, MillePedeFileConverter_cfg::e, vertexPlots::e4, MonitorElement::getTH2F(), checklumidiff::l, diffTwoXMLs::label, hpstanc_transforms::max, mes_, min(), dataset::name, tablePrinter::prefix, reco_vertex_collections_, root_folder_, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, fw3dlego::xbins, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, Phase2TrackerMonitorDigi_cff::ymax, and Phase2TrackerMonitorDigi_cff::ymin.
|
private |
Definition at line 858 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References mps_fire::i, diffTwoXMLs::label, matchRecoTrack2SimSignal(), mes_, tablePrinter::prefix, EnergyCorrector::pt, hiDetachedQuadStep_cff::pt2, AlCaHLTBitMon_QueryRunRegistry::string, reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), and findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 1542 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), MonitorElement::Fill(), mps_fire::i, and z.
Referenced by analyze().
|
private |
Definition at line 675 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::closest_vertex_distance_z, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::DUPLICATE, fillResolutionAndPullHistograms(), mps_fire::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, tablePrinter::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 601 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 661 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References diffTwoXMLs::label, mes_, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::x, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::y, and PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::z.
Referenced by analyze().
|
private |
Definition at line 625 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 770 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References deltar::bestMatch(), diffTwoXMLs::label, mes_, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex::nRecoTrk, tablePrinter::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 1097 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), gather_cfg::cout, SoftLeptonByDistance_cfi::distance, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), electronMatch_cfi::matched, 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 928 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References funct::abs(), gather_cfg::cout, SoftLeptonByDistance_cfi::distance, MillePedeFileConverter_cfg::e, edm::AssociationMap< Tag >::end(), event(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex::eventId, edm::AssociationMap< Tag >::find(), min(), NULL, cosmictrackingParticleSelector_cfi::pdgId, s2r_, use_only_charged_tracks_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1224 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References calculateVertexSharedTracks(), gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), electronMatch_cfi::matched, r2s_, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 841 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), runEdmFileComparison::found, and r2s_.
Referenced by calculatePurityAndFillHistograms().
|
private |
Definition at line 1190 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References gather_cfg::cout, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), electronMatch_cfi::matched, findQualityFiles::v, and verbose_.
Referenced by analyze().
|
private |
Definition at line 1182 of file PrimaryVertexAnalyzer4PUSlimmed.cc.
References findQualityFiles::v.
Referenced by analyze().
|
private |
Definition at line 181 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 197 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 184 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), calculatePurityAndFillHistograms(), fillGenAssociatedRecoVertexHistograms(), fillGenericGenVertexHistograms(), fillRecoAssociatedGenPVHistograms(), fillRecoAssociatedGenVertexHistograms(), and fillResolutionAndPullHistograms().
|
private |
Definition at line 185 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), matchReco2SimVertices(), and matchRecoTrack2SimSignal().
|
private |
Definition at line 189 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 190 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), bookHistograms(), and PrimaryVertexAnalyzer4PUSlimmed().
|
private |
Definition at line 194 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 182 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by bookHistograms().
|
private |
Definition at line 186 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), and getSimPVs().
|
private |
Definition at line 193 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 191 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 192 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 180 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by getSimPVs().
|
private |
Definition at line 188 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().
|
private |
Definition at line 179 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze(), getRecoPVs(), getSimPVs(), matchReco2SimVertices(), and matchSim2RecoVertices().
|
private |
Definition at line 195 of file PrimaryVertexAnalyzer4PUSlimmed.h.
Referenced by analyze().