CMS 3D CMS Logo

MuonSeedGenerator Class Reference

No description available. More...

#include <RecoMuon/MuonSeedGenerator/src/MuonSeedGenerator.h>

Inheritance diagram for MuonSeedGenerator:

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

List of all members.

Public Member Functions

 MuonSeedGenerator (const edm::ParameterSet &)
 Constructor.
virtual void produce (edm::Event &, const edm::EventSetup &)
 reconstruct muon's seeds
virtual ~MuonSeedGenerator ()
 Destructor.

Protected Attributes

MuonSeedVPatternRecognitionthePatternRecognition
MuonSeedVCleanertheSeedCleaner
MuonSeedVFindertheSeedFinder


Detailed Description

No description available.

Date
2008/09/12 23:10:00
Revision
1.12
Author:
R. Bellan - INFN Torino

Definition at line 20 of file MuonSeedGenerator.h.


Constructor & Destructor Documentation

MuonSeedGenerator::MuonSeedGenerator ( const edm::ParameterSet pset  ) 

Constructor.

Definition at line 58 of file MuonSeedGenerator.cc.

00059 : thePatternRecognition(new MuonSeedOrcaPatternRecognition(pset)),
00060   theSeedFinder(new MuonSeedFinder(pset)),
00061   theSeedCleaner(new MuonSeedSimpleCleaner())
00062 {
00063   produces<TrajectorySeedCollection>(); 
00064 }

MuonSeedGenerator::~MuonSeedGenerator (  )  [virtual]

Destructor.

Definition at line 67 of file MuonSeedGenerator.cc.

References thePatternRecognition, theSeedCleaner, and theSeedFinder.

00067                                      {
00068   delete thePatternRecognition;
00069   delete theSeedFinder;
00070   delete theSeedCleaner;
00071 }


Member Function Documentation

void MuonSeedGenerator::produce ( edm::Event event,
const edm::EventSetup eSetup 
) [virtual]

reconstruct muon's seeds

Implements edm::EDProducer.

Definition at line 75 of file MuonSeedGenerator.cc.

References MuonSeedVCleaner::clean(), edm::EventSetup::get(), output(), MuonSeedVPatternRecognition::produce(), MuonSeedVFinder::seeds(), MuonSeedVFinder::setBField(), thePatternRecognition, theSeedCleaner, and theSeedFinder.

00076 {
00077   // create the pointer to the Seed container
00078   auto_ptr<TrajectorySeedCollection> output(new TrajectorySeedCollection());
00079   
00080   edm::ESHandle<MagneticField> field;
00081   eSetup.get<IdealMagneticFieldRecord>().get(field);
00082   
00083   theSeedFinder->setBField(&*field);
00084 
00085   std::vector<MuonRecHitContainer> patterns;
00086   thePatternRecognition->produce(event, eSetup, patterns);
00087 
00088   for(std::vector<MuonRecHitContainer>::const_iterator seedSegments = patterns.begin();
00089       seedSegments != patterns.end(); ++seedSegments)
00090   {
00091     theSeedFinder->seeds(*seedSegments, *output);
00092   }
00093 
00094   theSeedCleaner->clean(*output);
00095 
00096   event.put(output);
00097 }


Member Data Documentation

MuonSeedVPatternRecognition* MuonSeedGenerator::thePatternRecognition [protected]

Definition at line 36 of file MuonSeedGenerator.h.

Referenced by produce(), and ~MuonSeedGenerator().

MuonSeedVCleaner* MuonSeedGenerator::theSeedCleaner [protected]

Definition at line 38 of file MuonSeedGenerator.h.

Referenced by produce(), and ~MuonSeedGenerator().

MuonSeedVFinder* MuonSeedGenerator::theSeedFinder [protected]

Definition at line 37 of file MuonSeedGenerator.h.

Referenced by produce(), and ~MuonSeedGenerator().


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