#include <LowPtGsfElectronSeedValueMapsProducer.h>
LowPtGsfElectronSeedValueMapsProducer::LowPtGsfElectronSeedValueMapsProducer |
( |
const edm::ParameterSet & |
conf | ) |
|
|
explicit |
Definition at line 15 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References Skims_PA_cff::name, and names_.
20 produces<edm::ValueMap<float> >(
name);
T getParameter(std::string const &) const
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTracks_
const std::vector< std::string > names_
const edm::EDGetTokenT< edm::ValueMap< reco::PreIdRef > > preIdsValueMap_
LowPtGsfElectronSeedValueMapsProducer::~LowPtGsfElectronSeedValueMapsProducer |
( |
| ) |
|
|
override |
Definition at line 30 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References begin, end, edm::helper::Filler< Map >::fill(), trigObjTnPSource_cfi::filler, ntupleEnum::gsf, ecalDrivenGsfElectronCoresFromMultiCl_cff::gsfTracks, gsfTracks_, edm::helper::Filler< Map >::insert(), edm::Ref< C, T, F >::isNonnull(), edm::HandleBase::isValid(), eostools::move(), names_, convertSQLitetoXML_cfg::output, preIdsValueMap_, and SurveyInfoScenario_cff::seed.
41 if (!preIdsValueMap.
isValid()) {
46 std::vector<std::vector<float> >
output;
47 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
48 output.push_back(std::vector<float>(gsfTracks->size(), -999.));
50 for (
unsigned int igsf = 0; igsf < gsfTracks->size(); igsf++) {
52 if (
gsf.isNonnull() &&
gsf->extra().isNonnull() &&
gsf->extra()->seedRef().isNonnull()) {
57 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
58 output[iname][igsf] = preid->mva(iname);
66 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
69 filler.insert(gsfTracks, output[iname].
begin(), output[iname].
end());
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTracks_
const std::vector< std::string > names_
bool isNonnull() const
Checks for non-null.
const edm::EDGetTokenT< edm::ValueMap< reco::PreIdRef > > preIdsValueMap_
const std::vector<std::string> LowPtGsfElectronSeedValueMapsProducer::names_ |
|
private |