49 linkToPackedPF_(iConfig.getParameter<
bool>("linkToPackedPFCandidates")),
50 saveTeVMuons_(iConfig.getParameter<std::
string>("saveTeVMuons")),
51 modifyMuon_(iConfig.getParameter<
bool>("modifyMuons"))
57 muonModifier_->setConsumes(sumes);
59 muonModifier_.reset(
nullptr);
61 produces<std::vector<pat::Muon> >();
77 auto_ptr<vector<pat::Muon> >
out(
new vector<pat::Muon>());
78 out->reserve(
src->size());
82 std::map<reco::CandidatePtr,pat::PackedCandidateRef> mu2pc;
88 for (
unsigned int i = 0,
n = pf->size();
i <
n; ++
i) {
94 for (vector<pat::Muon>::const_iterator it =
src->begin(), ed =
src->end(); it != ed; ++it) {
const edm::EDGetTokenT< pat::MuonCollection > src_
T getParameter(std::string const &) const
void embedDytMuon()
embed reference to the above dyt Track
bool isNonnull() const
Checks for non-null.
void embedTpfmsMuon()
embed reference to the above tpfms Track
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
PATMuonSlimmer(const edm::ParameterSet &iConfig)
virtual ~PATMuonSlimmer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const bool linkToPackedPF_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< pat::PackedCandidate > PackedCandidateCollection
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
std::unique_ptr< pat::ObjectModifier< pat::Muon > > muonModifier_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
const edm::EDGetTokenT< reco::PFCandidateCollection > pf_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
reco::MuonRef muonRef() const
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
std::vector< Muon > MuonCollection
Particle reconstructed by the particle flow algorithm.
const StringCutObjectSelector< pat::Muon > saveTeVMuons_
void embedPickyMuon()
embed reference to the above picky Track
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
Analysis-level muon class.
edm::Ptr< reco::Candidate > refToOrig_
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) overridefinal