#include <RoadSearchCloudCleaner.h>
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_ |
Definition at line 31 of file RoadSearchCloudCleaner.h.
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.
{ }
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); }
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().