29 produces<reco::MuonCollection>();
51 std::auto_ptr< reco::MuonCollection >
57 typedef reco::PFCandidateCollection::const_iterator IP;
58 for (IP ip=pfCandidates->begin(); ip !=pfCandidates->end(); ++ip ) {
64 LogError(
"RecoMuonFromPFProducer")<<
"reference to reco::Muon not available for muon PFCandidate "<<cand<<endl;
69 pOutput->push_back( *(cand.
muonRef()) );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< Muon > MuonCollection
collection of Muon objects
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
virtual void produce(edm::Event &, const edm::EventSetup &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~RecoMuonFromPFProducer()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
reco::MuonRef muonRef() const
virtual void beginRun(edm::Run &, const edm::EventSetup &)
Particle reconstructed by the particle flow algorithm.
RecoMuonFromPFProducer(const edm::ParameterSet &)
ProductID id() const
Accessor for product ID.
virtual ParticleType particleId() const
Produces a collection of reco::Muons referred to by the PFCandidates of type muons in a collection of...