#include <LowPtGsfElectronSeedValueMapsProducer.h>
LowPtGsfElectronSeedValueMapsProducer::LowPtGsfElectronSeedValueMapsProducer |
( |
const edm::ParameterSet & |
conf | ) |
|
|
explicit |
Definition at line 15 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References dataset::name, and names_.
20 for (
const auto&
name :
names_ ) { 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 29 of file LowPtGsfElectronSeedValueMapsProducer.cc.
References begin, end, edm::helper::Filler< Map >::fill(), objects.autophobj::filler, ntupleEnum::gsf, gedGsfElectronCores_cfi::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.
42 std::vector< std::vector<float> >
output;
43 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
44 output.push_back( std::vector<float>(gsfTracks->size(),-999.) );
46 for (
unsigned int igsf = 0; igsf < gsfTracks->size(); igsf++ ) {
48 if (
gsf.isNonnull() &&
49 gsf->extra().isNonnull() &&
50 gsf->extra()->seedRef().isNonnull() ) {
55 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
56 output[iname][igsf] = preid->mva(iname);
64 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
67 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 |