26 std::vector<edm::EDGetTokenT<edm::View<reco::Candidate> > >
collections_;
37 std::vector<edm::InputTag> filtersDecTags = iConfig.
getParameter<std::vector<edm::InputTag> >(
"triggeringCollections");
38 for(std::vector<edm::InputTag>::const_iterator
inputTag=filtersDecTags.begin();
43 produces<std::vector<T> >();
53 std::unique_ptr<std::vector<T> > outJets(
new std::vector<T>());
55 bool filterDecision=
false;
60 if(!tmpCol->empty()) {
75 for(
size_t ij=0;ij<jetColHandle->size();ij++) {
76 outJets->push_back( (*jetColHandle)[ij] );
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
JetCollectionReducerT(const edm::ParameterSet &iConfig)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
JetCollectionReducerT< reco::PFJet > PFJetCollectionReducer
bool writeEmptyCollection_
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > collections_
edm::EDGetTokenT< std::vector< T > > jetColToken_
JetCollectionReducerT< pat::Jet > PATJetCollectionReducer
void produce(edm::StreamID id, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
~JetCollectionReducerT() override