#include <RoadSearchHelixMaker.h>
Public Member Functions | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
RoadSearchHelixMaker (const edm::ParameterSet &conf) | |
virtual | ~RoadSearchHelixMaker () |
Private Attributes | |
edm::ParameterSet | conf_ |
RoadSearchHelixMakerAlgorithm | roadSearchHelixMakerAlgorithm_ |
Definition at line 31 of file RoadSearchHelixMaker.h.
cms::RoadSearchHelixMaker::RoadSearchHelixMaker | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 30 of file RoadSearchHelixMaker.cc.
: roadSearchHelixMakerAlgorithm_(conf) , conf_(conf) { produces<reco::TrackCollection>(); }
cms::RoadSearchHelixMaker::~RoadSearchHelixMaker | ( | ) | [virtual] |
Definition at line 39 of file RoadSearchHelixMaker.cc.
{ }
void cms::RoadSearchHelixMaker::produce | ( | edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 42 of file RoadSearchHelixMaker.cc.
References conf_, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), convertSQLitetoXML_cfg::output, edm::Event::put(), roadSearchHelixMakerAlgorithm_, RoadSearchHelixMakerAlgorithm::run(), and TrackCandidateProducer_cfi::trackCandidateProducer.
{ // Step A: Get Inputs // retrieve producer name of raw CloudCollection std::string trackCandidateProducer = conf_.getParameter<std::string>("TrackCandidateProducer"); edm::Handle<TrackCandidateCollection> trackCandidates; e.getByLabel(trackCandidateProducer, trackCandidates); // Step B: create empty output collection std::auto_ptr<reco::TrackCollection> output(new reco::TrackCollection); // Step C: Invoke the cloud cleaning algorithm roadSearchHelixMakerAlgorithm_.run(trackCandidates.product(),es,*output); // Step D: write output to file e.put(output); }
Definition at line 43 of file RoadSearchHelixMaker.h.
Referenced by produce().
Definition at line 42 of file RoadSearchHelixMaker.h.
Referenced by produce().