CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RoadSearchHelixMaker.cc
Go to the documentation of this file.
1 //
2 // Package: RecoTracker/RoadSearchHelixMaker
3 // Class: RoadSearchHelixMaker
4 //
5 // Description: Calls RoadSeachHelixMakerAlgorithm
6 // to find RoadSearchClouds.
7 //
8 // Original Author: Steve Wagner, stevew@pizero.colorado.edu
9 // Created: Sat Feb 19 22:00:00 UTC 2006
10 //
11 // $Author: gutsche $
12 // $Date: 2007/03/07 22:04:03 $
13 // $Revision: 1.5 $
14 //
15 
16 #include <memory>
17 #include <string>
18 
20 
22 
26 
27 namespace cms
28 {
29 
31  roadSearchHelixMakerAlgorithm_(conf) ,
32  conf_(conf)
33  {
34  produces<reco::TrackCollection>();
35  }
36 
37 
38  // Virtual destructor needed.
40 
41  // Functions that gets called by framework every event
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  }
61 
62 }
T getParameter(std::string const &) const
RoadSearchHelixMaker(const edm::ParameterSet &conf)
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
tuple conf
Definition: dbtoconf.py:185
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void run(const TrackCandidateCollection *input, const edm::EventSetup &es, reco::TrackCollection &output)
Runs the algorithm.