57 : muons_(iConfig.getParameter<edm::
InputTag>(
"src")) {
60 std::map<std::string, edm::ParameterSet> psetMap;
63 std::vector<std::string> isolationLabels;
64 isolationLabels.push_back(
"pfIsolationR03");
65 isolationLabels.push_back(
"pfIsoMeanDRProfileR03");
66 isolationLabels.push_back(
"pfIsoSumDRProfileR03");
67 isolationLabels.push_back(
"pfIsolationR04");
68 isolationLabels.push_back(
"pfIsoMeanDRProfileR04");
69 isolationLabels.push_back(
"pfIsoSumDRProfileR04");
72 for (std::vector<std::string>::const_iterator
label = isolationLabels.begin();
label != isolationLabels.end();
77 produces<reco::MuonCollection>();
99 auto out = std::make_unique<MuonCollection>();
101 for (
unsigned int i = 0;
i <
muons->size(); ++
i) {
105 out->push_back(muon);
void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::MuonCollection > muonToken_
void addDefault(ParameterSetDescription const &psetDescription)
MuPFIsoEmbedder(const edm::ParameterSet &)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
int embedPFIsolation(reco::Muon &, reco::MuonRef &)
T getParameter(std::string const &) const
void beginEvent(const edm::Event &iEvent)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~MuPFIsoEmbedder() override