CMS 3D CMS Logo

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)
 
void produce (edm::Event &e, const edm::EventSetup &c) override
 
 ~CRackSeedGenerator () override
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducer () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

edm::ParameterSet conf_
 
SeedGeneratorForCRack cosmic_seed
 
edm::EDGetTokenT< SiStripMatchedRecHit2DCollectionmatchedrecHitsToken_
 
edm::EDGetTokenT< SiStripRecHit2DCollectionrphirecHitsToken_
 
edm::EDGetTokenT< SiStripRecHit2DCollectionstereorecHitsToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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.

References conf_, edm::ParameterSet::getParameter(), matchedrecHitsToken_, rphirecHitsToken_, and stereorecHitsToken_.

17  :
18  conf_(conf) ,cosmic_seed(conf)
19  {
20  edm::LogInfo ("CRackSeedGenerator")<<"Enter the CRackSeedGenerator";
21  matchedrecHitsToken_ = consumes<SiStripMatchedRecHit2DCollection>(
22  conf_.getParameter<edm::InputTag>("matchedRecHits"));
23  rphirecHitsToken_ = consumes<SiStripRecHit2DCollection>(
24  conf_.getParameter<edm::InputTag>("rphirecHits"));
25  stereorecHitsToken_ = consumes<SiStripRecHit2DCollection>(
26  conf_.getParameter<edm::InputTag>("stereorecHits"));
27 
28  produces<TrajectorySeedCollection>();
29 }
T getParameter(std::string const &) const
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
edm::ParameterSet conf_
SeedGeneratorForCRack cosmic_seed
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
CRackSeedGenerator::~CRackSeedGenerator ( )
override

Definition at line 33 of file CRackSeedGenerator.cc.

33 { }

Member Function Documentation

void CRackSeedGenerator::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 36 of file CRackSeedGenerator.cc.

References cosmic_seed, edm::Event::getByToken(), SeedGeneratorForCRack::init(), LogDebug, AlignmentTrackSelector_cfi::matchedrecHits, matchedrecHitsToken_, eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), AlignmentTrackSelector_cfi::rphirecHits, rphirecHitsToken_, SeedGeneratorForCRack::run(), convBremSeeds_cfi::stereorecHits, and stereorecHitsToken_.

37 {
38  // get Inputs
40  ev.getByToken(rphirecHitsToken_, rphirecHits);
42  ev.getByToken(stereorecHitsToken_, stereorecHits);
44  ev.getByToken(matchedrecHitsToken_, matchedrecHits);
45 
46 
47  auto output = std::make_unique<TrajectorySeedCollection>();
48  //
49 
50  cosmic_seed.init(*stereorecHits,*rphirecHits,*matchedrecHits, es);
51 
52  // invoke the seed finding algorithm
53  cosmic_seed.run(*output,es);
54 
55  // write output to file
56  LogDebug("CRackSeedGenerator")<<" number of seeds = "<< output->size();
57 
58 
59  ev.put(std::move(output));
60 }
#define LogDebug(id)
bool ev
edm::EDGetTokenT< SiStripRecHit2DCollection > rphirecHitsToken_
SeedGeneratorForCRack cosmic_seed
void init(const SiStripRecHit2DCollection &collstereo, const SiStripRecHit2DCollection &collrphi, const SiStripMatchedRecHit2DCollection &collmatched, const edm::EventSetup &c)
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matchedrecHitsToken_
void run(TrajectorySeedCollection &, const edm::EventSetup &c)
edm::EDGetTokenT< SiStripRecHit2DCollection > stereorecHitsToken_
def move(src, dest)
Definition: eostools.py:510

Member Data Documentation

edm::ParameterSet CRackSeedGenerator::conf_
private

Definition at line 25 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator().

SeedGeneratorForCRack CRackSeedGenerator::cosmic_seed
private

Definition at line 26 of file CRackSeedGenerator.h.

Referenced by produce().

edm::EDGetTokenT<SiStripMatchedRecHit2DCollection> CRackSeedGenerator::matchedrecHitsToken_
private

Definition at line 27 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

edm::EDGetTokenT<SiStripRecHit2DCollection> CRackSeedGenerator::rphirecHitsToken_
private

Definition at line 28 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().

edm::EDGetTokenT<SiStripRecHit2DCollection> CRackSeedGenerator::stereorecHitsToken_
private

Definition at line 29 of file CRackSeedGenerator.h.

Referenced by CRackSeedGenerator(), and produce().