File indexing completed on 2024-09-08 23:51:48
0001 #ifndef MergedGenParticleProducer_h
0002 #define MergedGenParticleProducer_h
0003
0004 #include "FWCore/Framework/interface/stream/EDProducer.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
0008 #include "DataFormats/PatCandidates/interface/PackedGenParticle.h"
0009 #include <vector>
0010
0011 class MergedGenParticleProducer : public edm::stream::EDProducer<> {
0012 public:
0013 MergedGenParticleProducer(const edm::ParameterSet& pset);
0014 ~MergedGenParticleProducer() override {}
0015
0016 private:
0017 void produce(edm::Event& event, const edm::EventSetup&) override;
0018 bool isPhotonFromPrunedHadron(const pat::PackedGenParticle& pk) const;
0019 bool isLeptonFromPrunedPhoton(const reco::GenParticle& pk) const;
0020
0021 edm::EDGetTokenT<edm::View<reco::GenParticle>> input_pruned_;
0022 edm::EDGetTokenT<edm::View<pat::PackedGenParticle>> input_packed_;
0023 };
0024
0025 #endif