CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
EgammaHLTPixelMatchElectronProducers Class Reference

#include <EgammaHLTPixelMatchElectronProducers.h>

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 hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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 31 of file EgammaHLTPixelMatchElectronProducers.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file EgammaHLTPixelMatchElectronProducers.cc.

References edm::ParameterSet::getParameter().

35  :
36  algo_(iConfig,consumesCollector()),
37  token_( produces<ElectronCollection>() )
38 {
39  consumes<TrackCollection>(iConfig.getParameter<edm::InputTag>("TrackProducer"));
40  consumes<GsfTrackCollection>(iConfig.getParameter<edm::InputTag>("GsfTrackProducer"));
41  consumes<BeamSpot>(iConfig.getParameter<edm::InputTag>("BSProducer"));
42 }
const edm::EDPutTokenT< reco::ElectronCollection > token_

Member Function Documentation

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

Definition at line 45 of file EgammaHLTPixelMatchElectronProducers.cc.

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

45  {
46 
48  desc.add<edm::InputTag>(("TrackProducer"), edm::InputTag("hltEleAnyWP80CleanMergedTracks"));
49  desc.add<edm::InputTag>(("GsfTrackProducer"), edm::InputTag(""));
50  desc.add<bool>(("UseGsfTracks"), false);
51  desc.add<edm::InputTag>(("BSProducer"), edm::InputTag("hltOnlineBeamSpot"));
52  descriptions.add(("hltEgammaHLTPixelMatchElectronProducers"), desc);
53 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void EgammaHLTPixelMatchElectronProducers::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 56 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_, edm::Event::emplace(), eostools::move(), EgammaHLTPixelMatchElectronAlgo::run(), EgammaHLTPixelMatchElectronAlgo::setupES(), and token_.

56  {
57  // Update the algorithm conditions
58  algo_.setupES(iSetup);
59 
60  // Create the output collections
61  ElectronCollection outEle;
62 
63  // invoke algorithm
64  algo_.run(e,outEle);
65 
66  // put result into the Event
67  e.emplace(token_,std::move(outEle));
68 }
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
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:413
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

EgammaHLTPixelMatchElectronAlgo EgammaHLTPixelMatchElectronProducers::algo_
private

Definition at line 42 of file EgammaHLTPixelMatchElectronProducers.h.

Referenced by produce().

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

Definition at line 43 of file EgammaHLTPixelMatchElectronProducers.h.

Referenced by produce().