31 : jetSrc_(consumes<edm::
View<
reco::GenJet> >(iConfig.getParameter<edm::
InputTag>(
"src"))) {
33 produces<reco::GenJetCollection>().setBranchAlias(alias);
37 auto jets = std::make_unique<reco::GenJetCollection>();
45 if (gencon ==
nullptr)
46 throw cms::Exception(
"GenConstituent",
"GenJet is missing its constituents");
48 jets->push_back(jet1);
57 desc.
setComment(
"Selects genJets from collision id = 0");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< edm::View< reco::GenJet > > jetSrc_
~HiSignalGenJetProducer() override=default
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setComment(std::string const &value)
HiSignalGenJetProducer(const edm::ParameterSet &)
Jets made from MC generator particles.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
T getParameter(std::string const &) const