34 recHitsLabel_(iConfig.getParameter<
edm::
InputTag>(
"recHitsLabel")),
35 emObjectLabel_(iConfig.getParameter<
edm::
InputTag>(
"emObjectLabel")),
36 energyCut_(iConfig.getParameter<double>(
"energyCut")),
37 etCut_(iConfig.getParameter<double>(
"etCut")),
38 etCandCut_(iConfig.getParameter<double>(
"etCandCut")),
39 outerRadius_(iConfig.getParameter<double>(
"outerRadius")),
40 innerRadius_(iConfig.getParameter<double>(
"innerRadius")),
41 interestingDetIdCollection_(iConfig.getParameter<
std::
string>(
"interestingDetIdCollection")) {
42 const std::vector<std::string> flagnamesEB =
43 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEB");
45 const std::vector<std::string> flagnamesEE =
46 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEE");
48 flagsexclEB_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
50 flagsexclEE_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
52 const std::vector<std::string> severitynamesEB =
53 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEB");
55 severitiesexclEB_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEB);
57 const std::vector<std::string> severitynamesEE =
58 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEE");
60 severitiesexclEE_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
102 auto detIdCollection = std::make_unique<DetIdCollection>();
104 reco::GsfElectronCollection::const_iterator emObj;
105 if (doubleConeSel_) {
106 for (emObj = emObjectH->begin(); emObj != emObjectH->end(); emObj++) {
111 GlobalPoint pclu(emObj->caloPosition().x(), emObj->caloPosition().y(), emObj->caloPosition().z());
126 std::vector<int>::const_iterator sit;
154 if (
std::find(detIdCollection->begin(), detIdCollection->end(), recIt.
detid()) == detIdCollection->end())
155 detIdCollection->push_back(recIt.
detid());
160 delete doubleConeSel_;