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

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

Definition at line 58 of file EgammaHLTPixelMatchElectronProducers.cc.

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

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 }
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 68 of file EgammaHLTPixelMatchElectronProducers.cc.

References algo_, DEFINE_FWK_MODULE, edm::Event::emplace(), 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
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:421
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

EgammaHLTPixelMatchElectronAlgo EgammaHLTPixelMatchElectronProducers::algo_
private

Definition at line 45 of file EgammaHLTPixelMatchElectronProducers.cc.

Referenced by produce().

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

Definition at line 46 of file EgammaHLTPixelMatchElectronProducers.cc.

Referenced by produce().