#include <Alignment/LaserAlignment/plugins/LaserSeedGenerator.h>
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 |
Definition at line 28 of file LaserSeedGenerator.h.
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 }
void LaserSeedGenerator::beginJob | ( | const edm::EventSetup & | ) | [private, virtual] |
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 }
edm::ParameterSet LaserSeedGenerator::conf_ [private] |