#include <PF_PU_AssoMapAlgos.h>
Public Member Functions | |
std::auto_ptr< TrackToVertexAssMap > | CreateTrackToVertexMap (edm::Handle< reco::TrackCollection >, const edm::EventSetup &) |
std::auto_ptr< VertexToTrackAssMap > | CreateVertexToTrackMap (edm::Handle< reco::TrackCollection >, const edm::EventSetup &) |
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 *) |
virtual | ~PF_PU_AssoMapAlgos ()(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 &, std::vector< reco::VertexRef > *, edm::ESHandle< MagneticField >, const edm::EventSetup &, edm::Handle< reco::BeamSpot >, int) |
Definition at line 82 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 26 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_.
|
inlinevirtual |
Definition at line 91 of file PF_PU_AssoMapAlgos.h.
References ComesFromConversion(), ComesFromNI(), ComesFromV0Decay(), CreateTrackToVertexMap(), CreateVertexToTrackMap(), CreateVertexVector(), DefineQuality(), dR(), EraseVertex(), FindAssociation(), FindClosest3D(), FindClosestZ(), FindConversionVertex(), FindNIVertex(), FindV0Vertex(), GetCleanedConversions(), GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), GetInputCollections(), SortAssociationMap(), and TrackWeightAssociation().
|
staticprivate |
Definition at line 474 of file PF_PU_AssoMapAlgos.cc.
References ConversionTools::matchesConversion().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 737 of file PF_PU_AssoMapAlgos.cc.
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 619 of file PF_PU_AssoMapAlgos.cc.
References reco::RecoChargedCandidate::track().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
std::auto_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::CreateTrackToVertexMap | ( | edm::Handle< reco::TrackCollection > | trkcollH, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 110 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), beamspotH, bFieldH, CreateVertexVector(), DefineQuality(), SoftLeptonByDistance_cfi::distance, EraseVertex(), FindAssociation(), input_MaxNumAssociations_, btvTracks_cfi::quality, edm::second(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and vtxcollH.
Referenced by PF_PU_AssoMap::produce(), and ~PF_PU_AssoMapAlgos().
std::auto_ptr< VertexToTrackAssMap > PF_PU_AssoMapAlgos::CreateVertexToTrackMap | ( | edm::Handle< reco::TrackCollection > | trkcollH, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 162 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), beamspotH, bFieldH, CreateVertexVector(), DefineQuality(), SoftLeptonByDistance_cfi::distance, EraseVertex(), FindAssociation(), input_MaxNumAssociations_, btvTracks_cfi::quality, edm::second(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and vtxcollH.
Referenced by PF_PU_AssoMap::produce(), and ~PF_PU_AssoMapAlgos().
|
protected |
Definition at line 299 of file PF_PU_AssoMapAlgos.cc.
References convertSQLitetoXML_cfg::output.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), CreateVertexToTrackMap(), and ~PF_PU_AssoMapAlgos().
|
protected |
Definition at line 948 of file PF_PU_AssoMapAlgos.cc.
References fin_50, fin_70, btvTracks_cfi::quality, sec_50, sec_70, tw_50, tw_70, and tw_90.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), CreateVertexToTrackMap(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 416 of file PF_PU_AssoMapAlgos.cc.
References deltaR(), cmsBatch::log, mathSSE::sqrt(), funct::tan(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), and ~PF_PU_AssoMapAlgos().
|
protected |
Definition at line 321 of file PF_PU_AssoMapAlgos.cc.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), CreateVertexToTrackMap(), and ~PF_PU_AssoMapAlgos().
|
protected |
Definition at line 842 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::setES(), and TrackWeightAssociation().
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), CreateVertexToTrackMap(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 379 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), SoftLeptonByDistance_cfi::distance, nTracks(), and mathSSE::sqrt().
Referenced by FindAssociation(), FindConversionVertex(), FindNIVertex(), FindV0Vertex(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 343 of file PF_PU_AssoMapAlgos.cc.
References nTracks(), and mathSSE::sqrt().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 497 of file PF_PU_AssoMapAlgos.cc.
References reco::Conversion::conversionVertex(), FindClosest3D(), muons2muons_cfi::photon, reco::Vertex::position(), and reco::Conversion::refittedPair4Momentum().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 761 of file PF_PU_AssoMapAlgos.cc.
References FindClosest3D(), reco::PFDisplacedVertex::isIncomingTrack(), reco::PFDisplacedVertex::isThereMergedTracks(), reco::PFDisplacedVertex::isTherePrimaryTracks(), reco::Vertex::originalTrack(), reco::Vertex::position(), reco::PFDisplacedVertex::primaryMomentum(), reco::Vertex::refittedTracks(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and TrackWeightAssociation().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 665 of file PF_PU_AssoMapAlgos.cc.
References FindClosest3D(), reco::LeafCandidate::momentum(), and reco::LeafCandidate::vertex().
Referenced by FindAssociation(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 442 of file PF_PU_AssoMapAlgos.cc.
Referenced by GetInputCollections(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 521 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), kMass, and reco::BeamSpot::position().
Referenced by GetInputCollections(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 570 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), lamMass, and reco::BeamSpot::position().
Referenced by GetInputCollections(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 690 of file PF_PU_AssoMapAlgos.cc.
References RecoVertex::convertError(), RecoVertex::convertPos(), reco::BeamSpot::covariance3D(), VertexDistance3D::distance(), dR(), and reco::BeamSpot::position().
Referenced by GetInputCollections(), and ~PF_PU_AssoMapAlgos().
|
virtual |
Reimplemented in PFCand_AssoMapAlgos.
Definition at line 60 of file PF_PU_AssoMapAlgos.cc.
References beamspotH, bFieldH, cleanedColls_, cleanedConvCollP, cleanedKshortCollP, cleanedLambdaCollP, cleanedNICollP, convCollH, ConversionsCollectionToken_, displVertexCollH, edm::EventSetup::get(), edm::Event::getByToken(), GetCleanedConversions(), GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), ignoremissingpfcollection_, KshortCollectionToken_, LambdaCollectionToken_, maxNumWarnings_, missingColls, NIVertexCollectionToken_, numWarnings_, token_BeamSpot_, token_VertexCollection_, vertCompCandCollKshortH, vertCompCandCollLambdaH, and vtxcollH.
Referenced by PFCand_AssoMapAlgos::GetInputCollections(), PF_PU_AssoMap::produce(), and ~PF_PU_AssoMapAlgos().
unique_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::SortAssociationMap | ( | TrackToVertexAssMap * | trackvertexassInput | ) |
Definition at line 213 of file PF_PU_AssoMapAlgos.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< Tag >::end(), edm::Ref< C, T, F >::key(), btvTracks_cfi::quality, and edm::second().
Referenced by PF_PU_AssoMap::produce(), and ~PF_PU_AssoMapAlgos().
|
staticprivate |
Definition at line 813 of file PF_PU_AssoMapAlgos.cc.
References mps_merge::weight.
Referenced by FindAssociation(), FindNIVertex(), and ~PF_PU_AssoMapAlgos().
|
private |
Definition at line 182 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().
|
private |
Definition at line 184 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().
|
private |
Definition at line 187 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 191 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 195 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 199 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 203 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 190 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 189 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 202 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 207 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 186 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 205 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 176 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 210 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 193 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 197 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 212 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 208 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 201 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 GetInputCollections().
|
private |
Definition at line 181 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 178 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 194 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 198 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 179 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().