5 jetToken_(consumes<edm::
View<pat::
Jet> >( iConfig.getParameter<edm::InputTag>(
"jetSrc") )),
6 subjetToken_(consumes<edm::
View<pat::
Jet> >( iConfig.getParameter<edm::InputTag>(
"subjetSrc") ))
9 produces<std::vector<pat::Jet> > ();
23 std::auto_ptr< std::vector<pat::Jet> > outputs(
new std::vector<pat::Jet> );
32 ijetEnd = jetHandle->end(), ijet = ijetBegin; ijet != ijetEnd; ++ijet ) {
34 outputs->push_back( *ijet );
35 std::vector< edm::Ptr<reco::Candidate> > nextSubjets;
37 for (
unsigned int isubjet = 0; isubjet < ijet->numberOfDaughters(); ++isubjet ) {
42 if ( ifound != subjetHandle->end() ) {
43 nextSubjets.push_back( subjetHandle->ptrAt( ifound - subjetHandle->begin() ) );
47 outputs->back().clearDaughters();
49 nextSubjetEnd = nextSubjets.end(); nextSubjet != nextSubjetEnd; ++nextSubjet ) {
50 outputs->back().addDaughter( *nextSubjet );
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
BoostedJetMerger(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_
virtual void produce(edm::Event &, const edm::EventSetup &) override