Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Types | |
enum | Version { Version::V0, Version::V1 } |
Private Member Functions | |
template<typename EL , typename FID , typename FTRK > | |
void | doWork (double rho, float bz, EL const &electrons, FID &&idFunctor, FTRK &&trkFunctor, edm::Event &) const |
double | eval (const GBRForest &model, const reco::GsfElectron &, double rho, float unbiased, float field_z, const reco::Track *trk=nullptr) const |
Private Attributes | |
edm::EDGetTokenT < reco::GsfElectronCollection > | electrons_ |
const edm::ESGetToken < MagneticField, IdealMagneticFieldRecord > | fieldToken_ |
edm::EDGetTokenT < edm::Association < reco::TrackCollection > > | gsf2trk_ |
const double | maxPtThreshold_ |
const double | minPtThreshold_ |
std::vector< std::unique_ptr < const GBRForest > > | models_ |
const std::vector< std::string > | names_ |
const bool | passThrough_ |
edm::EDGetTokenT < pat::ElectronCollection > | patElectrons_ |
std::vector< edm::EDPutTokenT < edm::ValueMap< float > > > | putTokens_ |
const edm::EDGetTokenT< double > | rho_ |
const std::vector< double > | thresholds_ |
edm::EDGetTokenT < edm::ValueMap< float > > | unbiased_ |
const bool | useGsfToTrack_ |
const bool | usePAT_ |
Version | version_ |
const std::string | versionName_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 29 of file LowPtGsfElectronIDProducer.cc.
|
strongprivate |
|
explicit |
Definition at line 70 of file LowPtGsfElectronIDProducer.cc.
References createGBRForest(), electrons_, Exception, edm::ParameterSet::getParameter(), gsf2trk_, models_, mergeVDriftHistosByStation::name, names_, patElectrons_, edm::ProductRegistryHelper::produces(), putTokens_, thresholds_, unbiased_, useGsfToTrack_, usePAT_, V0, V1, version_, versionName_, and HLT_FULL_cff::weights.
|
private |
Definition at line 220 of file LowPtGsfElectronIDProducer.cc.
References eval(), edm::helper::Filler< Map >::fill(), edm::helper::Filler< Map >::insert(), SiStripPI::max, models_, eostools::move(), names_, convertSQLitetoXML_cfg::output, putTokens_, and HcalDetIdTransform::transform().
Referenced by produce().
|
private |
Definition at line 251 of file LowPtGsfElectronIDProducer.cc.
References lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), GBRForest::GetResponse(), PixelMapPlotter::inputs, V0, V1, and version_.
Referenced by doWork().
|
static |
Definition at line 268 of file LowPtGsfElectronIDProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addOptional(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 120 of file LowPtGsfElectronIDProducer.cc.
References doWork(), HI_PhotonSkim_cff::electrons, electrons_, edmPickEvents::event, Exception, fieldToken_, edm::ValueMap< T >::get(), edm::Ref< C, T, F >::get(), edm::EventSetup::getData(), gsf2trk_, edm::Ref< C, T, F >::isAvailable(), edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), SiStripPI::max, electronProducer_cfi::patElectrons, patElectrons_, rho, rho_, AlCaHLTBitMon_QueryRunRegistry::string, unbiased_, useGsfToTrack_, and usePAT_.
|
private |
Definition at line 49 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 54 of file LowPtGsfElectronIDProducer.cc.
Referenced by produce().
|
private |
Definition at line 52 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 60 of file LowPtGsfElectronIDProducer.cc.
|
private |
Definition at line 59 of file LowPtGsfElectronIDProducer.cc.
|
private |
Definition at line 61 of file LowPtGsfElectronIDProducer.cc.
Referenced by doWork(), and LowPtGsfElectronIDProducer().
|
private |
Definition at line 56 of file LowPtGsfElectronIDProducer.cc.
Referenced by doWork(), and LowPtGsfElectronIDProducer().
|
private |
Definition at line 58 of file LowPtGsfElectronIDProducer.cc.
|
private |
Definition at line 50 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 57 of file LowPtGsfElectronIDProducer.cc.
Referenced by doWork(), and LowPtGsfElectronIDProducer().
|
private |
Definition at line 51 of file LowPtGsfElectronIDProducer.cc.
Referenced by produce().
|
private |
Definition at line 62 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer().
|
private |
Definition at line 53 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 47 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 48 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer(), and produce().
|
private |
Definition at line 65 of file LowPtGsfElectronIDProducer.cc.
Referenced by eval(), and LowPtGsfElectronIDProducer().
|
private |
Definition at line 63 of file LowPtGsfElectronIDProducer.cc.
Referenced by LowPtGsfElectronIDProducer().