CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes
PF_PU_AssoMapAlgos Class Reference

#include <PF_PU_AssoMapAlgos.h>

Inheritance diagram for PF_PU_AssoMapAlgos:
PF_PU_AssoMap PFCand_AssoMapAlgos PFCand_AssoMap

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::auto_ptr
< TrackToVertexAssMap
SortAssociationMap (TrackToVertexAssMap *)
 

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)
 

Static Private Member Functions

static bool ComesFromConversion (const reco::TrackRef, const reco::ConversionCollection &, reco::Conversion *)
 
static bool ComesFromNI (const reco::TrackRef, const reco::PFDisplacedVertexCollection &, reco::PFDisplacedVertex *)
 
static bool ComesFromV0Decay (const reco::TrackRef, const reco::VertexCompositeCandidateCollection &, const reco::VertexCompositeCandidateCollection &, reco::VertexCompositeCandidate *)
 
static double dR (const math::XYZPoint &, const math::XYZVector &, edm::Handle< reco::BeamSpot >)
 
static reco::VertexRef FindClosest3D (reco::TransientTrack, std::vector< reco::VertexRef > *, double tWeight=0.)
 
static reco::VertexRef FindClosestZ (const reco::TrackRef, std::vector< reco::VertexRef > *, double tWeight=0.)
 
static reco::VertexRef FindConversionVertex (const reco::TrackRef, const reco::Conversion &, edm::ESHandle< MagneticField >, const edm::EventSetup &, edm::Handle< reco::BeamSpot >, std::vector< reco::VertexRef > *, double)
 
static reco::VertexRef FindNIVertex (const reco::TrackRef, const reco::PFDisplacedVertex &, edm::ESHandle< MagneticField >, const edm::EventSetup &, edm::Handle< reco::BeamSpot >, std::vector< reco::VertexRef > *, double)
 
static reco::VertexRef FindV0Vertex (const reco::TrackRef, const reco::VertexCompositeCandidate &, edm::ESHandle< MagneticField >, const edm::EventSetup &, edm::Handle< reco::BeamSpot >, std::vector< reco::VertexRef > *, double)
 
static std::auto_ptr
< reco::ConversionCollection
GetCleanedConversions (edm::Handle< reco::ConversionCollection >, edm::Handle< reco::BeamSpot >, bool)
 
static std::auto_ptr
< reco::VertexCompositeCandidateCollection
GetCleanedKshort (edm::Handle< reco::VertexCompositeCandidateCollection >, edm::Handle< reco::BeamSpot >, bool)
 
static std::auto_ptr
< reco::VertexCompositeCandidateCollection
GetCleanedLambda (edm::Handle< reco::VertexCompositeCandidateCollection >, edm::Handle< reco::BeamSpot >, bool)
 
static std::auto_ptr
< reco::PFDisplacedVertexCollection
GetCleanedNI (edm::Handle< reco::PFDisplacedVertexCollection >, edm::Handle< reco::BeamSpot >, bool)
 
static reco::VertexRef TrackWeightAssociation (const reco::TrackBaseRef &, std::vector< reco::VertexRef > *)
 

Private Attributes

edm::Handle< reco::BeamSpotbeamspotH
 
edm::ESHandle< MagneticFieldbFieldH
 
bool cleanedColls_
 
std::auto_ptr
< reco::ConversionCollection
cleanedConvCollP
 
std::auto_ptr
< reco::VertexCompositeCandidateCollection
cleanedKshortCollP
 
std::auto_ptr
< reco::VertexCompositeCandidateCollection
cleanedLambdaCollP
 
std::auto_ptr
< reco::PFDisplacedVertexCollection
cleanedNICollP
 
edm::Handle
< reco::ConversionCollection
convCollH
 
edm::EDGetTokenT
< reco::ConversionCollection
ConversionsCollectionToken_
 
edm::Handle
< reco::PFDisplacedVertexCollection
displVertexCollH
 
bool ignoremissingpfcollection_
 
bool input_doReassociation_
 
int input_FinalAssociation_
 
int input_MaxNumAssociations_
 
double input_nTrack_
 
edm::EDGetTokenT
< reco::VertexCompositeCandidateCollection
KshortCollectionToken_
 
edm::EDGetTokenT
< reco::VertexCompositeCandidateCollection
LambdaCollectionToken_
 
int maxNumWarnings_
 
bool missingColls
 
edm::EDGetTokenT
< reco::PFDisplacedVertexCollection
NIVertexCollectionToken_
 
int numWarnings_
 
edm::EDGetTokenT< reco::BeamSpottoken_BeamSpot_
 
edm::EDGetTokenT
< reco::VertexCollection
token_VertexCollection_
 
edm::Handle
< reco::VertexCompositeCandidateCollection
vertCompCandCollKshortH
 
edm::Handle
< reco::VertexCompositeCandidateCollection
vertCompCandCollLambdaH
 
edm::Handle
< reco::VertexCollection
vtxcollH
 

Detailed Description

Definition at line 82 of file PF_PU_AssoMapAlgos.h.

Constructor & Destructor Documentation

PF_PU_AssoMapAlgos::PF_PU_AssoMapAlgos ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)
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.

Member Function Documentation

bool PF_PU_AssoMapAlgos::ComesFromConversion ( const reco::TrackRef  trackref,
const reco::ConversionCollection cleanedConvColl,
reco::Conversion gamma 
)
staticprivate

Definition at line 474 of file PF_PU_AssoMapAlgos.cc.

bool PF_PU_AssoMapAlgos::ComesFromNI ( const reco::TrackRef  trackref,
const reco::PFDisplacedVertexCollection cleanedNI,
reco::PFDisplacedVertex displVtx 
)
staticprivate

Definition at line 737 of file PF_PU_AssoMapAlgos.cc.

bool PF_PU_AssoMapAlgos::ComesFromV0Decay ( const reco::TrackRef  trackref,
const reco::VertexCompositeCandidateCollection cleanedKshort,
const reco::VertexCompositeCandidateCollection cleanedLambda,
reco::VertexCompositeCandidate V0 
)
staticprivate

Definition at line 619 of file PF_PU_AssoMapAlgos.cc.

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.

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 162 of file PF_PU_AssoMapAlgos.cc.

Referenced by PF_PU_AssoMap::produce().

std::vector< reco::VertexRef > * PF_PU_AssoMapAlgos::CreateVertexVector ( edm::Handle< reco::VertexCollection vtxcollH)
protected

Definition at line 299 of file PF_PU_AssoMapAlgos.cc.

int PF_PU_AssoMapAlgos::DefineQuality ( int  assoc_ite,
int  step,
double  distance 
)
protected

Definition at line 948 of file PF_PU_AssoMapAlgos.cc.

double PF_PU_AssoMapAlgos::dR ( const math::XYZPoint vtx_pos,
const math::XYZVector vtx_mom,
edm::Handle< reco::BeamSpot bsH 
)
staticprivate

Definition at line 416 of file PF_PU_AssoMapAlgos.cc.

void PF_PU_AssoMapAlgos::EraseVertex ( std::vector< reco::VertexRef > *  vtxcollV,
reco::VertexRef  toErase 
)
protected

Definition at line 321 of file PF_PU_AssoMapAlgos.cc.

VertexStepPair PF_PU_AssoMapAlgos::FindAssociation ( const reco::TrackRef trackref,
std::vector< reco::VertexRef > *  vtxColl,
edm::ESHandle< MagneticField bfH,
const edm::EventSetup iSetup,
edm::Handle< reco::BeamSpot bsH,
int  assocNum 
)
protected

Definition at line 842 of file PF_PU_AssoMapAlgos.cc.

VertexRef PF_PU_AssoMapAlgos::FindClosest3D ( reco::TransientTrack  transtrk,
std::vector< reco::VertexRef > *  vtxcollV,
double  tWeight = 0. 
)
staticprivate

Definition at line 379 of file PF_PU_AssoMapAlgos.cc.

VertexRef PF_PU_AssoMapAlgos::FindClosestZ ( const reco::TrackRef  trkref,
std::vector< reco::VertexRef > *  vtxcollV,
double  tWeight = 0. 
)
staticprivate

Definition at line 343 of file PF_PU_AssoMapAlgos.cc.

VertexRef PF_PU_AssoMapAlgos::FindConversionVertex ( const reco::TrackRef  trackref,
const reco::Conversion gamma,
edm::ESHandle< MagneticField bfH,
const edm::EventSetup iSetup,
edm::Handle< reco::BeamSpot bsH,
std::vector< reco::VertexRef > *  vtxcollV,
double  tWeight 
)
staticprivate

Definition at line 497 of file PF_PU_AssoMapAlgos.cc.

VertexRef PF_PU_AssoMapAlgos::FindNIVertex ( const reco::TrackRef  trackref,
const reco::PFDisplacedVertex displVtx,
edm::ESHandle< MagneticField bFieldH,
const edm::EventSetup iSetup,
edm::Handle< reco::BeamSpot bsH,
std::vector< reco::VertexRef > *  vtxcollV,
double  tWeight 
)
staticprivate

Definition at line 761 of file PF_PU_AssoMapAlgos.cc.

VertexRef PF_PU_AssoMapAlgos::FindV0Vertex ( const reco::TrackRef  trackref,
const reco::VertexCompositeCandidate V0_vtx,
edm::ESHandle< MagneticField bFieldH,
const edm::EventSetup iSetup,
edm::Handle< reco::BeamSpot bsH,
std::vector< reco::VertexRef > *  vtxcollV,
double  tWeight 
)
staticprivate

Definition at line 665 of file PF_PU_AssoMapAlgos.cc.

auto_ptr< ConversionCollection > PF_PU_AssoMapAlgos::GetCleanedConversions ( edm::Handle< reco::ConversionCollection convCollH,
edm::Handle< reco::BeamSpot bsH,
bool  cleanedColl 
)
staticprivate

Definition at line 442 of file PF_PU_AssoMapAlgos.cc.

auto_ptr< VertexCompositeCandidateCollection > PF_PU_AssoMapAlgos::GetCleanedKshort ( edm::Handle< reco::VertexCompositeCandidateCollection KshortsH,
edm::Handle< reco::BeamSpot bsH,
bool  cleanedColl 
)
staticprivate

Definition at line 521 of file PF_PU_AssoMapAlgos.cc.

auto_ptr< VertexCompositeCandidateCollection > PF_PU_AssoMapAlgos::GetCleanedLambda ( edm::Handle< reco::VertexCompositeCandidateCollection LambdasH,
edm::Handle< reco::BeamSpot bsH,
bool  cleanedColl 
)
staticprivate

Definition at line 570 of file PF_PU_AssoMapAlgos.cc.

auto_ptr< PFDisplacedVertexCollection > PF_PU_AssoMapAlgos::GetCleanedNI ( edm::Handle< reco::PFDisplacedVertexCollection NuclIntH,
edm::Handle< reco::BeamSpot bsH,
bool  cleanedColl 
)
staticprivate

Definition at line 690 of file PF_PU_AssoMapAlgos.cc.

void PF_PU_AssoMapAlgos::GetInputCollections ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Reimplemented in PFCand_AssoMapAlgos.

Definition at line 60 of file PF_PU_AssoMapAlgos.cc.

Referenced by PF_PU_AssoMap::produce().

auto_ptr< TrackToVertexAssMap > PF_PU_AssoMapAlgos::SortAssociationMap ( TrackToVertexAssMap trackvertexassInput)

Definition at line 213 of file PF_PU_AssoMapAlgos.cc.

Referenced by PF_PU_AssoMap::produce().

VertexRef PF_PU_AssoMapAlgos::TrackWeightAssociation ( const reco::TrackBaseRef trackbaseRef,
std::vector< reco::VertexRef > *  vtxcollV 
)
staticprivate

Definition at line 813 of file PF_PU_AssoMapAlgos.cc.

Member Data Documentation

edm::Handle<reco::BeamSpot> PF_PU_AssoMapAlgos::beamspotH
private

Definition at line 180 of file PF_PU_AssoMapAlgos.h.

edm::ESHandle<MagneticField> PF_PU_AssoMapAlgos::bFieldH
private

Definition at line 182 of file PF_PU_AssoMapAlgos.h.

bool PF_PU_AssoMapAlgos::cleanedColls_
private

Definition at line 185 of file PF_PU_AssoMapAlgos.h.

std::auto_ptr<reco::ConversionCollection> PF_PU_AssoMapAlgos::cleanedConvCollP
private

Definition at line 189 of file PF_PU_AssoMapAlgos.h.

std::auto_ptr<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::cleanedKshortCollP
private

Definition at line 193 of file PF_PU_AssoMapAlgos.h.

std::auto_ptr<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::cleanedLambdaCollP
private

Definition at line 197 of file PF_PU_AssoMapAlgos.h.

std::auto_ptr<reco::PFDisplacedVertexCollection> PF_PU_AssoMapAlgos::cleanedNICollP
private

Definition at line 201 of file PF_PU_AssoMapAlgos.h.

edm::Handle<reco::ConversionCollection> PF_PU_AssoMapAlgos::convCollH
private

Definition at line 188 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::ConversionCollection> PF_PU_AssoMapAlgos::ConversionsCollectionToken_
private

Definition at line 187 of file PF_PU_AssoMapAlgos.h.

edm::Handle<reco::PFDisplacedVertexCollection> PF_PU_AssoMapAlgos::displVertexCollH
private

Definition at line 200 of file PF_PU_AssoMapAlgos.h.

bool PF_PU_AssoMapAlgos::ignoremissingpfcollection_
private

Definition at line 205 of file PF_PU_AssoMapAlgos.h.

bool PF_PU_AssoMapAlgos::input_doReassociation_
private

Definition at line 184 of file PF_PU_AssoMapAlgos.h.

int PF_PU_AssoMapAlgos::input_FinalAssociation_
private

Definition at line 203 of file PF_PU_AssoMapAlgos.h.

int PF_PU_AssoMapAlgos::input_MaxNumAssociations_
private

Definition at line 174 of file PF_PU_AssoMapAlgos.h.

double PF_PU_AssoMapAlgos::input_nTrack_
private

Definition at line 208 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::KshortCollectionToken_
private

Definition at line 191 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::LambdaCollectionToken_
private

Definition at line 195 of file PF_PU_AssoMapAlgos.h.

int PF_PU_AssoMapAlgos::maxNumWarnings_
private

Definition at line 210 of file PF_PU_AssoMapAlgos.h.

bool PF_PU_AssoMapAlgos::missingColls
private

Definition at line 206 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::PFDisplacedVertexCollection> PF_PU_AssoMapAlgos::NIVertexCollectionToken_
private

Definition at line 199 of file PF_PU_AssoMapAlgos.h.

int PF_PU_AssoMapAlgos::numWarnings_
private

Definition at line 211 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::BeamSpot> PF_PU_AssoMapAlgos::token_BeamSpot_
private

Definition at line 179 of file PF_PU_AssoMapAlgos.h.

edm::EDGetTokenT<reco::VertexCollection> PF_PU_AssoMapAlgos::token_VertexCollection_
private

Definition at line 176 of file PF_PU_AssoMapAlgos.h.

edm::Handle<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::vertCompCandCollKshortH
private

Definition at line 192 of file PF_PU_AssoMapAlgos.h.

edm::Handle<reco::VertexCompositeCandidateCollection> PF_PU_AssoMapAlgos::vertCompCandCollLambdaH
private

Definition at line 196 of file PF_PU_AssoMapAlgos.h.

edm::Handle<reco::VertexCollection> PF_PU_AssoMapAlgos::vtxcollH
private

Definition at line 177 of file PF_PU_AssoMapAlgos.h.