CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cms::RoadSearchCloudCleaner Class Reference

#include <RoadSearchCloudCleaner.h>

Inheritance diagram for cms::RoadSearchCloudCleaner:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
 RoadSearchCloudCleaner (const edm::ParameterSet &conf)
 
virtual ~RoadSearchCloudCleaner ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

edm::ParameterSet conf_
 
RoadSearchCloudCleanerAlgorithm roadSearchCloudCleanerAlgorithm_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Definition at line 31 of file RoadSearchCloudCleaner.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file RoadSearchCloudCleaner.cc.

30  :
32  conf_(conf)
33  {
34  produces<RoadSearchCloudCollection>();
35  }
RoadSearchCloudCleanerAlgorithm roadSearchCloudCleanerAlgorithm_
cms::RoadSearchCloudCleaner::~RoadSearchCloudCleaner ( )
virtual

Definition at line 39 of file RoadSearchCloudCleaner.cc.

39 { }

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(), convertSQLitetoXML_cfg::output, edm::Event::put(), roadSearchCloudCleanerAlgorithm_, and RoadSearchCloudCleanerAlgorithm::run().

43  {
44  // Step A: Get Inputs
45 
46  // retrieve producer name of raw CloudCollection
47  std::string rawcloudProducer = conf_.getParameter<std::string>("RawCloudProducer");
49  e.getByLabel(rawcloudProducer, rawclouds);
50 
51  // Step B: create empty output collection
52  std::auto_ptr<RoadSearchCloudCollection> output(new RoadSearchCloudCollection);
53 
54  // Step C: Invoke the cloud cleaning algorithm
55  roadSearchCloudCleanerAlgorithm_.run(rawclouds.product(),es,*output);
56 
57  // Step D: write output to file
58  e.put(output);
59 
60  }
T getParameter(std::string const &) const
RoadSearchCloudCleanerAlgorithm roadSearchCloudCleanerAlgorithm_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
void run(const RoadSearchCloudCollection *input, const edm::EventSetup &es, RoadSearchCloudCollection &output)
Runs the algorithm.
std::vector< RoadSearchCloud > RoadSearchCloudCollection

Member Data Documentation

edm::ParameterSet cms::RoadSearchCloudCleaner::conf_
private

Definition at line 43 of file RoadSearchCloudCleaner.h.

Referenced by produce().

RoadSearchCloudCleanerAlgorithm cms::RoadSearchCloudCleaner::roadSearchCloudCleanerAlgorithm_
private

Definition at line 42 of file RoadSearchCloudCleaner.h.

Referenced by produce().