46 rekey_(conf.getParameter<
bool>(
"rekey")),
51 std::vector<edm::InputTag>
tags = conf.
getParameter<std::vector<edm::InputTag> >(
"floatValueMaps");
56 produces<edm::ValueMap<float> >(
tag.instance());
63 produces<edm::ValueMap<float> >(
name);
82 std::vector<std::vector<float> >
output;
83 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
87 for (
unsigned int igsf = 0; igsf < gsfTracksV.size(); igsf++) {
89 if (
gsf.extra().isNonnull() &&
gsf.extra()->seedRef().isNonnull()) {
91 if (
seed.isNonnull() &&
seed->ctfTrack().isNonnull()) {
94 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
95 output[iname][igsf] = preid->mva(iname);
103 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
126 for (
unsigned int iele = 0; iele < gsfElectronsV.size(); iele++) {
147 desc.add<std::vector<std::string> >(
"ModelNames", {
"unbiased",
"ptbiased"});
148 desc.add<
bool>(
"rekey",
false);
150 desc.add<std::vector<edm::InputTag> >(
"floatValueMaps", std::vector<edm::InputTag>());
151 descriptions.
add(
"lowPtGsfElectronSeedValueMaps",
desc);
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::ValueMap< reco::PreIdRef > > preIdsValueMap_
edm::EDGetTokenT< reco::GsfTrackCollection > gsfTracks_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > floatValueMaps_
#define DEFINE_FWK_MODULE(type)
bool isNonnull() const
Checks for non-null.
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
std::vector< std::string > names_
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
LowPtGsfElectronSeedValueMapsProducer(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectrons_
static void fillDescriptions(edm::ConfigurationDescriptions &)
void produce(edm::Event &, const edm::EventSetup &) override