46 const std::unique_ptr<const ElectronMVAEstimator>
mvaID_;
55 thresholdIsoBarrel(iConfig.getParameter<double>(
"thresholdIsoDR03Barrel")),
56 thresholdIsoEndcap(iConfig.getParameter<double>(
"thresholdIsoDR03Endcap")),
58 .vweightsfiles = iConfig.
getParameter<std::vector<std::string> >(
"HZZmvaWeightFile")})) {
59 produces<reco::GsfElectronCollection>();
66 auto mvaElectrons = std::make_unique<reco::GsfElectronCollection>();
75 for (reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end();
78 double isoDr03 = egIter->dr03TkSumPt() + egIter->dr03EcalRecHitSumEt() + egIter->dr03HcalTowerSumEt();
79 double eleEta = fabs(egIter->eta());
const std::string path_mvaWeightFileEleID
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
T getParameter(std::string const &) const
const std::vector< std::string > mvaWeightFileEleID
T const * product() const
const std::unique_ptr< const ElectronMVAEstimator > mvaID_
const double thresholdIsoBarrel
std::vector< Vertex > VertexCollection
const double thresholdIsoEndcap
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
const edm::EDGetTokenT< reco::VertexCollection > vertexToken
const double thresholdBarrel
#define DEFINE_FWK_MODULE(type)
const double thresholdEndcap
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken
~ElectronIdMVABased() override
ElectronIdMVABased(const edm::ParameterSet &)