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::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 CRackSeedGenerator (const edm::ParameterSet &conf)
 
virtual void produce (edm::Event &e, const edm::EventSetup &c) override
 
virtual ~CRackSeedGenerator ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

edm::ParameterSet conf_
 
SeedGeneratorForCRack cosmic_seed
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- 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::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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 
)
overridevirtual

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