CMS 3D CMS Logo

List of all members | Public Member Functions | Friends
ChannelLocs Class Reference

#include <ChannelLocsGPU.h>

Inheritance diagram for ChannelLocs:
ChannelLocsBase< cms::cuda::host::unique_ptr >

Public Member Functions

 ChannelLocs (size_t size, cudaStream_t stream)
 
 ChannelLocs (ChannelLocs &&arg)
 
 ChannelLocs (ChannelLocs &)=delete
 
 ChannelLocs (const ChannelLocs &)=delete
 
ChannelLocsoperator= (const ChannelLocs &)=delete
 
ChannelLocsoperator= (ChannelLocs &&)=delete
 
 ~ChannelLocs () override=default
 
- Public Member Functions inherited from ChannelLocsBase< cms::cuda::host::unique_ptr >
 ChannelLocsBase (size_t size)
 
 ChannelLocsBase (ChannelLocsBase &&arg)
 
stripgpu::detId_t detID (uint32_t index) const
 
stripgpu::detId_tdetID () const
 
stripgpu::fedCh_t fedCh (uint32_t index) const
 
stripgpu::fedCh_tfedCh () const
 
stripgpu::fedId_t fedID (uint32_t index) const
 
stripgpu::fedId_tfedID () const
 
size_t inoff (uint32_t index) const
 
size_t * inoff () const
 
const uint8_t * input (uint32_t index) const
 
const uint8_t *const * input () const
 
uint16_t length (uint32_t index) const
 
uint16_t * length () const
 
size_t offset (uint32_t index) const
 
size_t * offset () const
 
void setChannelLoc (uint32_t index, const uint8_t *input, size_t inoff, size_t offset, uint16_t length, stripgpu::fedId_t fedID, stripgpu::fedCh_t fedCh, stripgpu::detId_t detID)
 
size_t size () const
 
virtual ~ChannelLocsBase ()=default
 

Friends

class ChannelLocsGPU
 

Additional Inherited Members

- Protected Attributes inherited from ChannelLocsBase< cms::cuda::host::unique_ptr >
cms::cuda::host::unique_ptr< stripgpu::detId_t[]> detID_
 
cms::cuda::host::unique_ptr< stripgpu::fedCh_t[]> fedCh_
 
cms::cuda::host::unique_ptr< stripgpu::fedId_t[]> fedID_
 
cms::cuda::host::unique_ptr< size_t[]> inoff_
 
cms::cuda::host::unique_ptr< const uint8_t *[]> input_
 
cms::cuda::host::unique_ptr< uint16_t[]> length_
 
cms::cuda::host::unique_ptr< size_t[]> offset_
 
size_t size_
 

Detailed Description

Definition at line 77 of file ChannelLocsGPU.h.

Constructor & Destructor Documentation

◆ ChannelLocs() [1/4]

ChannelLocs::ChannelLocs ( size_t  size,
cudaStream_t  stream 
)

Definition at line 9 of file ChannelLocsGPU.cc.

References ChannelLocsBase< cms::cuda::host::unique_ptr >::detID_, ChannelLocsBase< cms::cuda::host::unique_ptr >::fedCh_, ChannelLocsBase< cms::cuda::host::unique_ptr >::fedID_, ChannelLocsBase< cms::cuda::host::unique_ptr >::inoff_, ChannelLocsBase< cms::cuda::host::unique_ptr >::input_, ChannelLocsBase< cms::cuda::host::unique_ptr >::length_, ChannelLocsBase< cms::cuda::host::unique_ptr >::offset_, ChannelLocsBase< cms::cuda::host::unique_ptr >::size(), and cms::cuda::stream.

10  if (size > 0) {
11  input_ = cms::cuda::make_host_unique<const uint8_t*[]>(size, stream);
12  inoff_ = cms::cuda::make_host_unique<size_t[]>(size, stream);
13  offset_ = cms::cuda::make_host_unique<size_t[]>(size, stream);
14  length_ = cms::cuda::make_host_unique<uint16_t[]>(size, stream);
15  fedID_ = cms::cuda::make_host_unique<stripgpu::fedId_t[]>(size, stream);
16  fedCh_ = cms::cuda::make_host_unique<stripgpu::fedCh_t[]>(size, stream);
17  detID_ = cms::cuda::make_host_unique<stripgpu::detId_t[]>(size, stream);
18  }
19 }
cms::cuda::host::unique_ptr< stripgpu::fedId_t[]> fedID_
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
cms::cuda::host::unique_ptr< size_t[]> inoff_
cms::cuda::host::unique_ptr< stripgpu::fedCh_t[]> fedCh_
cms::cuda::host::unique_ptr< const uint8_t *[]> input_
cms::cuda::host::unique_ptr< stripgpu::detId_t[]> detID_
cms::cuda::host::unique_ptr< uint16_t[]> length_
cms::cuda::host::unique_ptr< size_t[]> offset_

◆ ChannelLocs() [2/4]

ChannelLocs::ChannelLocs ( ChannelLocs &&  arg)
inline

Definition at line 82 of file ChannelLocsGPU.h.

◆ ChannelLocs() [3/4]

ChannelLocs::ChannelLocs ( ChannelLocs )
delete

◆ ChannelLocs() [4/4]

ChannelLocs::ChannelLocs ( const ChannelLocs )
delete

◆ ~ChannelLocs()

ChannelLocs::~ChannelLocs ( )
overridedefault

Member Function Documentation

◆ operator=() [1/2]

ChannelLocs& ChannelLocs::operator= ( const ChannelLocs )
delete

◆ operator=() [2/2]

ChannelLocs& ChannelLocs::operator= ( ChannelLocs &&  )
delete

Friends And Related Function Documentation

◆ ChannelLocsGPU

friend class ChannelLocsGPU
friend

Definition at line 78 of file ChannelLocsGPU.h.