#include <LowPtGsfElectronIDProducer.h>
Definition at line 11 of file LowPtGsfElectronIDProducer.cc.
References dataset::name, and names_.
21 produces< edm::ValueMap<float> >(
name);
const double minPtThreshold_
T getParameter(std::string const &) const
const std::vector< std::string > names_
const edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectrons_
const double maxPtThreshold_
const edm::EDGetTokenT< double > rho_
LowPtGsfElectronIDProducer::~LowPtGsfElectronIDProducer |
( |
| ) |
|
|
override |
Definition at line 70 of file LowPtGsfElectronIDProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and DEFINE_FWK_MODULE.
Referenced by globalEndJob().
75 desc.
add< std::vector<std::string> >(
"ModelNames",std::vector<std::string>());
76 desc.add< std::vector<std::string> >(
"ModelWeights",std::vector<std::string>());
77 desc.add< std::vector<double> >(
"ModelThresholds",std::vector<double>());
78 desc.add<
bool>(
"PassThrough",
false);
79 desc.add<
double>(
"MinPtThreshold",0.5);
80 desc.add<
double>(
"MaxPtThreshold",15.);
81 descriptions.
add(
"defaultLowPtGsfElectronID",desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition at line 31 of file LowPtGsfElectronIDProducer.cc.
References begin, end, edm::helper::Filler< Map >::fill(), objects.autophobj::filler, gsfElectrons_cfi::gsfElectrons, gsfElectrons_, edm::helper::Filler< Map >::insert(), edm::HandleBase::isValid(), eostools::move(), names_, convertSQLitetoXML_cfg::output, rho, and rho_.
Referenced by globalEndJob().
35 event.getByToken(
rho_,rho);
44 std::vector< std::vector<float> >
output;
45 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
46 output.push_back( std::vector<float>(gsfElectrons->size(),-999.) );
48 for (
unsigned int iele = 0; iele < gsfElectrons->size(); iele++ ) {
51 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
52 output[iname][iele] = globalCache()->eval(
names_[iname], ele, *rho );
57 for (
unsigned int iname = 0; iname <
names_.size(); ++iname ) {
60 filler.insert(gsfElectrons, output[iname].
begin(), output[iname].
end());
const std::vector< std::string > names_
const edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectrons_
const edm::EDGetTokenT< double > rho_
const double LowPtGsfElectronIDProducer::maxPtThreshold_ |
|
private |
const double LowPtGsfElectronIDProducer::minPtThreshold_ |
|
private |
const std::vector<std::string> LowPtGsfElectronIDProducer::names_ |
|
private |
const bool LowPtGsfElectronIDProducer::passThrough_ |
|
private |