CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
ChannelLocsBase< T > Class Template Reference

#include <ChannelLocsGPU.h>

Public Member Functions

 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
 

Protected Attributes

T< stripgpu::detId_t[]> detID_
 
T< stripgpu::fedCh_t[]> fedCh_
 
T< stripgpu::fedId_t[]> fedID_
 
T< size_t[]> inoff_
 
T< const uint8_t *[]> input_
 
T< uint16_t[]> length_
 
T< size_t[]> offset_
 
size_t size_ = 0
 

Detailed Description

template<template< typename > class T>
class ChannelLocsBase< T >

Definition at line 16 of file ChannelLocsGPU.h.

Constructor & Destructor Documentation

◆ ChannelLocsBase() [1/2]

template<template< typename > class T>
ChannelLocsBase< T >::ChannelLocsBase ( size_t  size)
inline

Definition at line 18 of file ChannelLocsGPU.h.

18 : size_(size) {}
size_t size() const

◆ ~ChannelLocsBase()

template<template< typename > class T>
virtual ChannelLocsBase< T >::~ChannelLocsBase ( )
virtualdefault

◆ ChannelLocsBase() [2/2]

template<template< typename > class T>
ChannelLocsBase< T >::ChannelLocsBase ( ChannelLocsBase< T > &&  arg)
inline

Definition at line 21 of file ChannelLocsGPU.h.

22  : input_(std::move(arg.input_)),
23  inoff_(std::move(arg.inoff_)),
24  offset_(std::move(arg.offset_)),
25  length_(std::move(arg.length_)),
26  fedID_(std::move(arg.fedID_)),
27  fedCh_(std::move(arg.fedCh_)),
28  detID_(std::move(arg.detID_)),
29  size_(arg.size_) {}
T< stripgpu::fedId_t[]> fedID_
A arg
Definition: Factorize.h:31
T< size_t[]> inoff_
T< stripgpu::fedCh_t[]> fedCh_
T< const uint8_t *[]> input_
T< stripgpu::detId_t[]> detID_
T< uint16_t[]> length_
T< size_t[]> offset_
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ detID() [1/2]

template<template< typename > class T>
stripgpu::detId_t ChannelLocsBase< T >::detID ( uint32_t  index) const
inline

Definition at line 56 of file ChannelLocsGPU.h.

56 { return detID_[index]; }
T< stripgpu::detId_t[]> detID_

◆ detID() [2/2]

template<template< typename > class T>
stripgpu::detId_t* ChannelLocsBase< T >::detID ( ) const
inline

Definition at line 64 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

64 { return detID_.get(); }
T< stripgpu::detId_t[]> detID_

◆ fedCh() [1/2]

template<template< typename > class T>
stripgpu::fedCh_t ChannelLocsBase< T >::fedCh ( uint32_t  index) const
inline

Definition at line 55 of file ChannelLocsGPU.h.

55 { return fedCh_[index]; }
T< stripgpu::fedCh_t[]> fedCh_

◆ fedCh() [2/2]

template<template< typename > class T>
stripgpu::fedCh_t* ChannelLocsBase< T >::fedCh ( ) const
inline

Definition at line 63 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

63 { return fedCh_.get(); }
T< stripgpu::fedCh_t[]> fedCh_

◆ fedID() [1/2]

template<template< typename > class T>
stripgpu::fedId_t ChannelLocsBase< T >::fedID ( uint32_t  index) const
inline

Definition at line 54 of file ChannelLocsGPU.h.

54 { return fedID_[index]; }
T< stripgpu::fedId_t[]> fedID_

◆ fedID() [2/2]

template<template< typename > class T>
stripgpu::fedId_t* ChannelLocsBase< T >::fedID ( ) const
inline

Definition at line 62 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

62 { return fedID_.get(); }
T< stripgpu::fedId_t[]> fedID_

◆ inoff() [1/2]

template<template< typename > class T>
size_t ChannelLocsBase< T >::inoff ( uint32_t  index) const
inline

Definition at line 51 of file ChannelLocsGPU.h.

◆ inoff() [2/2]

template<template< typename > class T>
size_t* ChannelLocsBase< T >::inoff ( ) const
inline

Definition at line 59 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

59 { return inoff_.get(); }
T< size_t[]> inoff_

◆ input() [1/2]

template<template< typename > class T>
const uint8_t* ChannelLocsBase< T >::input ( uint32_t  index) const
inline

Definition at line 50 of file ChannelLocsGPU.h.

50 { return input_[index]; }
T< const uint8_t *[]> input_

◆ input() [2/2]

template<template< typename > class T>
const uint8_t* const* ChannelLocsBase< T >::input ( ) const
inline

Definition at line 58 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

58 { return input_.get(); }
T< const uint8_t *[]> input_

◆ length() [1/2]

template<template< typename > class T>
uint16_t ChannelLocsBase< T >::length ( uint32_t  index) const
inline

Definition at line 53 of file ChannelLocsGPU.h.

◆ length() [2/2]

template<template< typename > class T>
uint16_t* ChannelLocsBase< T >::length ( ) const
inline

Definition at line 61 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

61 { return length_.get(); }
T< uint16_t[]> length_

◆ offset() [1/2]

template<template< typename > class T>
size_t ChannelLocsBase< T >::offset ( uint32_t  index) const
inline

Definition at line 52 of file ChannelLocsGPU.h.

◆ offset() [2/2]

template<template< typename > class T>
size_t* ChannelLocsBase< T >::offset ( ) const
inline

Definition at line 60 of file ChannelLocsGPU.h.

Referenced by ChannelLocsBase< cms::cuda::host::unique_ptr >::setChannelLoc().

60 { return offset_.get(); }
T< size_t[]> offset_

◆ setChannelLoc()

template<template< typename > class T>
void ChannelLocsBase< T >::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 
)
inline

Definition at line 31 of file ChannelLocsGPU.h.

38  {
39  input_[index] = input;
40  inoff_[index] = inoff;
41  offset_[index] = offset;
42  length_[index] = length;
43  fedID_[index] = fedID;
44  fedCh_[index] = fedCh;
45  detID_[index] = detID;
46  }
T< stripgpu::fedId_t[]> fedID_
uint16_t * length() const
size_t * offset() const
T< size_t[]> inoff_
T< stripgpu::fedCh_t[]> fedCh_
T< const uint8_t *[]> input_
const uint8_t *const * input() const
stripgpu::detId_t * detID() const
T< stripgpu::detId_t[]> detID_
size_t * inoff() const
T< uint16_t[]> length_
stripgpu::fedId_t * fedID() const
stripgpu::fedCh_t * fedCh() const
T< size_t[]> offset_

◆ size()

template<template< typename > class T>
size_t ChannelLocsBase< T >::size ( void  ) const
inline

Member Data Documentation

◆ detID_

template<template< typename > class T>
T<stripgpu::detId_t[]> ChannelLocsBase< T >::detID_
protected

◆ fedCh_

template<template< typename > class T>
T<stripgpu::fedCh_t[]> ChannelLocsBase< T >::fedCh_
protected

◆ fedID_

template<template< typename > class T>
T<stripgpu::fedId_t[]> ChannelLocsBase< T >::fedID_
protected

◆ inoff_

template<template< typename > class T>
T<size_t[]> ChannelLocsBase< T >::inoff_
protected

◆ input_

template<template< typename > class T>
T<const uint8_t*[]> ChannelLocsBase< T >::input_
protected

◆ length_

template<template< typename > class T>
T<uint16_t[]> ChannelLocsBase< T >::length_
protected

◆ offset_

template<template< typename > class T>
T<size_t[]> ChannelLocsBase< T >::offset_
protected

◆ size_

template<template< typename > class T>
size_t ChannelLocsBase< T >::size_ = 0
protected