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
cms::RoadSearchHelixMaker Class Reference

#include <RoadSearchHelixMaker.h>

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

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
 RoadSearchHelixMaker (const edm::ParameterSet &conf)
 
virtual ~RoadSearchHelixMaker ()
 
- 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::ParameterSet conf_
 
RoadSearchHelixMakerAlgorithm roadSearchHelixMakerAlgorithm_
 

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 31 of file RoadSearchHelixMaker.h.

Constructor & Destructor Documentation

cms::RoadSearchHelixMaker::RoadSearchHelixMaker ( const edm::ParameterSet conf)
explicit

Definition at line 30 of file RoadSearchHelixMaker.cc.

30  :
32  conf_(conf)
33  {
34  produces<reco::TrackCollection>();
35  }
RoadSearchHelixMakerAlgorithm roadSearchHelixMakerAlgorithm_
cms::RoadSearchHelixMaker::~RoadSearchHelixMaker ( )
virtual

Definition at line 39 of file RoadSearchHelixMaker.cc.

39 { }

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.

43  {
44  // Step A: Get Inputs
45 
46  // retrieve producer name of raw CloudCollection
47  std::string trackCandidateProducer = conf_.getParameter<std::string>("TrackCandidateProducer");
49  e.getByLabel(trackCandidateProducer, trackCandidates);
50 
51  // Step B: create empty output collection
52  std::auto_ptr<reco::TrackCollection> output(new reco::TrackCollection);
53 
54  // Step C: Invoke the cloud cleaning algorithm
55  roadSearchHelixMakerAlgorithm_.run(trackCandidates.product(),es,*output);
56 
57  // Step D: write output to file
58  e.put(output);
59 
60  }
T getParameter(std::string const &) const
RoadSearchHelixMakerAlgorithm roadSearchHelixMakerAlgorithm_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
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
void run(const TrackCandidateCollection *input, const edm::EventSetup &es, reco::TrackCollection &output)
Runs the algorithm.

Member Data Documentation

edm::ParameterSet cms::RoadSearchHelixMaker::conf_
private

Definition at line 43 of file RoadSearchHelixMaker.h.

Referenced by produce().

RoadSearchHelixMakerAlgorithm cms::RoadSearchHelixMaker::roadSearchHelixMakerAlgorithm_
private

Definition at line 42 of file RoadSearchHelixMaker.h.

Referenced by produce().