|
| LowPtGsfElectronIDProducer (const edm::ParameterSet &) |
|
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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<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) |
|
Definition at line 95 of file LowPtGsfElectronIDProducer.cc.
References begin, reco::GsfElectron::core(), pat::Electron::electronID(), lowPtElectrons_cff::electrons, electrons_, end, eval(), Exception, edm::helper::Filler< Map >::fill(), objects.autophobj::filler, edm::EventSetup::get(), ntupleEnum::gsf, edm::helper::Filler< Map >::insert(), MagneticField::inTesla(), pat::Electron::isElectronIDAvailable(), edm::Ref< C, T, F >::isNull(), edm::EDGetTokenT< T >::isUninitialized(), eostools::move(), names_, custom_jme_cff::nElectrons, convertSQLitetoXML_cfg::output, electronProducer_cfi::patElectrons, patElectrons_, rho, rho_, lowPtElectrons_cff::unbiased, unbiased_, and usePAT_.
103 event.getByToken(
rho_, rho);
104 if (!rho.isValid()) {
105 std::ostringstream os;
106 os <<
"Problem accessing rho collection for low-pT electrons" << std::endl;
126 std::vector<std::vector<float> >
output;
128 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
129 output.emplace_back(nElectrons, -999.);
133 for (
unsigned int iele = 0; iele <
nElectrons; iele++) {
135 if (!ele->isElectronIDAvailable(
"unbiased")) {
138 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
139 output[iname][iele] =
eval(
names_[iname], ele, *rho, ele->electronID(
"unbiased"), zfield.z());
143 for (
unsigned int iele = 0; iele <
nElectrons; iele++) {
145 if (ele->core().isNull()) {
148 const auto&
gsf = ele->core()->gsfTrack();
153 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
154 output[iname][iele] =
eval(
names_[iname], ele, *rho, unbiased, zfield.z());
160 for (
unsigned int iname = 0; iname <
names_.size(); ++iname) {
164 filler.insert(patElectrons, output[iname].
begin(), output[iname].
end());
166 filler.insert(electrons, output[iname].
begin(), output[iname].
end());
edm::EDGetTokenT< reco::GsfElectronCollection > electrons_
const std::vector< std::string > names_
edm::EDGetTokenT< pat::ElectronCollection > patElectrons_
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
double eval(const std::string &name, const edm::Ptr< reco::GsfElectron > &, double rho, float unbiased, float field_z) const
const edm::EDGetTokenT< double > rho_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
edm::EDGetTokenT< edm::ValueMap< float > > unbiased_
bool isUninitialized() const