62 std::vector<string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
65 produces<edm::ValueMap<float> >();
76 bool manualCat_ =
true;
78 string path_mvaWeightFileEleID;
81 mvaWeightFiles_.push_back(path_mvaWeightFileEleID);
84 mvaID_->initialize(method_, type_, manualCat_, mvaWeightFiles_);
115 iEvent.
getByToken(electronToken_,egCollection);
124 std::vector<float>
values;
125 values.reserve(egCollection->size());
127 for ( pat::ElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
129 double mvaVal = -999999;
134 mvaVal = mvaID_->mvaValue( *egIter, _Rho, verbose_);
137 values.push_back( mvaVal );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
ElectronPATIdMVAProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< Electron > ElectronCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< pat::ElectronCollection > electronToken_
EGammaMvaEleEstimator * mvaID_
virtual ~ElectronPATIdMVAProducer()
edm::EDGetTokenT< double > eventrhoToken_
vector< string > mvaWeightFiles_
std::string fullPath() const