58 std::vector<std::string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
61 produces<edm::ValueMap<float> >();
69 bool manualCat_ =
true;
103 std::vector<float>
values;
104 values.reserve(egCollection->size());
106 for (pat::ElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
107 double mvaVal = -999999;
T getParameter(std::string const &) const
T const * product() const
Double_t mvaValue(const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools const &myEcalCluster, bool printDebug=kFALSE)
std::vector< std::string > mvaWeightFiles_
ElectronPATIdMVAProducer(const edm::ParameterSet &)
T getUntrackedParameter(std::string const &, T const &) const
std::vector< Electron > ElectronCollection
void initialize(std::string methodName, std::string weightsfile, EGammaMvaEleEstimator::MVAType type)
~ElectronPATIdMVAProducer() override
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< pat::ElectronCollection > electronToken_
EGammaMvaEleEstimator * mvaID_
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< double > eventrhoToken_
const std::string & fullPath() const