◆ LowPtGsfElectronSeedValueMapsProducer()
LowPtGsfElectronSeedValueMapsProducer::LowPtGsfElectronSeedValueMapsProducer |
( |
const edm::ParameterSet & |
conf | ) |
|
|
explicit |
Definition at line 42 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References floatValueMaps_, edm::ParameterSet::getParameter(), gsfElectrons_, gsfTracks_, mergeVDriftHistosByStation::name, names_, preIdsValueMap_, rekey_, makeGlobalPositionRcd_cfg::tag, getPayloadData::tags, and edm::vector_transform().
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);
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_
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_
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectrons_
◆ fillDescriptions()
◆ produce()
Definition at line 70 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References SplitLinear::begin, mps_fire::end, trigObjTnPSource_cfi::filler, floatValueMaps_, ntupleEnum::gsf, electronIsolatorFromEffectiveArea_cfi::gsfElectrons, gsfElectrons_, reco::GsfElectron::gsfTrack(), ecalDrivenGsfElectronCoresHGC_cff::gsfTracks, gsfTracks_, heavyIonCSV_trainingSettings::idx, edm::Ref< C, T, F >::isNonnull(), eostools::move(), names_, convertSQLitetoXML_cfg::output, preIdsValueMap_, rekey_, and fileCollector::seed.
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++) {
edm::EDGetTokenT< edm::ValueMap< reco::PreIdRef > > preIdsValueMap_
edm::EDGetTokenT< reco::GsfTrackCollection > gsfTracks_
std::vector< edm::EDGetTokenT< edm::ValueMap< float > > > floatValueMaps_
bool isNonnull() const
Checks for non-null.
std::vector< std::string > names_
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectrons_
◆ floatValueMaps_
◆ gsfElectrons_
◆ gsfTracks_
◆ names_
std::vector<std::string> LowPtGsfElectronSeedValueMapsProducer::names_ |
|
private |
◆ preIdsValueMap_
◆ rekey_
const bool LowPtGsfElectronSeedValueMapsProducer::rekey_ |
|
private |