5 jetLabel_(iConfig.getParameter<edm::InputTag>(
"jetSrc")),
6 subjetLabel_(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 );
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
#define DEFINE_FWK_MODULE(type)
BoostedJetMerger(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag subjetLabel_