43 src_(consumes<edm::
View<
reco::GenJet> >(iConfig.getParameter<edm::InputTag>(
"src"))),
44 cut_(iConfig.getParameter<std::
string>(
"cut")),
45 clearDaughters_(iConfig.getParameter<bool>(
"clearDaughters")),
46 dropSpecific_(iConfig.getParameter<bool>(
"dropSpecific"))
48 produces<std::vector<reco::GenJet> >();
59 auto_ptr<vector<reco::GenJet> >
out(
new vector<reco::GenJet>());
60 out->reserve(
src->size());
63 if (!cut_(*it))
continue;
68 if (clearDaughters_) {
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
StringCutObjectSelector< reco::GenJet > cut_
bool clearDaughters_
reset daughters to an empty vector
bool dropSpecific_
drop the specific
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual ~PATGenJetSlimmer()
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
Matcher of reconstructed objects to L1 Muons.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Jets made from MC generator particles.
edm::EDGetTokenT< edm::View< reco::GenJet > > src_
void clearDaughters()
clear daughter references
void setSpecific(const Specific &spec)
set the specific (note: responsibility of keeping it consistent with the jet daughers belongs to the ...
PATGenJetSlimmer(const edm::ParameterSet &iConfig)