63 verbose_ = iConfig.getUntrackedParameter<
bool>(
"verbose",
false);
64 vertexToken_ = consumes<reco::VertexCollection>(iConfig.getParameter<
edm::InputTag>(
"vertexTag"));
65 electronToken_ = consumes<reco::GsfElectronCollection>(iConfig.getParameter<
edm::InputTag>(
"electronTag"));
66 eventrhoToken_ = consumes<double>(
edm::InputTag(
"kt6PFJets",
"rho"));
67 reducedEBRecHitCollectionToken_ =
68 consumes<EcalRecHitCollection>(iConfig.getParameter<
edm::InputTag>(
"reducedEBRecHitCollection"));
69 reducedEERecHitCollectionToken_ =
70 consumes<EcalRecHitCollection>(iConfig.getParameter<
edm::InputTag>(
"reducedEERecHitCollection"));
71 method_ = iConfig.getParameter<
std::string>(
"method");
72 std::vector<std::string> fpMvaWeightFiles = iConfig.getParameter<std::vector<std::string> >(
"mvaWeightFile");
73 Trig_ = iConfig.getParameter<
bool>(
"Trig");
74 NoIP_ = iConfig.getParameter<
bool>(
"NoIP");
76 produces<edm::ValueMap<float> >(
"");
81 if (Trig_ && !NoIP_) {
93 bool manualCat_ =
true;
98 mvaWeightFiles_.push_back(path_mvaWeightFileEleID);
101 mvaID_->initialize(method_, type_, manualCat_, mvaWeightFiles_);
126 e(0, 0) = 0.0015 * 0.0015;
127 e(1, 1) = 0.0015 * 0.0015;
151 std::vector<float>
values;
152 values.reserve(egCollection->size());
154 for (reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end();
156 double mvaVal = -999999;