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) {
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
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.
#define DEFINE_FWK_MODULE(type)
int embedPFIsolation(reco::Muon &, reco::MuonRef &)
void beginEvent(const edm::Event &iEvent)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~MuPFIsoEmbedder() override