CMS 3D CMS Logo

cms::RoadSearchCloudCleaner Class Reference

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

Inheritance diagram for cms::RoadSearchCloudCleaner:

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

List of all members.

Public Member Functions

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

Private Attributes

edm::ParameterSet conf_
RoadSearchCloudCleanerAlgorithm roadSearchCloudCleanerAlgorithm_


Detailed Description

Definition at line 32 of file RoadSearchCloudCleaner.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file RoadSearchCloudCleaner.cc.

00030                                                                             : 
00031     roadSearchCloudCleanerAlgorithm_(conf) ,
00032     conf_(conf)
00033   {
00034     produces<RoadSearchCloudCollection>();
00035   }

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

Definition at line 39 of file RoadSearchCloudCleaner.cc.

00039 { }  


Member Function Documentation

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

Implements edm::EDProducer.

Definition at line 42 of file RoadSearchCloudCleaner.cc.

References conf_, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), output(), edm::Event::put(), roadSearchCloudCleanerAlgorithm_, and RoadSearchCloudCleanerAlgorithm::run().

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


Member Data Documentation

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

Definition at line 44 of file RoadSearchCloudCleaner.h.

Referenced by produce().

RoadSearchCloudCleanerAlgorithm cms::RoadSearchCloudCleaner::roadSearchCloudCleanerAlgorithm_ [private]

Definition at line 43 of file RoadSearchCloudCleaner.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