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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

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<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache 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.

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 }

References edm::ParameterSet::getParameter().

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 58 of file EgammaHLTPixelMatchElectronProducers.cc.

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 }

References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().

◆ produce()

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

Definition at line 68 of file EgammaHLTPixelMatchElectronProducers.cc.

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 }

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

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().

edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
EgammaHLTPixelMatchElectronAlgo::setupES
void setupES(const edm::EventSetup &setup)
Definition: EgammaHLTPixelMatchElectronAlgo.cc:61
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
EgammaHLTPixelMatchElectronProducers::token_
const edm::EDPutTokenT< reco::ElectronCollection > token_
Definition: EgammaHLTPixelMatchElectronProducers.cc:46
reco::ElectronCollection
std::vector< Electron > ElectronCollection
collectin of Electron objects
Definition: ElectronFwd.h:9
eostools.move
def move(src, dest)
Definition: eostools.py:511
EgammaHLTPixelMatchElectronAlgo::run
void run(edm::Event &, reco::ElectronCollection &)
Definition: EgammaHLTPixelMatchElectronAlgo.cc:85
EgammaHLTPixelMatchElectronProducers::algo_
EgammaHLTPixelMatchElectronAlgo algo_
Definition: EgammaHLTPixelMatchElectronProducers.cc:45
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37