31 template <
class T,
typename C = std::vector<
typename T::ConstituentTypeFwdPtr> >
41 cut_( params.getParameter<std::
string>(
"cut") ),
45 produces< JetsOutput >();
46 produces< ConstituentsOutput > (
"constituents");
56 std::auto_ptr< JetsOutput >
jets (
new std::vector<T>() );
64 iend = h_jets->end(), ijet = ibegin;
65 ijet != iend; ++ijet ) {
70 jets->push_back( *ijet );
71 for (
unsigned int ida = 0; ida < ijet->numberOfDaughters(); ++ida ) {
78 bool pass = jets->size() > 0;
80 iEvent.
put(candsOut,
"constituents");
JetConstituentSelector< reco::PFJet, std::vector< edm::FwdPtr< pat::PackedCandidate > > > MiniAODJetConstituentSelector
JetConstituentSelector< reco::PFJet > PFJetConstituentSelector
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void endJob() override
JetConstituentSelector(edm::ParameterSet const ¶ms)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
StringCutObjectSelector< T > selector_
edm::EDGetTokenT< typename edm::View< T > > srcToken_
Container::value_type value_type
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< T > JetsOutput
JetConstituentSelector< pat::Jet, std::vector< edm::FwdPtr< pat::PackedCandidate > > > PatJetConstituentSelector
volatile std::atomic< bool > shutdown_flag false
virtual void beginJob() override
virtual ~JetConstituentSelector()
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override