CMS 3D CMS Logo

Public Member Functions | Private Attributes

cms::RoadSearchHelixMaker Class Reference

#include <RoadSearchHelixMaker.h>

Inheritance diagram for cms::RoadSearchHelixMaker:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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_

Detailed Description

Definition at line 32 of file RoadSearchHelixMaker.h.


Constructor & Destructor Documentation

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.

{ }  

Member Function Documentation

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);

  }

Member Data Documentation

Definition at line 44 of file RoadSearchHelixMaker.h.

Referenced by produce().

Definition at line 43 of file RoadSearchHelixMaker.h.

Referenced by produce().