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> > ();
10 produces<std::vector<pat::Jet> > (
"SubJets");
24 std::auto_ptr< std::vector<pat::Jet> > outputs(
new std::vector<pat::Jet> );
25 std::auto_ptr< std::vector<pat::Jet> > outputSubjets(
new std::vector<pat::Jet> );
36 ijetEnd = jetHandle->end(), ijet = ijetBegin; ijet != ijetEnd; ++ijet ) {
38 outputs->push_back( *ijet );
39 std::vector< edm::Ptr<reco::Candidate> > nextSubjets;
41 for (
unsigned int isubjet = 0; isubjet < ijet->numberOfDaughters(); ++isubjet ) {
46 if ( ifound != subjetHandle->end() ) {
48 outputSubjets->push_back( *ifound );
52 nextSubjets.push_back( subjetPtr );
55 outputs->back().clearDaughters();
57 nextSubjetEnd = nextSubjets.end(); nextSubjet != nextSubjetEnd; ++nextSubjet ) {
58 outputs->back().addDaughter( *nextSubjet );
66 iEvent.
put(outputSubjets,
"SubJets");
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
BoostedJetMerger(const edm::ParameterSet &)
EDProductGetter const * productGetter() const
Accessor for product getter.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::View< pat::Jet > > jetToken_
RefProd< PROD > getRefBeforePut()
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< pat::Jet > > subjetToken_
ProductID id() const
Accessor for product ID.
virtual void produce(edm::Event &, const edm::EventSetup &) override