#include <RecoMuon/MuonSeedGenerator/src/MuonSeedGenerator.h>
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 | |
MuonSeedVPatternRecognition * | thePatternRecognition |
MuonSeedVCleaner * | theSeedCleaner |
MuonSeedVFinder * | theSeedFinder |
Definition at line 20 of file MuonSeedGenerator.h.
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 }
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 }
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().