CMS 3D CMS Logo

Public Member Functions | Private Attributes

CRackSeedGenerator Class Reference

#include <CRackSeedGenerator.h>

Inheritance diagram for CRackSeedGenerator:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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

Detailed Description

Definition at line 15 of file CRackSeedGenerator.h.


Constructor & Destructor Documentation

CRackSeedGenerator::CRackSeedGenerator ( const edm::ParameterSet conf) [explicit]

Definition at line 22 of file CRackSeedGenerator.cc.

                                                                  : 
  conf_(conf) ,cosmic_seed(conf)
 {
  edm::LogInfo ("CRackSeedGenerator")<<"Enter the CRackSeedGenerator";
  produces<TrajectorySeedCollection>();
}
CRackSeedGenerator::~CRackSeedGenerator ( ) [virtual]

Definition at line 31 of file CRackSeedGenerator.cc.

{ }  

Member Function Documentation

void CRackSeedGenerator::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 34 of file CRackSeedGenerator.cc.

References conf_, cosmic_seed, edm::Event::getByLabel(), edm::ParameterSet::getParameter(), SeedGeneratorForCRack::init(), LogDebug, ExpressReco_HICollisions_FallBack::matchedrecHits, convertSQLitetoXML_cfg::output, edm::Event::put(), ExpressReco_HICollisions_FallBack::rphirecHits, 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);
}

Member Data Documentation

Definition at line 26 of file CRackSeedGenerator.h.

Referenced by produce().

Definition at line 27 of file CRackSeedGenerator.h.

Referenced by produce().