68 std::vector<std::string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
72 produces<edm::ValueMap<float> >(
"");
83 bool manualCat_ =
true;
119 if ( !vertexCollection->empty()) {
120 pv = &*vertexCollection->begin();
123 e(0, 0) = 0.0015 * 0.0015;
124 e(1, 1) = 0.0015 * 0.0015;
145 std::vector<float>
values;
146 values.reserve(egCollection->size());
148 for ( reco::GsfElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
150 double mvaVal = -999999;
158 values.push_back( mvaVal );
162 filler.
insert(egCollection, values.begin(), values.end() );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< double > eventrhoToken_
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)
edm::EDGetTokenT< EcalRecHitCollection > reducedEBRecHitCollectionToken_
void insert(const H &h, I begin, I end)
math::Error< dimension >::type Error
covariance error matrix (3x3)
edm::EDGetTokenT< EcalRecHitCollection > reducedEERecHitCollectionToken_
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
bool filter(edm::Event &, const edm::EventSetup &) override
math::XYZPoint Point
point in the space
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Double_t mvaValue(const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE)
std::vector< std::string > mvaWeightFiles_
ElectronIdMVAProducer(const edm::ParameterSet &)
T const * product() const
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
std::string fullPath() const
~ElectronIdMVAProducer() override
T const * product() const
EGammaMvaEleEstimator * mvaID_