CMS 3D CMS Logo

Public Member Functions | Private Attributes

RoadSearchTrackCandidateMaker Class Reference

#include <RoadSearchTrackCandidateMaker.h>

Inheritance diagram for RoadSearchTrackCandidateMaker:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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_

Detailed Description

Definition at line 32 of file RoadSearchTrackCandidateMaker.h.


Constructor & Destructor Documentation

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.

{ }  

Member Function Documentation

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

}

Member Data Documentation

Definition at line 45 of file RoadSearchTrackCandidateMaker.h.

Referenced by produce(), and RoadSearchTrackCandidateMaker().

Definition at line 44 of file RoadSearchTrackCandidateMaker.h.

Referenced by RoadSearchTrackCandidateMaker().

Definition at line 43 of file RoadSearchTrackCandidateMaker.h.

Referenced by produce().