CMS 3D CMS Logo

Public Member Functions | Private Attributes

cms::RoadSearchCloudCleaner Class Reference

#include <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.

                                                                            : 
    roadSearchCloudCleanerAlgorithm_(conf) ,
    conf_(conf)
  {
    produces<RoadSearchCloudCollection>();
  }
cms::RoadSearchCloudCleaner::~RoadSearchCloudCleaner ( ) [virtual]

Definition at line 39 of file RoadSearchCloudCleaner.cc.

{ }  

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().

  {
    // Step A: Get Inputs 

    // retrieve producer name of raw CloudCollection
    std::string rawcloudProducer = conf_.getParameter<std::string>("RawCloudProducer");
    edm::Handle<RoadSearchCloudCollection> rawclouds;
    e.getByLabel(rawcloudProducer, rawclouds);

    // Step B: create empty output collection
    std::auto_ptr<RoadSearchCloudCollection> output(new RoadSearchCloudCollection);

    // Step C: Invoke the cloud cleaning algorithm
    roadSearchCloudCleanerAlgorithm_.run(rawclouds.product(),es,*output);

    // Step D: write output to file
    e.put(output);

  }

Member Data Documentation

Definition at line 44 of file RoadSearchCloudCleaner.h.

Referenced by produce().

Definition at line 43 of file RoadSearchCloudCleaner.h.

Referenced by produce().