17 iConfig.getParameter<edm::
InputTag>(
"packedGenParticles"))) {
18 produces<pat::PackedGenParticleRefVector>();
39 auto signalGenParticleRefs = std::make_unique<pat::PackedGenParticleRefVector>();
43 if (orig->collisionId() != 0)
45 const auto& packed = orig2packed[orig];
46 if (packed.isNonnull()) {
47 signalGenParticleRefs->push_back(packed);
59 ->setComment(
"packedGenParticles input collection");
60 descriptions.
add(
"packedGenParticlesSignal", desc);
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
edm::Ref< GenParticleCollection > GenParticleRef
persistent reference to a GenParticle
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
~PackedGenParticleSignalProducer() override=default
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const edm::EDGetTokenT< reco::GenParticleCollection > genParticleToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
PackedGenParticleSignalProducer(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &)
const edm::EDGetTokenT< edm::Association< std::vector< pat::PackedGenParticle > > > assoToken_