14 edm::LogWarning(
"FixedGridRhoProducer") <<
"Wrong EtaRegion parameter: " << etaRegion <<
". Using EtaRegion = Central";
19 input_pfcoll_token_ = consumes<reco::PFCandidateCollection>(pfCandidatesTag_);
28 iEvent.
getByToken(input_pfcoll_token_, pfColl);
32 double result =
algo->fixedGridRho(myEtaRegion);
33 iEvent.
put(std::make_unique<double>(result));
T getParameter(std::string const &) const
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
~FixedGridRhoProducer() override