#include <PF_PU_AssoMapAlgos.h>
Public Member Functions | |
std::pair< std::unique_ptr< TrackToVertexAssMap >, std::unique_ptr< VertexToTrackAssMap > > | createMappings (edm::Handle< reco::TrackCollection > trkcollH) |
std::unique_ptr< TrackToVertexAssMap > | CreateTrackToVertexMap (edm::Handle< reco::TrackCollection >) |
std::unique_ptr< VertexToTrackAssMap > | CreateVertexToTrackMap (edm::Handle< reco::TrackCollection >) |
virtual void | GetInputCollections (edm::Event &, const edm::EventSetup &) |
PF_PU_AssoMapAlgos (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
PF_PU_AssoMapAlgos (const edm::ParameterSet &, edm::ConsumesCollector &) | |
std::unique_ptr< TrackToVertexAssMap > | SortAssociationMap (TrackToVertexAssMap *, edm::Handle< reco::TrackCollection >) |
template<typename TREF > | |
VertexRef | TrackWeightAssociation (const TREF &trackRef, const std::vector< reco::VertexRef > &vtxcollV) |
virtual | ~PF_PU_AssoMapAlgos () noexcept(false) |
Protected Member Functions | |
std::vector< reco::VertexRef > | CreateVertexVector (edm::Handle< reco::VertexCollection >) |
int | DefineQuality (int, int, double) |
void | EraseVertex (std::vector< reco::VertexRef > &, reco::VertexRef) |
VertexStepPair | FindAssociation (const reco::TrackRef &, const std::vector< reco::VertexRef > &, edm::ESHandle< MagneticField >, edm::ESHandle< GlobalTrackingGeometry >, edm::Handle< reco::BeamSpot >, int) |
Definition at line 84 of file PF_PU_AssoMapAlgos.h.
|
inline |
Definition at line 87 of file PF_PU_AssoMapAlgos.h.
PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 27 of file PF_PU_AssoMapAlgos.cc.
References cleanedColls_, edm::ConsumesCollector::consumes(), ConversionsCollectionToken_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ignoremissingpfcollection_, input_doReassociation_, input_FinalAssociation_, input_MaxNumAssociations_, input_nTrack_, KshortCollectionToken_, LambdaCollectionToken_, NIVertexCollectionToken_, token_BeamSpot_, and token_VertexCollection_.
|
inlinevirtualnoexcept |
Definition at line 90 of file PF_PU_AssoMapAlgos.h.
|
staticprivate |
Definition at line 399 of file PF_PU_AssoMapAlgos.cc.
References CustomPhysics_cfi::gamma, and ConversionTools::matchesConversion().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 638 of file PF_PU_AssoMapAlgos.cc.
Referenced by FindAssociation().
|
staticprivate |
Definition at line 533 of file PF_PU_AssoMapAlgos.cc.
References reco::RecoChargedCandidate::track().
Referenced by FindAssociation().
std::pair< std::unique_ptr< TrackToVertexAssMap >, std::unique_ptr< VertexToTrackAssMap > > PF_PU_AssoMapAlgos::createMappings | ( | edm::Handle< reco::TrackCollection > | trkcollH | ) |
Definition at line 109 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), beamspotH, bFieldH, CreateVertexVector(), DefineQuality(), HLT_2024v14_cff::distance, EraseVertex(), FindAssociation(), input_MaxNumAssociations_, eostools::move(), quality, edm::second(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setTrackingGeometry(), trackingGeometryH, and vtxcollH.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and PF_PU_AssoMap::produce().
std::unique_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::CreateTrackToVertexMap | ( | edm::Handle< reco::TrackCollection > | trkcollH | ) |
Definition at line 160 of file PF_PU_AssoMapAlgos.cc.
References createMappings().
std::unique_ptr< VertexToTrackAssMap > PF_PU_AssoMapAlgos::CreateVertexToTrackMap | ( | edm::Handle< reco::TrackCollection > | trkcollH | ) |
Definition at line 169 of file PF_PU_AssoMapAlgos.cc.
References createMappings().
|
protected |
Definition at line 256 of file PF_PU_AssoMapAlgos.cc.
References mps_fire::i, L1TkPrimaryVertex_cfi::nVtx, convertSQLitetoXML_cfg::output, and vtxcollH.
Referenced by PFCand_AssoMapAlgos::createMappings(), and createMappings().
|
protected |
Definition at line 819 of file PF_PU_AssoMapAlgos.cc.
References HLT_2024v14_cff::distance, fin_50, fin_70, quality, sec_50, sec_70, tw_50, tw_70, and tw_90.
Referenced by PFCand_AssoMapAlgos::createMappings(), and createMappings().
|
staticprivate |
Definition at line 351 of file PF_PU_AssoMapAlgos.cc.
References PbPb_ZMuSkimMuonDPG_cff::deltaR, dqm-mbProfile::log, mathSSE::sqrt(), funct::tan(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by GetCleanedKshort(), GetCleanedLambda(), and GetCleanedNI().
|
protected |
Definition at line 270 of file PF_PU_AssoMapAlgos.cc.
Referenced by PFCand_AssoMapAlgos::createMappings(), and createMappings().
|
protected |
Definition at line 726 of file PF_PU_AssoMapAlgos.cc.
References cleanedConvCollP, cleanedKshortCollP, cleanedLambdaCollP, cleanedNICollP, ComesFromConversion(), ComesFromNI(), ComesFromV0Decay(), FindClosest3D(), FindClosestZ(), FindConversionVertex(), FindNIVertex(), FindV0Vertex(), CustomPhysics_cfi::gamma, input_doReassociation_, input_FinalAssociation_, input_nTrack_, missingColls, reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setTrackingGeometry(), trackingGeometryH, and TrackWeightAssociation().
Referenced by PFCand_AssoMapAlgos::createMappings(), and createMappings().
|
staticprivate |
Definition at line 317 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), HLT_2024v14_cff::distance, TrackValidation_cff::e5, beamSpotPI::nTracks, and mathSSE::sqrt().
Referenced by FindAssociation(), FindConversionVertex(), FindNIVertex(), and FindV0Vertex().
|
staticprivate |
Definition at line 285 of file PF_PU_AssoMapAlgos.cc.
References TrackValidation_cff::e5, beamSpotPI::nTracks, and mathSSE::sqrt().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 416 of file PF_PU_AssoMapAlgos.cc.
References FindClosest3D(), CustomPhysics_cfi::gamma, and displacedMuons_cfi::photon.
Referenced by FindAssociation().
|
staticprivate |
Definition at line 656 of file PF_PU_AssoMapAlgos.cc.
References bFieldH, FindClosest3D(), reco::PFDisplacedVertex::isIncomingTrack(), reco::PFDisplacedVertex::isThereMergedTracks(), reco::PFDisplacedVertex::isTherePrimaryTracks(), reco::Vertex::originalTrack(), reco::Vertex::position(), reco::PFDisplacedVertex::primaryMomentum(), tkAlTrackRefitSequence_cff::refittedTracks, reco::Vertex::refittedTracks(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setTrackingGeometry(), trackingGeometryH, and TrackWeightAssociation().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 573 of file PF_PU_AssoMapAlgos.cc.
References bFieldH, FindClosest3D(), reco::LeafCandidate::momentum(), trackingGeometryH, and reco::LeafCandidate::vertex().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 375 of file PF_PU_AssoMapAlgos.cc.
References convCollH.
Referenced by GetInputCollections().
|
staticprivate |
Definition at line 441 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), kMass, reco::BeamSpot::position(), and met_cff::significance.
Referenced by GetInputCollections().
|
staticprivate |
Definition at line 487 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), lamMass, reco::BeamSpot::position(), and met_cff::significance.
Referenced by GetInputCollections().
|
staticprivate |
Definition at line 597 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), reco::BeamSpot::position(), and met_cff::significance.
Referenced by GetInputCollections().
|
virtual |
Reimplemented in PFCand_AssoMapAlgos.
Definition at line 65 of file PF_PU_AssoMapAlgos.cc.
References beamspotH, bFieldH, cleanedColls_, cleanedConvCollP, cleanedKshortCollP, cleanedLambdaCollP, cleanedNICollP, convCollH, ConversionsCollectionToken_, displVertexCollH, GetCleanedConversions(), GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), edm::EventSetup::getHandle(), iEvent, ignoremissingpfcollection_, KshortCollectionToken_, LambdaCollectionToken_, maxNumWarnings_, missingColls, NIVertexCollectionToken_, numWarnings_, token_BeamSpot_, token_bField_, token_TrackingGeometry_, token_VertexCollection_, trackingGeometryH, vertCompCandCollKshortH, vertCompCandCollLambdaH, and vtxcollH.
Referenced by PFCand_AssoMapAlgos::GetInputCollections(), and PF_PU_AssoMap::produce().
unique_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::SortAssociationMap | ( | TrackToVertexAssMap * | trackvertexassInput, |
edm::Handle< reco::TrackCollection > | trkcollH | ||
) |
Definition at line 178 of file PF_PU_AssoMapAlgos.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< Tag >::end(), edm::Ref< C, T, F >::key(), quality, edm::second(), and vtxcollH.
Referenced by PF_PU_AssoMap::produce().
|
staticprivate |
Referenced by FindAssociation(), and FindNIVertex().
VertexRef PF_PU_AssoMapAlgos::TrackWeightAssociation | ( | const TREF & | trackRef, |
const std::vector< reco::VertexRef > & | vtxcollV | ||
) |
Definition at line 704 of file PF_PU_AssoMapAlgos.cc.
References mps_merge::weight.
|
private |
Definition at line 206 of file PF_PU_AssoMapAlgos.h.
Referenced by createMappings(), and GetInputCollections().
|
private |
Definition at line 209 of file PF_PU_AssoMapAlgos.h.
Referenced by createMappings(), FindNIVertex(), FindV0Vertex(), and GetInputCollections().
|
private |
Definition at line 214 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 218 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 222 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 226 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 230 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 217 of file PF_PU_AssoMapAlgos.h.
Referenced by GetCleanedConversions(), and GetInputCollections().
|
private |
Definition at line 216 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 229 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 234 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 213 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 232 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 200 of file PF_PU_AssoMapAlgos.h.
Referenced by createMappings(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 237 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 220 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 224 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 239 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 235 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 228 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 240 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 205 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 208 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 210 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 202 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 211 of file PF_PU_AssoMapAlgos.h.
Referenced by createMappings(), FindAssociation(), FindNIVertex(), FindV0Vertex(), and GetInputCollections().
|
private |
Definition at line 221 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 225 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 203 of file PF_PU_AssoMapAlgos.h.
Referenced by createMappings(), CreateVertexVector(), GetInputCollections(), and SortAssociationMap().