CMS 3D CMS Logo

cms::RoadSearchHelixMaker Class Reference

#include <RecoTracker/RoadSearchHelixMaker/interface/RoadSearchHelixMaker.h>

Inheritance diagram for cms::RoadSearchHelixMaker:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c)
 RoadSearchHelixMaker (const edm::ParameterSet &conf)
virtual ~RoadSearchHelixMaker ()

Private Attributes

edm::ParameterSet conf_
RoadSearchHelixMakerAlgorithm roadSearchHelixMakerAlgorithm_


Detailed Description

Definition at line 32 of file RoadSearchHelixMaker.h.


Constructor & Destructor Documentation

cms::RoadSearchHelixMaker::RoadSearchHelixMaker ( const edm::ParameterSet conf  )  [explicit]

Definition at line 30 of file RoadSearchHelixMaker.cc.

00030                                                                         : 
00031     roadSearchHelixMakerAlgorithm_(conf) ,
00032     conf_(conf)
00033   {
00034     produces<reco::TrackCollection>();
00035   }

cms::RoadSearchHelixMaker::~RoadSearchHelixMaker (  )  [virtual]

Definition at line 39 of file RoadSearchHelixMaker.cc.

00039 { }  


Member Function Documentation

void cms::RoadSearchHelixMaker::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 42 of file RoadSearchHelixMaker.cc.

References conf_, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), output(), edm::Event::put(), roadSearchHelixMakerAlgorithm_, RoadSearchHelixMakerAlgorithm::run(), and TrackCandidateProducer_cfi::trackCandidateProducer.

00043   {
00044     // Step A: Get Inputs 
00045 
00046     // retrieve producer name of raw CloudCollection
00047     std::string trackCandidateProducer = conf_.getParameter<std::string>("TrackCandidateProducer");
00048     edm::Handle<TrackCandidateCollection> trackCandidates;
00049     e.getByLabel(trackCandidateProducer, trackCandidates);
00050 
00051     // Step B: create empty output collection
00052     std::auto_ptr<reco::TrackCollection> output(new reco::TrackCollection);
00053 
00054     // Step C: Invoke the cloud cleaning algorithm
00055     roadSearchHelixMakerAlgorithm_.run(trackCandidates.product(),es,*output);
00056 
00057     // Step D: write output to file
00058    e.put(output);
00059 
00060   }


Member Data Documentation

edm::ParameterSet cms::RoadSearchHelixMaker::conf_ [private]

Definition at line 44 of file RoadSearchHelixMaker.h.

Referenced by produce().

RoadSearchHelixMakerAlgorithm cms::RoadSearchHelixMaker::roadSearchHelixMakerAlgorithm_ [private]

Definition at line 43 of file RoadSearchHelixMaker.h.

Referenced by produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:36:34 2009 for CMSSW by  doxygen 1.5.4