|
| PATLostTracks (const edm::ParameterSet &) |
|
virtual void | produce (edm::Event &, const edm::EventSetup &) |
|
| ~PATLostTracks () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 25 of file PATLostTracks.cc.
Implements edm::EDProducer.
Definition at line 54 of file PATLostTracks.cc.
References reco::LeafCandidate::charge(), edm::Event::getByToken(), i, edm::HandleBase::id(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), edm::Event::put(), and reco::PFCandidate::trackRef().
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
reco::TrackRef trackRef() const
bool isNonnull() const
Checks for non-null.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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.