30 caloGeometryToken_(esConsumes()),
31 sevLvToken_(esConsumes()),
33 recHitsLabel_(iConfig.getParameter<
edm::
InputTag>(
"recHitsLabel")),
34 emObjectLabel_(iConfig.getParameter<
edm::
InputTag>(
"emObjectLabel")),
35 energyCut_(iConfig.getParameter<double>(
"energyCut")),
36 etCut_(iConfig.getParameter<double>(
"etCut")),
37 etCandCut_(iConfig.getParameter<double>(
"etCandCut")),
38 outerRadius_(iConfig.getParameter<double>(
"outerRadius")),
39 innerRadius_(iConfig.getParameter<double>(
"innerRadius")),
40 interestingDetIdCollection_(iConfig.getParameter<
std::
string>(
"interestingDetIdCollection")) {
41 const std::vector<std::string> flagnamesEB =
42 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEB");
44 const std::vector<std::string> flagnamesEE =
45 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEE");
47 flagsexclEB_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
49 flagsexclEE_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
51 const std::vector<std::string> severitynamesEB =
52 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEB");
54 severitiesexclEB_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEB);
56 const std::vector<std::string> severitynamesEE =
57 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEE");
59 severitiesexclEE_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
95 auto detIdCollection = std::make_unique<DetIdCollection>();
97 reco::PhotonCollection::const_iterator emObj;
99 for (emObj = emObjectH->begin(); emObj != emObjectH->end(); emObj++) {
104 GlobalPoint pclu(emObj->caloPosition().x(), emObj->caloPosition().y(), emObj->caloPosition().z());
122 std::vector<int>::const_iterator sit;
149 if (
std::find(detIdCollection->begin(), detIdCollection->end(), recIt->
detid()) == detIdCollection->end())
150 detIdCollection->push_back(recIt->
detid());
155 delete doubleConeSel_;