#include <CRackSeedGenerator.h>
Public Member Functions | |
CRackSeedGenerator (const edm::ParameterSet &conf) | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
virtual | ~CRackSeedGenerator () |
Private Attributes | |
edm::ParameterSet | conf_ |
SeedGeneratorForCRack | cosmic_seed |
Definition at line 14 of file CRackSeedGenerator.h.
CRackSeedGenerator::CRackSeedGenerator | ( | const edm::ParameterSet & | conf | ) | [explicit] |
Definition at line 17 of file CRackSeedGenerator.cc.
: conf_(conf) ,cosmic_seed(conf) { edm::LogInfo ("CRackSeedGenerator")<<"Enter the CRackSeedGenerator"; produces<TrajectorySeedCollection>(); }
CRackSeedGenerator::~CRackSeedGenerator | ( | ) | [virtual] |
Definition at line 26 of file CRackSeedGenerator.cc.
{ }
void CRackSeedGenerator::produce | ( | edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [virtual] |
Implements edm::EDProducer.
Definition at line 29 of file CRackSeedGenerator.cc.
References conf_, cosmic_seed, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), SeedGeneratorForCRack::init(), LogDebug, convertSQLitetoXML_cfg::output, edm::Event::put(), and SeedGeneratorForCRack::run().
{ // get Inputs edm::InputTag matchedrecHitsTag = conf_.getParameter<edm::InputTag>("matchedRecHits"); edm::InputTag rphirecHitsTag = conf_.getParameter<edm::InputTag>("rphirecHits"); edm::InputTag stereorecHitsTag = conf_.getParameter<edm::InputTag>("stereorecHits"); edm::Handle<SiStripRecHit2DCollection> rphirecHits; ev.getByLabel( rphirecHitsTag, rphirecHits ); edm::Handle<SiStripRecHit2DCollection> stereorecHits; ev.getByLabel( stereorecHitsTag ,stereorecHits ); edm::Handle<SiStripMatchedRecHit2DCollection> matchedrecHits; ev.getByLabel( matchedrecHitsTag ,matchedrecHits ); std::auto_ptr<TrajectorySeedCollection> output(new TrajectorySeedCollection); // cosmic_seed.init(*stereorecHits,*rphirecHits,*matchedrecHits, es); // invoke the seed finding algorithm cosmic_seed.run(*output,es); // write output to file LogDebug("CRackSeedGenerator")<<" number of seeds = "<< output->size(); ev.put(output); }
edm::ParameterSet CRackSeedGenerator::conf_ [private] |
Definition at line 25 of file CRackSeedGenerator.h.
Referenced by produce().
Definition at line 26 of file CRackSeedGenerator.h.
Referenced by produce().