67 eventrhoToken_ = consumes<double>(
edm::InputTag(
"kt6PFJets",
"rho"));
71 std::vector<string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
75 produces<edm::ValueMap<float> >(
"");
86 bool manualCat_ =
true;
88 string path_mvaWeightFileEleID;
91 mvaWeightFiles_.push_back(path_mvaWeightFileEleID);
94 mvaID_->initialize(method_, type_, manualCat_, mvaWeightFiles_);
122 const Vertex *pv = &dummy;
127 e(0, 0) = 0.0015 * 0.0015;
128 e(1, 1) = 0.0015 * 0.0015;
131 dummy =
Vertex(p, e, 0, 0, 0);
134 EcalClusterLazyTools lazyTools(iEvent, iSetup, reducedEBRecHitCollection_, reducedEERecHitCollection_);
141 iEvent.
getByToken(electronToken_,egCollection);
149 std::vector<float>
values;
150 values.reserve(egCollection->size());
152 for ( reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
154 double mvaVal = -999999;
156 mvaVal = mvaID_->mvaValue( *egIter, *pv,thebuilder,lazyTools, verbose_);
159 mvaVal = mvaID_->mvaValue( *egIter, *pv, _Rho,lazyTools, verbose_);
162 values.push_back( mvaVal );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
vector< string > mvaWeightFiles_
edm::EDGetTokenT< double > eventrhoToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#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 &)
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
ElectronIdMVAProducer(const edm::ParameterSet &)
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
edm::InputTag reducedEERecHitCollection_
std::string fullPath() const
EGammaMvaEleEstimator * mvaID_