CMS 3D CMS Logo

LaserSeedGenerator Class Reference

Seeds for Tracking of Laser Beams. More...

#include <Alignment/LaserAlignment/plugins/LaserSeedGenerator.h>

Inheritance diagram for LaserSeedGenerator:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 LaserSeedGenerator (const edm::ParameterSet &)
 constructor
 ~LaserSeedGenerator ()
 destructor

Private Member Functions

virtual void beginJob (const edm::EventSetup &)
 begin job
virtual void endJob ()
 end job
virtual void produce (edm::Event &, const edm::EventSetup &)
 produce seeds

Private Attributes

edm::ParameterSet conf_
SeedGeneratorForLaserBeams laser_seed


Detailed Description

Seeds for Tracking of Laser Beams.

Date
2007/12/04 23:51:43
Revision
1.4
Author:
Maarten Thomas

Definition at line 28 of file LaserSeedGenerator.h.


Constructor & Destructor Documentation

LaserSeedGenerator::LaserSeedGenerator ( const edm::ParameterSet iConfig  )  [explicit]

constructor

Definition at line 21 of file LaserSeedGenerator.cc.

References edm::ParameterSet::getParameter().

00022   : conf_(iConfig), laser_seed(iConfig)
00023 {
00024   edm::LogInfo("LaserSeedGenerator") << " Entering the LaserSeedGenerator ";
00025 
00026   std::string alias ( iConfig.getParameter<std::string>("@module_label") );
00027 
00028   //register your products
00029   produces<TrajectorySeedCollection>().setBranchAlias( alias + "Seeds" );
00030 
00031   //now do what ever other initialization is needed
00032 
00033 }

LaserSeedGenerator::~LaserSeedGenerator (  ) 

destructor

Definition at line 36 of file LaserSeedGenerator.cc.

00037 {
00038  
00039    // do anything here that needs to be done at desctruction time
00040    // (e.g. close files, deallocate resources etc.)
00041 
00042 }


Member Function Documentation

void LaserSeedGenerator::beginJob ( const edm::EventSetup  )  [private, virtual]

begin job

Reimplemented from edm::EDProducer.

Definition at line 77 of file LaserSeedGenerator.cc.

00078 {
00079 }

void LaserSeedGenerator::endJob ( void   )  [private, virtual]

end job

Reimplemented from edm::EDProducer.

Definition at line 83 of file LaserSeedGenerator.cc.

00084 {
00085 }

void LaserSeedGenerator::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

produce seeds

Implements edm::EDProducer.

Definition at line 47 of file LaserSeedGenerator.cc.

References conf_, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), SeedGeneratorForLaserBeams::init(), laser_seed, LogDebug, python::SiStripOnlineP5_cfg::matchedRecHits, output(), edm::Event::put(), HLT_VtxMuL3::rphiRecHits, SeedGeneratorForLaserBeams::run(), and python::SiStripOnlineP5_cfg::stereoRecHits.

00048 {
00049   // get the input
00050   edm::InputTag matchedRecHitsTag = conf_.getParameter<edm::InputTag>("matchedRecHits");
00051   edm::InputTag rphiRecHitsTag = conf_.getParameter<edm::InputTag>("rphiRecHits");
00052   edm::InputTag stereoRecHitsTag = conf_.getParameter<edm::InputTag>("stereoRecHits");
00053 
00054   edm::Handle<SiStripRecHit2DCollection> rphiRecHits;
00055   iEvent.getByLabel(rphiRecHitsTag, rphiRecHits);
00056   edm::Handle<SiStripRecHit2DCollection> stereoRecHits;
00057   iEvent.getByLabel(stereoRecHitsTag, stereoRecHits);
00058   edm::Handle<SiStripMatchedRecHit2DCollection> matchedRecHits;
00059   iEvent.getByLabel(matchedRecHitsTag, matchedRecHits);
00060 
00061   // create empty output collection
00062   std::auto_ptr<TrajectorySeedCollection> output(new TrajectorySeedCollection);
00063 
00064   // initialize the seed generator
00065   laser_seed.init(*stereoRecHits, *rphiRecHits, *matchedRecHits, iSetup);
00066 
00067   // invoke the seed finding algorithm
00068   laser_seed.run(*output,iSetup);
00069 
00070   // put the TrajectorySeedCollection in the event
00071   LogDebug("Algorithm Performance") << " number of seeds = " << output->size();
00072   iEvent.put(output);
00073 }


Member Data Documentation

edm::ParameterSet LaserSeedGenerator::conf_ [private]

Definition at line 44 of file LaserSeedGenerator.h.

Referenced by produce().

SeedGeneratorForLaserBeams LaserSeedGenerator::laser_seed [private]

Definition at line 45 of file LaserSeedGenerator.h.

Referenced by produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:26 2009 for CMSSW by  doxygen 1.5.4