56 minPt_(iConfig.getParameter<double>(
"minPt")),
57 minHits_(iConfig.getParameter<uint32_t>(
"minHits")),
58 minPixelHits_(iConfig.getParameter<uint32_t>(
"minPixelHits"))
60 produces< std::vector<reco::Track> > ();
61 produces< std::vector<pat::PackedCandidate> > ();
62 produces< edm::Association<pat::PackedCandidateCollection> > ();
72 std::vector<reco::Candidate>::const_iterator cand;
94 std::auto_ptr< std::vector<reco::Track> > outPtrP(
new std::vector<reco::Track> );
95 std::vector<int> used(tracks->size(),0);
97 std::auto_ptr< std::vector<pat::PackedCandidate> > outPtrC(
new std::vector<pat::PackedCandidate> );
100 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
112 for(
unsigned int i=0;
i < vertices->size();
i++){
115 if(used[it->key()]==0) used[it->key()]=2;
119 std::vector<int> mapping(tracks->size(),-1);
121 for(
unsigned int i=0;
i < used.size();
i++)
128 outPtrP->push_back(tr);
131 outPtrC->back().setTrackProperties((*tracks)[
i]);
144 tk2pcFiller.
insert(tracks, mapping.begin(), mapping.end());
bool isNonnull() const
Checks for non-null.
trackRef_iterator tracks_end() const
last iterator over tracks
edm::EDGetTokenT< reco::PFCandidateCollection > Cands_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< pat::PackedCandidate > PackedCandidateCollection
void insert(const H &h, I begin, I end)
std::vector< Track > TrackCollection
collection of Tracks
double phi() const
azimuthal angle of momentum vector
std::vector< Vertex > VertexCollection
collection of Vertex objects
key_type key() const
Accessor for product key.
PATLostTracks(const edm::ParameterSet &)
ProductID id() const
Accessor for product ID.
reco::TrackRef trackRef() const
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
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
edm::Ref< VertexCollection > VertexRef
persistent reference to a Vertex
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
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
edm::EDGetTokenT< reco::VertexCollection > PVOrigs_
trackRef_iterator tracks_begin() const
first iterator over tracks
edm::EDGetTokenT< reco::VertexCollection > Vertices_
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< reco::VertexCollection > PV_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.