44 putToken_{produces<edm::ValueMap<double>>()},
45 egHcalIsoPtMin_{
config.getParameter<
double>(
"etMin")},
46 egHcalIsoConeSizeOut_{
config.getParameter<
double>(
"extRadius")},
47 egHcalIsoConeSizeIn_{
config.getParameter<
double>(
"intRadius")},
48 egHcalDepth_{
config.getParameter<
int>(
"Depth")} {}
59 std::vector<double> retV(emObjectHandle->size(), 0);
64 for (
size_t i = 0;
i < emObjectHandle->size(); ++
i) {
65 double isoValue = myHadIsolation.getTowerEtSum(&(emObjectHandle->at(
i)));
69 filler.
insert(emObjectHandle, retV.begin(), retV.end());
void produce(edm::Event &, const edm::EventSetup &) override
EgammaTowerIsolationProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
const double egHcalIsoConeSizeIn_
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const edm::EDGetTokenT< edm::View< reco::Candidate > > emObjectProducer_
bool get(ProductID const &oid, Handle< PROD > &result) const
const signed int egHcalDepth_
const double egHcalIsoConeSizeOut_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
T getParameter(std::string const &) const
tuple config
parse the configuration file
const edm::EDPutTokenT< edm::ValueMap< double > > putToken_
const edm::EDGetTokenT< CaloTowerCollection > towerProducer_
const double egHcalIsoPtMin_