10 if (etaRegion ==
"Central")
12 else if (etaRegion ==
"Forward")
14 else if (etaRegion ==
"All")
18 <<
"Wrong EtaRegion parameter: " << etaRegion <<
". Using EtaRegion = Central";
23 input_pfcoll_token_ = consumes<reco::PFCandidateCollection>(pfCandidatesTag_);
30 iEvent.
getByToken(input_pfcoll_token_, pfColl);
34 double result =
algo->fixedGridRho(myEtaRegion);
35 iEvent.
put(std::make_unique<double>(result));
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)
FixedGridRhoProducer(const edm::ParameterSet &iConfig)
T const * product() const
T getParameter(std::string const &) const
~FixedGridRhoProducer() override
Log< level::Warning, false > LogWarning