CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
EgammaHLTPixelMatchElectronProducers Class Reference
Inheritance diagram for EgammaHLTPixelMatchElectronProducers:
edm::stream::EDProducer<>

Public Member Functions

 EgammaHLTPixelMatchElectronProducers (const edm::ParameterSet &conf)
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

EgammaHLTPixelMatchElectronAlgo algo_
 
const edm::EDPutTokenT< reco::ElectronCollectiontoken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Description: EDProducer of HLT Electron objects

Definition at line 37 of file EgammaHLTPixelMatchElectronProducers.cc.

Constructor & Destructor Documentation

◆ EgammaHLTPixelMatchElectronProducers()

EgammaHLTPixelMatchElectronProducers::EgammaHLTPixelMatchElectronProducers ( const edm::ParameterSet conf)
explicit

Definition at line 51 of file EgammaHLTPixelMatchElectronProducers.cc.

References edm::ParameterSet::getParameter().

52  : algo_(iConfig, consumesCollector()), token_(produces<ElectronCollection>()) {
53  consumes<TrackCollection>(iConfig.getParameter<edm::InputTag>("TrackProducer"));
54  consumes<GsfTrackCollection>(iConfig.getParameter<edm::InputTag>("GsfTrackProducer"));
55  consumes<BeamSpot>(iConfig.getParameter<edm::InputTag>("BSProducer"));
56 }
const edm::EDPutTokenT< reco::ElectronCollection > token_

Member Function Documentation

◆ fillDescriptions()

void EgammaHLTPixelMatchElectronProducers::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 58 of file EgammaHLTPixelMatchElectronProducers.cc.

References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.

58  {
60  desc.add<edm::InputTag>(("TrackProducer"), edm::InputTag("hltEleAnyWP80CleanMergedTracks"));
61  desc.add<edm::InputTag>(("GsfTrackProducer"), edm::InputTag(""));
62  desc.add<bool>(("UseGsfTracks"), false);
63  desc.add<edm::InputTag>(("BSProducer"), edm::InputTag("hltOnlineBeamSpot"));
64  descriptions.add(("hltEgammaHLTPixelMatchElectronProducers"), desc);
65 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void EgammaHLTPixelMatchElectronProducers::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 68 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_, MillePedeFileConverter_cfg::e, eostools::move(), EgammaHLTPixelMatchElectronAlgo::run(), EgammaHLTPixelMatchElectronAlgo::setupES(), and token_.

68  {
69  // Update the algorithm conditions
70  algo_.setupES(iSetup);
71 
72  // Create the output collections
73  ElectronCollection outEle;
74 
75  // invoke algorithm
76  algo_.run(e, outEle);
77 
78  // put result into the Event
79  e.emplace(token_, std::move(outEle));
80 }
const edm::EDPutTokenT< reco::ElectronCollection > token_
void run(edm::Event &, reco::ElectronCollection &)
void setupES(const edm::EventSetup &setup)
std::vector< Electron > ElectronCollection
collectin of Electron objects
Definition: ElectronFwd.h:9
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ algo_

EgammaHLTPixelMatchElectronAlgo EgammaHLTPixelMatchElectronProducers::algo_
private

Definition at line 45 of file EgammaHLTPixelMatchElectronProducers.cc.

Referenced by produce().

◆ token_

const edm::EDPutTokenT<reco::ElectronCollection> EgammaHLTPixelMatchElectronProducers::token_
private

Definition at line 46 of file EgammaHLTPixelMatchElectronProducers.cc.

Referenced by produce().