35 recHitsLabel_(iConfig.getParameter<
edm::
InputTag>(
"recHitsLabel")),
36 emObjectLabel_(iConfig.getParameter<
edm::
InputTag>(
"emObjectLabel")),
37 energyCut_(iConfig.getParameter<double>(
"energyCut")),
38 etCut_(iConfig.getParameter<double>(
"etCut")),
39 etCandCut_(iConfig.getParameter<double>(
"etCandCut")),
40 outerRadius_(iConfig.getParameter<double>(
"outerRadius")),
41 innerRadius_(iConfig.getParameter<double>(
"innerRadius")),
42 interestingDetIdCollection_(iConfig.getParameter<
std::
string>(
"interestingDetIdCollection")) {
43 const std::vector<std::string> flagnamesEB =
44 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEB");
46 const std::vector<std::string> flagnamesEE =
47 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEE");
49 flagsexclEB_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
51 flagsexclEE_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
53 const std::vector<std::string> severitynamesEB =
54 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEB");
56 severitiesexclEB_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEB);
58 const std::vector<std::string> severitynamesEE =
59 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEE");
61 severitiesexclEE_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
99 auto detIdCollection = std::make_unique<DetIdCollection>();
101 reco::PhotonCollection::const_iterator emObj;
102 if (doubleConeSel_) {
103 for (emObj = emObjectH->begin(); emObj != emObjectH->end(); emObj++) {
108 GlobalPoint pclu(emObj->caloPosition().x(), emObj->caloPosition().y(), emObj->caloPosition().z());
126 std::vector<int>::const_iterator sit;
153 if (
std::find(detIdCollection->begin(), detIdCollection->end(), recIt->
detid()) == detIdCollection->end())
154 detIdCollection->push_back(recIt->
detid());
159 delete doubleConeSel_;