CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits > Class Template Reference
Inheritance diagram for ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >:
ALPAKA_ACCELERATOR_NAMESPACE::global::EDProducer<> edm::ProducerBase< edm::global::EDProducer, Args... >

Public Member Functions

 SiPixelRecHitAlpaka (const edm::ParameterSet &iConfig)
 
 ~SiPixelRecHitAlpaka () override=default
 
- Public Member Functions inherited from ALPAKA_ACCELERATOR_NAMESPACE::global::EDProducer<>
void produce (edm::StreamID sid, edm::Event &iEvent, edm::EventSetup const &iSetup) const final
 
- Public Member Functions inherited from edm::ProducerBase< edm::global::EDProducer, Args... >
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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void produce (edm::StreamID streamID, device::Event &iEvent, const device::EventSetup &iSetup) const override
 

Private Attributes

const pixelgpudetails::PixelRecHitKernel< TrackerTraits > Algo_
 
const device::ESGetToken< PixelCPEFastParams< TrackerTraits >, PixelCPEFastParamsRecordcpeToken_
 
const device::EDGetToken< BeamSpotDevicetBeamSpot
 
const device::EDGetToken< SiPixelClustersSoACollectiontokenClusters_
 
const device::EDGetToken< SiPixelDigisSoACollectiontokenDigi_
 
const device::EDPutToken< TrackingRecHitsSoACollection< TrackerTraits > > tokenHit_
 

Additional Inherited Members

- Public Types inherited from edm::ProducerBase< edm::global::EDProducer, Args... >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Protected Member Functions inherited from edm::ProducerBase< edm::global::EDProducer, Args... >
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
BranchAliasSetterT< ProductType > produces ()
 
auto produces () noexcept
 
ProducesCollector producesCollector ()
 

Detailed Description

template<typename TrackerTraits>
class ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >

Definition at line 38 of file SiPixelRecHitAlpaka.cc.

Constructor & Destructor Documentation

◆ SiPixelRecHitAlpaka()

template<typename TrackerTraits >
ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::SiPixelRecHitAlpaka ( const edm::ParameterSet iConfig)
explicit

Definition at line 58 of file SiPixelRecHitAlpaka.cc.

60  tBeamSpot(consumes(iConfig.getParameter<edm::InputTag>("beamSpot"))),
61  tokenClusters_(consumes(iConfig.getParameter<edm::InputTag>("src"))),
62  tokenDigi_(consumes(iConfig.getParameter<edm::InputTag>("src"))),
63  tokenHit_(produces()) {}
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
const device::EDPutToken< TrackingRecHitsSoACollection< TrackerTraits > > tokenHit_
const device::EDGetToken< SiPixelClustersSoACollection > tokenClusters_
const device::EDGetToken< SiPixelDigisSoACollection > tokenDigi_
const device::EDGetToken< BeamSpotDevice > tBeamSpot
auto produces(std::string instanceName) noexcept
declare what type of product will make and with which optional label
const device::ESGetToken< PixelCPEFastParams< TrackerTraits >, PixelCPEFastParamsRecord > cpeToken_

◆ ~SiPixelRecHitAlpaka()

template<typename TrackerTraits >
ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::~SiPixelRecHitAlpaka ( )
overridedefault

Member Function Documentation

◆ fillDescriptions()

template<typename TrackerTraits >
void ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 66 of file SiPixelRecHitAlpaka.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

66  {
68 
69  desc.add<edm::InputTag>("beamSpot", edm::InputTag("offlineBeamSpotDevice"));
70  desc.add<edm::InputTag>("src", edm::InputTag("siPixelClustersPreSplittingAlpaka"));
71 
72  std::string cpe = "PixelCPEFastParams";
73  cpe += TrackerTraits::nameModifier;
74  desc.add<std::string>("CPE", cpe);
75 
76  descriptions.addWithDefaultLabel(desc);
77  }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

◆ produce()

template<typename TrackerTraits >
void ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::produce ( edm::StreamID  streamID,
device::Event iEvent,
const device::EventSetup iSetup 
) const
overrideprivatevirtual

Implements ALPAKA_ACCELERATOR_NAMESPACE::global::EDProducer<>.

Definition at line 80 of file SiPixelRecHitAlpaka.cc.

References cms::cuda::bs, bsc_activity_cfg::clusters, ALPAKA_ACCELERATOR_NAMESPACE::device::EventSetup::getData(), and iEvent.

82  {
83  auto& fcpe = es.getData(cpeToken_);
84 
85  auto const& clusters = iEvent.get(tokenClusters_);
86 
87  auto const& digis = iEvent.get(tokenDigi_);
88 
89  auto const& bs = iEvent.get(tBeamSpot);
90 
91  iEvent.emplace(tokenHit_,
92  Algo_.makeHitsAsync(digis, clusters, bs.data(), fcpe.const_buffer().data(), iEvent.queue()));
93  }
const device::EDPutToken< TrackingRecHitsSoACollection< TrackerTraits > > tokenHit_
int iEvent
Definition: GenABIO.cc:224
const device::EDGetToken< SiPixelClustersSoACollection > tokenClusters_
const device::EDGetToken< SiPixelDigisSoACollection > tokenDigi_
const device::EDGetToken< BeamSpotDevice > tBeamSpot
const device::ESGetToken< PixelCPEFastParams< TrackerTraits >, PixelCPEFastParamsRecord > cpeToken_
const pixelgpudetails::PixelRecHitKernel< TrackerTraits > Algo_

Member Data Documentation

◆ Algo_

template<typename TrackerTraits >
const pixelgpudetails::PixelRecHitKernel<TrackerTraits> ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::Algo_
private

Definition at line 54 of file SiPixelRecHitAlpaka.cc.

◆ cpeToken_

template<typename TrackerTraits >
const device::ESGetToken<PixelCPEFastParams<TrackerTraits>, PixelCPEFastParamsRecord> ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::cpeToken_
private

Definition at line 48 of file SiPixelRecHitAlpaka.cc.

◆ tBeamSpot

template<typename TrackerTraits >
const device::EDGetToken<BeamSpotDevice> ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::tBeamSpot
private

Definition at line 49 of file SiPixelRecHitAlpaka.cc.

◆ tokenClusters_

template<typename TrackerTraits >
const device::EDGetToken<SiPixelClustersSoACollection> ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::tokenClusters_
private

Definition at line 50 of file SiPixelRecHitAlpaka.cc.

◆ tokenDigi_

template<typename TrackerTraits >
const device::EDGetToken<SiPixelDigisSoACollection> ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::tokenDigi_
private

Definition at line 51 of file SiPixelRecHitAlpaka.cc.

◆ tokenHit_

template<typename TrackerTraits >
const device::EDPutToken<TrackingRecHitsSoACollection<TrackerTraits> > ALPAKA_ACCELERATOR_NAMESPACE::SiPixelRecHitAlpaka< TrackerTraits >::tokenHit_
private

Definition at line 52 of file SiPixelRecHitAlpaka.cc.