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;
111 values.push_back(mvaVal);
115 filler.
insert(egCollection, values.begin(), values.end());
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
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 &)
std::vector< Electron > ElectronCollection
~ElectronPATIdMVAProducer() override
edm::EDGetTokenT< pat::ElectronCollection > electronToken_
EGammaMvaEleEstimator * mvaID_
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
T getParameter(std::string const &) const
edm::EDGetTokenT< double > eventrhoToken_
std::string fullPath() const