#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 &) | |
std::auto_ptr < TrackToVertexAssMap > | SortAssociationMap (TrackToVertexAssMap *) |
virtual | ~PF_PU_AssoMapAlgos () |
Protected Member Functions | |
std::vector< reco::VertexRef > * | CreateVertexVector (edm::Handle< reco::VertexCollection >) |
int | DefineQuality (StepDistancePairVector, 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) |
Private Member Functions | |
virtual std::auto_ptr < reco::ConversionCollection > | GetCleanedConversions (edm::Handle< reco::ConversionCollection >, bool) |
virtual std::auto_ptr < reco::VertexCollection > | GetCleanedIVF (edm::Handle< reco::VertexCollection >, bool) |
virtual std::auto_ptr < reco::VertexCompositeCandidateCollection > | GetCleanedKshort (edm::Handle< reco::VertexCompositeCandidateCollection >, bool) |
virtual std::auto_ptr < reco::VertexCompositeCandidateCollection > | GetCleanedLambda (edm::Handle< reco::VertexCompositeCandidateCollection >, bool) |
virtual std::auto_ptr < reco::PFDisplacedVertexCollection > | GetCleanedNI (edm::Handle< reco::PFDisplacedVertexCollection >, bool) |
Definition at line 122 of file PF_PU_AssoMapAlgos.h.
PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 26 of file PF_PU_AssoMapAlgos.cc.
References cleanedColls_, ConversionsCollection_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), IFVVertexCollection_, ignoremissingpfcollection_, input_BeamSpot_, input_doReassociation_, input_FinalAssociation_, input_MaxNumAssociations_, input_nTrack_3D_, input_nTrack_z_, input_VertexCollection_, KshortCollection_, edm::InputTag::label(), LambdaCollection_, missingColls, and NIVertexCollection_.
|
virtual |
Definition at line 67 of file PF_PU_AssoMapAlgos.cc.
|
staticprivate |
Definition at line 492 of file PF_PU_AssoMapAlgos.cc.
References ConversionTools::matchesConversion().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 827 of file PF_PU_AssoMapAlgos.cc.
Referenced by FindAssociation().
|
staticprivate |
Definition at line 711 of file PF_PU_AssoMapAlgos.cc.
Referenced by FindAssociation().
|
staticprivate |
Definition at line 618 of file PF_PU_AssoMapAlgos.cc.
References reco::RecoChargedCandidate::track().
Referenced by FindAssociation().
std::auto_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::CreateTrackToVertexMap | ( | edm::Handle< reco::TrackCollection > | trkcollH, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 140 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), beamspotH, bFieldH, CreateVertexVector(), DefineQuality(), EraseVertex(), FindAssociation(), input_MaxNumAssociations_, edm::second(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), relval_parameters_module::step, and vtxcollH.
Referenced by PF_PU_AssoMap::produce().
std::auto_ptr< VertexToTrackAssMap > PF_PU_AssoMapAlgos::CreateVertexToTrackMap | ( | edm::Handle< reco::TrackCollection > | trkcollH, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 199 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D(), beamspotH, bFieldH, CreateVertexVector(), DefineQuality(), EraseVertex(), FindAssociation(), input_MaxNumAssociations_, edm::second(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), relval_parameters_module::step, and vtxcollH.
Referenced by PF_PU_AssoMap::produce().
|
protected |
Definition at line 341 of file PF_PU_AssoMapAlgos.cc.
References convertSQLitetoXML_cfg::output.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), and CreateVertexToTrackMap().
|
protected |
Definition at line 1026 of file PF_PU_AssoMapAlgos.cc.
References f1_1st_50_cum, f1_1st_70_cum, f3_1st_50_cum, f3_1st_70_cum, f3_2nd_f3_cum, MinBiasTracking_cff::firstStep, fz_1st_50, fz_1st_50_cum, fz_1st_70_cum, fz_2nd_fz_cum, input_FinalAssociation_, sc_1st_50, sc_1st_70_cum, sc_2nd_f1_0_cum, sc_2nd_f1_1_cum, sc_2nd_f3_0_cum, sc_2nd_f3_1_cum, sc_2nd_fz_0_cum, sc_2nd_fz_1_cum, tw_1st_50, tw_1st_90_cum, tw_2nd_f1_cum, tw_2nd_f3_cum, and tw_2nd_fz_cum.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), and CreateVertexToTrackMap().
|
protected |
Definition at line 362 of file PF_PU_AssoMapAlgos.cc.
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), and CreateVertexToTrackMap().
|
protected |
Definition at line 904 of file PF_PU_AssoMapAlgos.cc.
References cleanedConvCollP, cleanedIVFCollP, cleanedKshortCollP, cleanedLambdaCollP, cleanedNICollP, ComesFromConversion(), ComesFromIVF(), ComesFromNI(), ComesFromV0Decay(), displVertexCollH, FindClosest3D(), FindClosestZ(), FindConversionVertex(), FindIVFVertex(), FindNIVertex(), FindV0Vertex(), input_doReassociation_, input_FinalAssociation_, input_nTrack_3D_, input_nTrack_z_, edm::HandleBase::isValid(), ivfVertexCollH, reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and TrackWeightAssociation().
Referenced by PFCand_AssoMapAlgos::CreatePFCandToVertexMap(), CreateTrackToVertexMap(), PFCand_AssoMapAlgos::CreateVertexToPFCandMap(), and CreateVertexToTrackMap().
|
staticprivate |
Definition at line 422 of file PF_PU_AssoMapAlgos.cc.
References IPTools::absoluteImpactParameter3D().
Referenced by FindAssociation(), FindConversionVertex(), FindIVFVertex(), FindNIVertex(), and FindV0Vertex().
|
staticprivate |
Definition at line 384 of file PF_PU_AssoMapAlgos.cc.
References mathSSE::sqrt().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 516 of file PF_PU_AssoMapAlgos.cc.
References reco::Conversion::conversionVertex(), FindClosest3D(), reco::Vertex::position(), and reco::Conversion::refittedPair4Momentum().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 850 of file PF_PU_AssoMapAlgos.cc.
References FindClosest3D(), reco::Vertex::p4(), and reco::Vertex::position().
Referenced by FindAssociation().
|
staticprivate |
Definition at line 736 of file PF_PU_AssoMapAlgos.cc.
References alignCSCRings::e, FindClosest3D(), reco::PFDisplacedVertex::isIncomingTrack(), reco::PFDisplacedVertex::isThereMergedTracks(), reco::PFDisplacedVertex::isTherePrimaryTracks(), reco::Vertex::originalTrack(), reco::Vertex::refittedTracks(), reco::TransientTrack::setBeamSpot(), reco::TransientTrack::setES(), and histoStyle::weight.
Referenced by FindAssociation().
|
staticprivate |
Definition at line 648 of file PF_PU_AssoMapAlgos.cc.
References FindClosest3D(), reco::LeafCandidate::momentum(), and reco::LeafCandidate::vertex().
Referenced by FindAssociation().
|
privatevirtual |
Definition at line 460 of file PF_PU_AssoMapAlgos.cc.
Referenced by GetInputCollections().
|
privatevirtual |
Definition at line 789 of file PF_PU_AssoMapAlgos.cc.
References BSVertexState, RecoVertex::convertError(), RecoVertex::convertPos(), VertexDistanceXY::distance(), and distanceComputerXY.
Referenced by GetInputCollections().
|
privatevirtual |
Definition at line 540 of file PF_PU_AssoMapAlgos.cc.
References BSVertexState, RecoVertex::convertPos(), VertexDistanceXY::distance(), distanceComputerXY, and kMass.
Referenced by GetInputCollections().
|
privatevirtual |
Definition at line 579 of file PF_PU_AssoMapAlgos.cc.
References BSVertexState, RecoVertex::convertPos(), VertexDistanceXY::distance(), distanceComputerXY, and lamMass.
Referenced by GetInputCollections().
|
privatevirtual |
Definition at line 673 of file PF_PU_AssoMapAlgos.cc.
References BSVertexState, RecoVertex::convertError(), RecoVertex::convertPos(), VertexDistanceXY::distance(), distanceComputerXY, and relativeConstraints::value.
Referenced by GetInputCollections().
|
virtual |
Definition at line 78 of file PF_PU_AssoMapAlgos.cc.
References beamspotH, bFieldH, BSVertexState, cleanedColls_, cleanedConvCollP, cleanedIVFCollP, cleanedKshortCollP, cleanedLambdaCollP, cleanedNICollP, convCollH, ConversionsCollection_, RecoVertex::convertError(), RecoVertex::convertPos(), displVertexCollH, edm::EventSetup::get(), edm::Event::getByLabel(), GetCleanedConversions(), GetCleanedIVF(), GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), IFVVertexCollection_, ignoremissingpfcollection_, input_BeamSpot_, input_VertexCollection_, ivfVertexCollH, KshortCollection_, edm::InputTag::label(), LambdaCollection_, maxNumWarnings_, NIVertexCollection_, numWarnings_, vertCompCandCollKshortH, vertCompCandCollLambdaH, and vtxcollH.
Referenced by PFCand_AssoMapAlgos::GetPFCandInputCollections(), and PF_PU_AssoMap::produce().
auto_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::SortAssociationMap | ( | TrackToVertexAssMap * | trackvertexassInput | ) |
Definition at line 254 of file PF_PU_AssoMapAlgos.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< Tag >::end(), edm::Ref< C, T, F >::key(), and edm::second().
Referenced by PF_PU_AssoMap::produce().
|
staticprivate |
Definition at line 875 of file PF_PU_AssoMapAlgos.cc.
References histoStyle::weight.
Referenced by FindAssociation().
|
private |
Definition at line 222 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().
|
private |
Definition at line 224 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().
|
private |
Definition at line 263 of file PF_PU_AssoMapAlgos.h.
Referenced by GetCleanedIVF(), GetCleanedKshort(), GetCleanedLambda(), GetCleanedNI(), and GetInputCollections().
|
private |
Definition at line 227 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 231 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 247 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 235 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 239 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 243 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 230 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 229 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 242 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 261 of file PF_PU_AssoMapAlgos.h.
Referenced by GetCleanedIVF(), GetCleanedKshort(), GetCleanedLambda(), and GetCleanedNI().
|
private |
Definition at line 245 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 251 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 221 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 226 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 249 of file PF_PU_AssoMapAlgos.h.
Referenced by DefineQuality(), FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 216 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 255 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 254 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 218 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 246 of file PF_PU_AssoMapAlgos.h.
Referenced by FindAssociation(), and GetInputCollections().
|
private |
Definition at line 233 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 237 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 257 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 252 of file PF_PU_AssoMapAlgos.h.
Referenced by PF_PU_AssoMapAlgos().
|
private |
Definition at line 241 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections(), and PF_PU_AssoMapAlgos().
|
private |
Definition at line 258 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 234 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 238 of file PF_PU_AssoMapAlgos.h.
Referenced by GetInputCollections().
|
private |
Definition at line 219 of file PF_PU_AssoMapAlgos.h.
Referenced by CreateTrackToVertexMap(), CreateVertexToTrackMap(), and GetInputCollections().