CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RoadSearchCloudCleaner.cc
Go to the documentation of this file.
1 //
2 // Package: RecoTracker/RoadSearchCloudCleaner
3 // Class: RoadSearchCloudCleaner
4 //
5 // Description: Calls RoadSeachCloudCleanerAlgorithm
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:00:09 $
13 // $Revision: 1.2 $
14 //
15 
16 #include <memory>
17 #include <string>
18 
20 
22 
26 
27 namespace cms
28 {
29 
31  roadSearchCloudCleanerAlgorithm_(conf) ,
32  conf_(conf)
33  {
34  produces<RoadSearchCloudCollection>();
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 rawcloudProducer = conf_.getParameter<std::string>("RawCloudProducer");
49  e.getByLabel(rawcloudProducer, rawclouds);
50 
51  // Step B: create empty output collection
52  std::auto_ptr<RoadSearchCloudCollection> output(new RoadSearchCloudCollection);
53 
54  // Step C: Invoke the cloud cleaning algorithm
55  roadSearchCloudCleanerAlgorithm_.run(rawclouds.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
RoadSearchCloudCleanerAlgorithm roadSearchCloudCleanerAlgorithm_
virtual void produce(edm::Event &e, const edm::EventSetup &c)
RoadSearchCloudCleaner(const edm::ParameterSet &conf)
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
void run(const RoadSearchCloudCollection *input, const edm::EventSetup &es, RoadSearchCloudCollection &output)
Runs the algorithm.
std::vector< RoadSearchCloud > RoadSearchCloudCollection