CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CRackSeedGenerator Class Reference

#include <CRackSeedGenerator.h>

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

Public Member Functions

 CRackSeedGenerator (const edm::ParameterSet &conf)
 
virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
virtual ~CRackSeedGenerator ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Attributes

edm::ParameterSet conf_
 
SeedGeneratorForCRack cosmic_seed
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Definition at line 14 of file CRackSeedGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file CRackSeedGenerator.cc.

17  :
18  conf_(conf) ,cosmic_seed(conf)
19  {
20  edm::LogInfo ("CRackSeedGenerator")<<"Enter the CRackSeedGenerator";
21  produces<TrajectorySeedCollection>();
22 }
edm::ParameterSet conf_
SeedGeneratorForCRack cosmic_seed
CRackSeedGenerator::~CRackSeedGenerator ( )
virtual

Definition at line 26 of file CRackSeedGenerator.cc.

26 { }

Member Function Documentation

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().

30 {
31  // get Inputs
32  edm::InputTag matchedrecHitsTag = conf_.getParameter<edm::InputTag>("matchedRecHits");
33  edm::InputTag rphirecHitsTag = conf_.getParameter<edm::InputTag>("rphirecHits");
34  edm::InputTag stereorecHitsTag = conf_.getParameter<edm::InputTag>("stereorecHits");
35 
37  ev.getByLabel( rphirecHitsTag, rphirecHits );
39  ev.getByLabel( stereorecHitsTag ,stereorecHits );
41  ev.getByLabel( matchedrecHitsTag ,matchedrecHits );
42 
43 
44  std::auto_ptr<TrajectorySeedCollection> output(new TrajectorySeedCollection);
45  //
46 
47  cosmic_seed.init(*stereorecHits,*rphirecHits,*matchedrecHits, es);
48 
49  // invoke the seed finding algorithm
50  cosmic_seed.run(*output,es);
51 
52  // write output to file
53  LogDebug("CRackSeedGenerator")<<" number of seeds = "<< output->size();
54 
55 
56  ev.put(output);
57 }
#define LogDebug(id)
T getParameter(std::string const &) const
std::vector< TrajectorySeed > TrajectorySeedCollection
edm::ParameterSet conf_
SeedGeneratorForCRack cosmic_seed
void init(const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const edm::EventSetup &c)
void run(TrajectorySeedCollection &, const edm::EventSetup &c)

Member Data Documentation

edm::ParameterSet CRackSeedGenerator::conf_
private

Definition at line 25 of file CRackSeedGenerator.h.

Referenced by produce().

SeedGeneratorForCRack CRackSeedGenerator::cosmic_seed
private

Definition at line 26 of file CRackSeedGenerator.h.

Referenced by produce().