CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SiPixelTemplateStore2D Struct Reference

#include <SiPixelTemplate2D.h>

Public Member Functions

void resize (int ny, int nx)
 < template storage structure More...
 

Public Attributes

std::vector< SiPixelTemplateEntry2D * > entry
 
SiPixelTemplateHeader2D head
 Header information. More...
 
std::vector< SiPixelTemplateEntry2Dstore
 

Detailed Description

Definition at line 102 of file SiPixelTemplate2D.h.

Member Function Documentation

◆ resize()

void SiPixelTemplateStore2D::resize ( int  ny,
int  nx 
)
inline

< template storage structure

Definition at line 104 of file SiPixelTemplate2D.h.

References cms::cuda::assert(), entry, mps_fire::i, and store.

Referenced by SiPixelTemplate2D::pushfile().

104  {
105  entry.resize(ny);
106  store.resize(nx * ny);
107  int off = 0;
108  for (int i = 0; i < ny; ++i) {
109  entry[i] = store.data() + off;
110  off += nx;
111  }
112  assert(nx * ny == off);
113  }
assert(be >=bs)
std::vector< SiPixelTemplateEntry2D * > entry
std::vector< SiPixelTemplateEntry2D > store

Member Data Documentation

◆ entry

std::vector<SiPixelTemplateEntry2D*> SiPixelTemplateStore2D::entry

Definition at line 118 of file SiPixelTemplate2D.h.

Referenced by SiPixelTemplate2D::pushfile(), and resize().

◆ head

SiPixelTemplateHeader2D SiPixelTemplateStore2D::head

Header information.

use 2d entry to store BPix and FPix entries [dynamically allocated

Definition at line 115 of file SiPixelTemplate2D.h.

Referenced by SiPixelTemplate2D::pushfile().

◆ store

std::vector<SiPixelTemplateEntry2D> SiPixelTemplateStore2D::store

Definition at line 120 of file SiPixelTemplate2D.h.

Referenced by resize().