#include <RoadSearchTrackCandidateMaker.h>
Public Member Functions | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
RoadSearchTrackCandidateMaker (const edm::ParameterSet &conf) | |
virtual | ~RoadSearchTrackCandidateMaker () |
Private Attributes | |
edm::InputTag | cloudProducer_ |
edm::ParameterSet | conf_ |
RoadSearchTrackCandidateMakerAlgorithm | roadSearchTrackCandidateMakerAlgorithm_ |
Definition at line 32 of file RoadSearchTrackCandidateMaker.h.
RoadSearchTrackCandidateMaker::RoadSearchTrackCandidateMaker | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 31 of file RoadSearchTrackCandidateMaker.cc.
References cloudProducer_, conf_, and edm::ParameterSet::getParameter().
: roadSearchTrackCandidateMakerAlgorithm_(conf) , conf_(conf) { produces<TrackCandidateCollection>(); cloudProducer_ = conf_.getParameter<edm::InputTag>("CloudProducer"); }
RoadSearchTrackCandidateMaker::~RoadSearchTrackCandidateMaker | ( | ) | [virtual] |
Definition at line 43 of file RoadSearchTrackCandidateMaker.cc.
{ }
void RoadSearchTrackCandidateMaker::produce | ( | edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 46 of file RoadSearchTrackCandidateMaker.cc.
References cloudProducer_, edm::Event::getByLabel(), convertSQLitetoXML_cfg::output, edm::Handle< T >::product(), edm::Event::put(), roadSearchTrackCandidateMakerAlgorithm_, and RoadSearchTrackCandidateMakerAlgorithm::run().
{ // Step A: Get Inputs // retrieve producer name of raw CloudCollection edm::Handle<RoadSearchCloudCollection> cloudHandle; e.getByLabel(cloudProducer_, cloudHandle); const RoadSearchCloudCollection *clouds = cloudHandle.product(); // Step B: create empty output collection std::auto_ptr<TrackCandidateCollection> output(new TrackCandidateCollection); // Step C: Invoke the cloud cleaning algorithm roadSearchTrackCandidateMakerAlgorithm_.run(clouds,e,es,*output); // Step D: write output to file e.put(output); }
Definition at line 45 of file RoadSearchTrackCandidateMaker.h.
Referenced by produce(), and RoadSearchTrackCandidateMaker().
Definition at line 44 of file RoadSearchTrackCandidateMaker.h.
Referenced by RoadSearchTrackCandidateMaker().
RoadSearchTrackCandidateMakerAlgorithm RoadSearchTrackCandidateMaker::roadSearchTrackCandidateMakerAlgorithm_ [private] |
Definition at line 43 of file RoadSearchTrackCandidateMaker.h.
Referenced by produce().