CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RoadSearchTrackCandidateMaker Class Reference

#include <RoadSearchTrackCandidateMaker.h>

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

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
 RoadSearchTrackCandidateMaker (const edm::ParameterSet &conf)
 
virtual ~RoadSearchTrackCandidateMaker ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

edm::InputTag cloudProducer_
 
edm::ParameterSet conf_
 
RoadSearchTrackCandidateMakerAlgorithm roadSearchTrackCandidateMakerAlgorithm_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

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().

31  :
33  conf_(conf)
34 {
35  produces<TrackCandidateCollection>();
36 
37  cloudProducer_ = conf_.getParameter<edm::InputTag>("CloudProducer");
38 
39 }
T getParameter(std::string const &) const
RoadSearchTrackCandidateMakerAlgorithm roadSearchTrackCandidateMakerAlgorithm_
RoadSearchTrackCandidateMaker::~RoadSearchTrackCandidateMaker ( )
virtual

Definition at line 43 of file RoadSearchTrackCandidateMaker.cc.

43 { }

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().

47 {
48  // Step A: Get Inputs
49 
50 
51  // retrieve producer name of raw CloudCollection
53  e.getByLabel(cloudProducer_, cloudHandle);
54  const RoadSearchCloudCollection *clouds = cloudHandle.product();
55 
56  // Step B: create empty output collection
57  std::auto_ptr<TrackCandidateCollection> output(new TrackCandidateCollection);
58 
59  // Step C: Invoke the cloud cleaning algorithm
61 
62  // Step D: write output to file
63  e.put(output);
64 
65 }
RoadSearchTrackCandidateMakerAlgorithm roadSearchTrackCandidateMakerAlgorithm_
void run(const RoadSearchCloudCollection *input, const edm::Event &e, const edm::EventSetup &es, TrackCandidateCollection &output)
Runs the algorithm.
std::vector< TrackCandidate > TrackCandidateCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
T const * product() const
Definition: Handle.h:74
std::vector< RoadSearchCloud > RoadSearchCloudCollection

Member Data Documentation

edm::InputTag RoadSearchTrackCandidateMaker::cloudProducer_
private

Definition at line 45 of file RoadSearchTrackCandidateMaker.h.

Referenced by produce(), and RoadSearchTrackCandidateMaker().

edm::ParameterSet RoadSearchTrackCandidateMaker::conf_
private

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().