#include <RecoTracker/RoadSearchCloudCleaner/interface/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 32 of file RoadSearchCloudCleaner.h.
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] |
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 }