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.4 2009/10/14 14:32:24 covarell Exp $
14 //
15 //
16 
17 // user include files
24 
26 
28 //#include "DataFormats/EgammaReco/interface/ElectronPixelSeedFwd.h"
29 //#include "DataFormats/EgammaReco/interface/ElectronPixelSeed.h"
30 #include "DataFormats/TrackReco/interface/TrackFwd.h"
31 #include "DataFormats/TrackReco/interface/TrackExtraFwd.h"
32 #include "DataFormats/TrackReco/interface/Track.h"
33 #include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h"
34 #include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
35 */
38 
39 #include <iostream>
40 
41 using namespace reco;
42 
44 {
45  //register your products
46  produces<ElectronCollection>();
47 
48  //create algo
50 
51 }
52 
53 
55 {
56  delete algo_;
57 }
58 
60 {
61 }
62 
63 // ------------ method called to produce the data ------------
65 {
66  // Update the algorithm conditions
67  algo_->setupES(iSetup);
68 
69  // Create the output collections
70  std::auto_ptr<ElectronCollection> pOutEle(new ElectronCollection);
71 
72  // invoke algorithm
73  algo_->run(e,*pOutEle);
74 
75  // put result into the Event
76  e.put(pOutEle);
77 
78 }
79 
80 
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:94
void setupES(const edm::EventSetup &setup)
std::vector< Electron > ElectronCollection
collectin of Electron objects
Definition: ElectronFwd.h:9
virtual void produce(edm::Event &e, const edm::EventSetup &c)