Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /DataFormats/VertexSoA/README.md is written in an unsupported language. File is not indexed.

0001 # Vertex Portable Data Formats
0002 
0003 `DataFormat`s meant to be used on Host (CPU) or Device (GPUs) for storing
0004 information about reconstructed pixel vertices in Structure of Array (SoA)
0005 format.
0006 
0007 The host collection is an instantiation of `PortableHostMultiCollection`, while
0008 the device collection is an instantiation of `PortableDeviceMultiCollection`.
0009 
0010 Both collections use two SoA layouts (`ZVertexLayout` and `ZVertexTracksLayout`)
0011 with different number of elements, defined at run-time.
0012 The layouts are defined by the `GENERATE_SOA_LAYOUT` macro in
0013 `DataFormats/VertexSoA/interface/ZVertexSoA.h`.
0014 
0015 
0016 ## `ZVertexHost`
0017 
0018 The version of the data format to be used for storing vertex data on the CPU. 
0019 Instances of this class are to be used for:
0020   - having a place to copy data to host from device, which is usually taken care
0021     of automatically by the framework;
0022   - running host-side algorithms using data stored in an SoA manner.
0023 
0024 
0025 ## `ZVertexDevice`
0026 
0027 The version of the data format to be used for storing vertex data on the GPU.
0028 Instances of `ZVertexDevice` are created on the host, and can only be used only
0029 on the device. To do so, the instance's `view()` or `const_view()` methods are
0030 called, and the resulting `View` or `ConstView` are passed to a kernel launch.
0031 The data from the instance, `view()` or `const_view()` is not accessible on the
0032 host side.