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> > ();
71 std::vector<reco::Candidate>::const_iterator cand;
92 std::auto_ptr< std::vector<reco::Track> > outPtrP(
new std::vector<reco::Track> );
93 std::vector<int> used(tracks->size(),0);
95 std::auto_ptr< std::vector<pat::PackedCandidate> > outPtrC(
new std::vector<pat::PackedCandidate> );
98 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
110 for(
unsigned int i=0;
i < vertices->size();
i++){
113 if(used[it->key()]==0) used[it->key()]=2;
117 std::vector<int> mapping(tracks->size(),-1);
119 for(
unsigned int i=0;
i < used.size();
i++)
126 outPtrP->push_back(tr);
129 outPtrC->back().setTrackProperties((*tracks)[
i]);
142 tk2pcFiller.
insert(tracks, mapping.begin(), mapping.end());
bool isNonnull() const
Checks for non-null.
trackRef_iterator tracks_end() const
last iterator over tracks
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
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
key_type key() const
Accessor for product key.
PATLostTracks(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::VertexCollection > Vertices_
ProductID id() const
Accessor for product ID.
reco::TrackRef trackRef() const
const edm::EDGetTokenT< reco::VertexCollection > PVOrigs_
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
double eta() const
pseudorapidity of momentum vector
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 edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > map_
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
const 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
const double minPixelHits_
int charge() const
track electric charge
const edm::EDGetTokenT< reco::VertexCollection > PV_
trackRef_iterator tracks_begin() const
first iterator over tracks
const edm::EDGetTokenT< reco::PFCandidateCollection > Cands_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.