30 caloGeometryToken_(esConsumes()),
31 sevLvToken_(esConsumes()),
32 recHitsLabel_(iConfig.getParameter<
edm::
InputTag>(
"recHitsLabel")),
33 emObjectLabel_(iConfig.getParameter<
edm::
InputTag>(
"emObjectLabel")),
34 energyCut_(iConfig.getParameter<double>(
"energyCut")),
35 etCut_(iConfig.getParameter<double>(
"etCut")),
36 etCandCut_(iConfig.getParameter<double>(
"etCandCut")),
37 outerRadius_(iConfig.getParameter<double>(
"outerRadius")),
38 innerRadius_(iConfig.getParameter<double>(
"innerRadius")),
39 interestingDetIdCollection_(iConfig.getParameter<
std::
string>(
"interestingDetIdCollection")) {
40 const std::vector<std::string> flagnamesEB =
41 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEB");
43 const std::vector<std::string> flagnamesEE =
44 iConfig.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcludedEE");
46 flagsexclEB_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
48 flagsexclEE_ = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
50 const std::vector<std::string> severitynamesEB =
51 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEB");
53 severitiesexclEB_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEB);
55 const std::vector<std::string> severitynamesEE =
56 iConfig.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcludedEE");
58 severitiesexclEE_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynamesEE);
98 auto detIdCollection = std::make_unique<DetIdCollection>();
100 reco::GsfElectronCollection::const_iterator emObj;
101 if (doubleConeSel_) {
102 for (emObj = emObjectH->begin(); emObj != emObjectH->end(); emObj++) {
107 GlobalPoint pclu(emObj->caloPosition().x(), emObj->caloPosition().y(), emObj->caloPosition().z());
122 std::vector<int>::const_iterator sit;
150 if (
std::find(detIdCollection->begin(), detIdCollection->end(), recIt.
detid()) == detIdCollection->end())
151 detIdCollection->push_back(recIt.
detid());
156 delete doubleConeSel_;