69 std::vector<string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
73 produces<edm::ValueMap<float> >(
"");
84 bool manualCat_ =
true;
86 string path_mvaWeightFileEleID;
89 mvaWeightFiles_.push_back(path_mvaWeightFileEleID);
92 mvaID_->initialize(method_, type_, manualCat_, mvaWeightFiles_);
120 const Vertex *pv = &dummy;
125 e(0, 0) = 0.0015 * 0.0015;
126 e(1, 1) = 0.0015 * 0.0015;
129 dummy =
Vertex(p, e, 0, 0, 0);
132 EcalClusterLazyTools lazyTools(iEvent, iSetup, reducedEBRecHitCollection_, reducedEERecHitCollection_);
148 std::vector<float>
values;
149 values.reserve(egCollection->size());
151 for ( reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
153 double mvaVal = -999999;
155 mvaVal = mvaID_->mvaValue( *egIter, *pv,thebuilder,lazyTools, verbose_);
158 mvaVal = mvaID_->mvaValue( *egIter, *pv, _Rho,lazyTools, verbose_);
161 values.push_back( mvaVal );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
vector< string > mvaWeightFiles_
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag reducedEBRecHitCollection_
math::XYZPoint Point
point in the space
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ElectronIdMVAProducer(const edm::ParameterSet &)
edm::InputTag reducedEERecHitCollection_
edm::InputTag electronTag_
std::string fullPath() const
EGammaMvaEleEstimator * mvaID_