18 names_(conf.getParameter<
std::vector<
std::
string> >(
"ModelNames")) {
20 produces<edm::ValueMap<float> >(
name);
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++) {
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());
81 desc.
add<std::vector<std::string> >(
"ModelNames", {
"unbiased",
"ptbiased"});
82 descriptions.
add(
"lowPtGsfElectronSeedValueMaps", desc);
const edm::EDGetTokenT< reco::GsfTrackCollection > gsfTracks_
const std::vector< std::string > names_
bool isNonnull() const
Checks for non-null.
void insert(const H &h, I begin, I end)
~LowPtGsfElectronSeedValueMapsProducer() override
const edm::EDGetTokenT< edm::ValueMap< reco::PreIdRef > > preIdsValueMap_
#define DEFINE_FWK_MODULE(type)
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
ParameterDescriptionBase * add(U const &iLabel, T const &value)
LowPtGsfElectronSeedValueMapsProducer(const edm::ParameterSet &)
edm::Ref< reco::PreIdCollection > PreIdRef
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void produce(edm::Event &, const edm::EventSetup &) override