CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PixelVertexSoAFromCUDA Class Reference
Inheritance diagram for PixelVertexSoAFromCUDA:
edm::stream::EDProducer< edm::ExternalWork >

Public Member Functions

 PixelVertexSoAFromCUDA (const edm::ParameterSet &iConfig)
 
 ~PixelVertexSoAFromCUDA () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::ExternalWork >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void acquire (edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder waitingTaskHolder) override
 
void produce (edm::Event &iEvent, edm::EventSetup const &iSetup) override
 

Private Attributes

cms::cuda::host::unique_ptr< ZVertexSoAm_soa
 
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenCUDA_
 
edm::EDPutTokenT< ZVertexHeterogeneoustokenSOA_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< edm::ExternalWork >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 20 of file PixelVertexSoAFromCUDA.cc.

Constructor & Destructor Documentation

◆ PixelVertexSoAFromCUDA()

PixelVertexSoAFromCUDA::PixelVertexSoAFromCUDA ( const edm::ParameterSet iConfig)
explicit

Definition at line 39 of file PixelVertexSoAFromCUDA.cc.

41  tokenSOA_(produces<ZVertexHeterogeneous>()) {}

◆ ~PixelVertexSoAFromCUDA()

PixelVertexSoAFromCUDA::~PixelVertexSoAFromCUDA ( )
overridedefault

Member Function Documentation

◆ acquire()

void PixelVertexSoAFromCUDA::acquire ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup,
edm::WaitingTaskWithArenaHolder  waitingTaskHolder 
)
overrideprivate

Definition at line 50 of file PixelVertexSoAFromCUDA.cc.

52  {
53  auto const& inputDataWrapped = iEvent.get(tokenCUDA_);
54  cms::cuda::ScopedContextAcquire ctx{inputDataWrapped, std::move(waitingTaskHolder)};
55  auto const& inputData = ctx.get(inputDataWrapped);
56 
57  m_soa = inputData.toHostAsync(ctx.stream());
58 }

References iEvent, m_soa, eostools::move(), and tokenCUDA_.

◆ fillDescriptions()

void PixelVertexSoAFromCUDA::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 43 of file PixelVertexSoAFromCUDA.cc.

43  {
45 
46  desc.add<edm::InputTag>("src", edm::InputTag("pixelVerticesCUDA"));
47  descriptions.add("pixelVerticesSoA", desc);
48 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_FULL_cff::InputTag.

◆ produce()

void PixelVertexSoAFromCUDA::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
overrideprivate

Definition at line 60 of file PixelVertexSoAFromCUDA.cc.

60  {
61  // No copies....
63 }

References iEvent, m_soa, eostools::move(), and tokenSOA_.

Member Data Documentation

◆ m_soa

cms::cuda::host::unique_ptr<ZVertexSoA> PixelVertexSoAFromCUDA::m_soa
private

Definition at line 36 of file PixelVertexSoAFromCUDA.cc.

Referenced by acquire(), and produce().

◆ tokenCUDA_

edm::EDGetTokenT<cms::cuda::Product<ZVertexHeterogeneous> > PixelVertexSoAFromCUDA::tokenCUDA_
private

Definition at line 33 of file PixelVertexSoAFromCUDA.cc.

Referenced by acquire().

◆ tokenSOA_

edm::EDPutTokenT<ZVertexHeterogeneous> PixelVertexSoAFromCUDA::tokenSOA_
private

Definition at line 34 of file PixelVertexSoAFromCUDA.cc.

Referenced by produce().

PixelVertexSoAFromCUDA::m_soa
cms::cuda::host::unique_ptr< ZVertexSoA > m_soa
Definition: PixelVertexSoAFromCUDA.cc:36
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
ZVertexHeterogeneous
HeterogeneousSoA< ZVertexSoA > ZVertexHeterogeneous
Definition: ZVertexHeterogeneous.h:8
iEvent
int iEvent
Definition: GenABIO.cc:224
PixelVertexSoAFromCUDA::tokenCUDA_
edm::EDGetTokenT< cms::cuda::Product< ZVertexHeterogeneous > > tokenCUDA_
Definition: PixelVertexSoAFromCUDA.cc:33
cms::cuda::ScopedContextAcquire
Definition: ScopedContext.h:101
PixelVertexSoAFromCUDA::tokenSOA_
edm::EDPutTokenT< ZVertexHeterogeneous > tokenSOA_
Definition: PixelVertexSoAFromCUDA.cc:34
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
cms::cuda::Product
Definition: Product.h:34
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15