43 Tracks_(consumes<
reco::
TrackCollection>(iConfig.getParameter<edm::InputTag>(
"inputTracks"))),
44 minPt_(iConfig.getParameter<double>(
"minPt")),
45 minHits_(iConfig.getParameter<uint32_t>(
"minHits")),
46 minPixelHits_(iConfig.getParameter<uint32_t>(
"minPixelHits"))
49 produces< std::vector<reco::Track> > ();
58 std::vector<reco::Candidate>::const_iterator cand;
63 std::auto_ptr< std::vector<reco::Track> > outPtrP(
new std::vector<reco::Track> );
64 std::vector<bool> used(Tracks->size());
67 for(
unsigned int ic=0, nc = cands->size(); ic < nc; ++ic) {
77 for(
unsigned int i=0;
i < used.size();
i++)
79 if(!used[
i] && (*Tracks)[
i].pt() > minPt_ &&
80 (*Tracks)[
i].numberOfValidHits() >= minHits_ &&
81 (*Tracks)[
i].hitPattern().numberOfValidPixelHits() >= minPixelHits_ ) outPtrP->push_back((*Tracks)[
i]);
edm::EDGetTokenT< reco::PFCandidateCollection > Cands_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
PATLostTracks(const edm::ParameterSet &)
reco::TrackRef trackRef() const
bool isNonnull() const
Checks for non-null.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
virtual int charge() const GCC11_FINAL
electric charge
key_type key() const
Accessor for product key.
edm::EDGetTokenT< reco::TrackCollection > Tracks_
Particle reconstructed by the particle flow algorithm.
ProductID id() const
Accessor for product ID.
virtual void produce(edm::Event &, const edm::EventSetup &)