38 src_( params.getParameter<edm::InputTag>(
"src") ),
39 cut_( params.getParameter<std::
string>(
"cut") ),
43 produces< JetsOutput >();
44 produces< ConstituentsOutput > (
"constituents");
54 std::auto_ptr< JetsOutput >
jets (
new std::vector<T>() );
62 iend = h_jets->end(), ijet = ibegin;
63 ijet != iend; ++ijet ) {
68 jets->push_back( *ijet );
69 for (
unsigned int ida = 0; ida < ijet->numberOfDaughters(); ++ida ) {
76 bool pass = jets->size() > 0;
78 iEvent.
put(candsOut,
"constituents");
JetConstituentSelector< reco::PFJet > PFJetConstituentSelector
std::vector< T > JetsOutput
std::vector< typename T::ConstituentTypeFwdPtr > ConstituentsOutput
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
#define DEFINE_FWK_MODULE(type)
virtual ~JetConstituentSelector()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Container::value_type value_type
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
JetConstituentSelector(edm::ParameterSet const ¶ms)
StringCutObjectSelector< T > selector_