42 src_(consumes<pat::
MuonCollection>(iConfig.getParameter<edm::InputTag>(
"src"))),
43 linkToPackedPF_(iConfig.getParameter<bool>(
"linkToPackedPFCandidates")),
44 saveTeVMuons_(iConfig.getParameter<std::
string>(
"saveTeVMuons"))
46 produces<std::vector<pat::Muon> >();
61 auto_ptr<vector<pat::Muon> >
out(
new vector<pat::Muon>());
62 out->reserve(
src->size());
64 std::map<reco::CandidatePtr,pat::PackedCandidateRef> mu2pc;
65 if (linkToPackedPF_) {
70 for (
unsigned int i = 0,
n = pf->size();
i <
n; ++
i) {
76 for (vector<pat::Muon>::const_iterator it =
src->begin(), ed =
src->end(); it != ed; ++it) {
80 if (linkToPackedPF_) {
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)
edm::EDGetTokenT< pat::MuonCollection > src_
PATMuonSlimmer(const edm::ParameterSet &iConfig)
virtual ~PATMuonSlimmer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
StringCutObjectSelector< pat::Muon > saveTeVMuons_
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::Ref< PFCandidateCollection > PFCandidateRef
persistent reference to a PFCandidate
reco::MuonRef muonRef() const
std::vector< Muon > MuonCollection
Particle reconstructed by the particle flow algorithm.
edm::EDGetTokenT< reco::PFCandidateCollection > pf_
void embedPickyMuon()
embed reference to the above picky Track
Analysis-level muon class.
edm::Ptr< reco::Candidate > refToOrig_