60 std::vector<std::string> fpMvaWeightFiles = iConfig.
getParameter<std::vector<std::string> >(
"mvaWeightFile");
63 produces<edm::ValueMap<float> >();
74 bool manualCat_ =
true;
121 std::vector<float>
values;
122 values.reserve(egCollection->size());
124 for ( pat::ElectronCollection::const_iterator egIter = egCandidates.begin(); egIter != egCandidates.end(); ++egIter) {
126 double mvaVal = -999999;
134 values.push_back( mvaVal );
138 filler.
insert(egCollection, values.begin(), values.end() );
T getParameter(std::string const &) const
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)
std::vector< std::string > mvaWeightFiles_
ElectronPATIdMVAProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< Electron > ElectronCollection
Double_t mvaValue(const reco::GsfElectron &ele, const reco::Vertex &vertex, const TransientTrackBuilder &transientTrackBuilder, EcalClusterLazyTools myEcalCluster, bool printDebug=kFALSE)
edm::EDGetTokenT< pat::ElectronCollection > electronToken_
EGammaMvaEleEstimator * mvaID_
T const * product() const
virtual ~ElectronPATIdMVAProducer()
edm::EDGetTokenT< double > eventrhoToken_
std::string fullPath() const