CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgammaHLTPixelMatchElectronProducers.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EgammaHLTProducers
4 // Class: EgammaHLTPixelMatchElectronProducers
5 //
11 //
12 // Original Author: Monica Vazquez Acosta (CERN)
13 // $Id: EgammaHLTPixelMatchElectronProducers.cc,v 1.3 2009/01/28 17:07:00 ghezzi Exp $
14 //
15 //
16 
17 // user include files
26 
28 
30 //#include "DataFormats/EgammaReco/interface/ElectronPixelSeedFwd.h"
31 //#include "DataFormats/EgammaReco/interface/ElectronPixelSeed.h"
32 #include "DataFormats/TrackReco/interface/TrackFwd.h"
33 #include "DataFormats/TrackReco/interface/TrackExtraFwd.h"
34 #include "DataFormats/TrackReco/interface/Track.h"
35 #include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h"
36 #include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
37 */
40 
41 #include <iostream>
42 
43 using namespace reco;
44 
46 
47  //register your products
48  produces<ElectronCollection>();
49 
50  //create algo
52 }
53 
54 
56  delete algo_;
57 }
58 
60 
62  desc.add<edm::InputTag>(("TrackProducer"), edm::InputTag("hltEleAnyWP80CleanMergedTracks"));
63  desc.add<edm::InputTag>(("GsfTrackProducer"), edm::InputTag(""));
64  desc.add<bool>(("UseGsfTracks"), false);
65  desc.add<edm::InputTag>(("BSProducer"), edm::InputTag("hltOnlineBeamSpot"));
66  descriptions.add(("hltEgammaHLTPixelMatchElectronProducers"), desc);
67 }
68 
70 {}
71 
72 // ------------ method called to produce the data ------------
74  // Update the algorithm conditions
75  algo_->setupES(iSetup);
76 
77  // Create the output collections
78  std::auto_ptr<ElectronCollection> pOutEle(new ElectronCollection);
79 
80  // invoke algorithm
81  algo_->run(e,*pOutEle);
82 
83  // put result into the Event
84  e.put(pOutEle);
85 }
86 
87 
EgammaHLTPixelMatchElectronProducers(const edm::ParameterSet &conf)
void run(edm::Event &, reco::ElectronCollection &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
void setupES(const edm::EventSetup &setup)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< Electron > ElectronCollection
collectin of Electron objects
Definition: ElectronFwd.h:9
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)