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");
edm::EDGetTokenT< typename edm::View< T > > srcToken_
JetConstituentSelector< reco::PFJet > PFJetConstituentSelector
std::vector< T > JetsOutput
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< typename T::ConstituentTypeFwdPtr > ConstituentsOutput
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
#define DEFINE_FWK_MODULE(type)
virtual ~JetConstituentSelector()
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Container::value_type value_type
virtual void endJob() override
JetConstituentSelector(edm::ParameterSet const ¶ms)
virtual void beginJob() override
StringCutObjectSelector< T > selector_
volatile std::atomic< bool > shutdown_flag false