72 std::vector<reco::Candidate>::const_iterator cand;
93 std::auto_ptr< std::vector<reco::Track> > outPtrP(
new std::vector<reco::Track> );
94 std::vector<int> used(tracks->size(),0);
96 std::auto_ptr< std::vector<pat::PackedCandidate> > outPtrC(
new std::vector<pat::PackedCandidate> );
99 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
111 for(
unsigned int i=0;
i < vertices->size();
i++){
114 if(used[it->key()]==0) used[it->key()]=2;
118 std::vector<int> mapping(tracks->size(),-1);
120 for(
unsigned int i=0;
i < used.size();
i++)
127 outPtrP->push_back(tr);
130 outPtrC->back().setTrackProperties((*tracks)[
i]);
143 tk2pcFiller.insert(tracks, mapping.begin(), mapping.end());
trackRef_iterator tracks_end() const
last iterator over tracks
edm::EDGetTokenT< reco::PFCandidateCollection > Cands_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double phi() const
azimuthal angle of momentum vector
reco::TrackRef trackRef() const
bool isNonnull() const
Checks for non-null.
double eta() const
pseudorapidity of momentum vector
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > map_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
double pt() const
track transverse momentum
virtual int charge() const
electric charge
unsigned short numberOfValidHits() const
number of valid hits found
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
edm::Ref< VertexCollection > VertexRef
persistent reference to a Vertex
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
key_type key() const
Accessor for product key.
edm::EDGetTokenT< reco::TrackCollection > Tracks_
Particle reconstructed by the particle flow algorithm.
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
int numberOfValidPixelHits() const
int charge() const
track electric charge
ProductID id() const
Accessor for product ID.
edm::EDGetTokenT< reco::VertexCollection > PVOrigs_
trackRef_iterator tracks_begin() const
first iterator over tracks
edm::EDGetTokenT< reco::VertexCollection > Vertices_
edm::EDGetTokenT< reco::VertexCollection > PV_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.