![]() |
![]() |
#include <RecoTracker/RoadSearchHelixMaker/interface/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 32 of file RoadSearchHelixMaker.h.
cms::RoadSearchHelixMaker::RoadSearchHelixMaker | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 30 of file RoadSearchHelixMaker.cc.
00030 : 00031 roadSearchHelixMakerAlgorithm_(conf) , 00032 conf_(conf) 00033 { 00034 produces<reco::TrackCollection>(); 00035 }
cms::RoadSearchHelixMaker::~RoadSearchHelixMaker | ( | ) | [virtual] |
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(), output(), edm::Event::put(), roadSearchHelixMakerAlgorithm_, RoadSearchHelixMakerAlgorithm::run(), and TrackCandidateProducer_cfi::trackCandidateProducer.
00043 { 00044 // Step A: Get Inputs 00045 00046 // retrieve producer name of raw CloudCollection 00047 std::string trackCandidateProducer = conf_.getParameter<std::string>("TrackCandidateProducer"); 00048 edm::Handle<TrackCandidateCollection> trackCandidates; 00049 e.getByLabel(trackCandidateProducer, trackCandidates); 00050 00051 // Step B: create empty output collection 00052 std::auto_ptr<reco::TrackCollection> output(new reco::TrackCollection); 00053 00054 // Step C: Invoke the cloud cleaning algorithm 00055 roadSearchHelixMakerAlgorithm_.run(trackCandidates.product(),es,*output); 00056 00057 // Step D: write output to file 00058 e.put(output); 00059 00060 }