63 muons_(iConfig.getParameter<
edm::InputTag>(
"src"))
68 std::map<std::string,edm::ParameterSet> psetMap;
71 std::vector<std::string> isolationLabels;
72 isolationLabels.push_back(
"pfIsolationR03");
73 isolationLabels.push_back(
"pfIsoMeanDRProfileR03");
74 isolationLabels.push_back(
"pfIsoSumDRProfileR03");
75 isolationLabels.push_back(
"pfIsolationR04");
76 isolationLabels.push_back(
"pfIsoMeanDRProfileR04");
77 isolationLabels.push_back(
"pfIsoSumDRProfileR04");
80 for( std::vector<std::string>::const_iterator
label = isolationLabels.begin();
label != isolationLabels.end();++
label)
84 produces<reco::MuonCollection>();
106 using namespace reco;
115 auto out = std::make_unique<MuonCollection>();
117 for(
unsigned int i=0;
i<muons->size();++
i) {
121 out->push_back(muon);
T getParameter(std::string const &) const
virtual 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 &)
void beginEvent(const edm::Event &iEvent)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)