src
DataFormats
SiPixelDigiSoA
interface
SiPixelDigiErrorsHost.h
Go to the documentation of this file.
1
#ifndef DataFormats_SiPixelDigiSoA_interface_SiPixelDigiErrorsHost_h
2
#define DataFormats_SiPixelDigiSoA_interface_SiPixelDigiErrorsHost_h
3
4
#include <utility>
5
6
#include <alpaka/alpaka.hpp>
7
8
#include "
DataFormats/Portable/interface/PortableHostCollection.h
"
9
#include "
DataFormats/SiPixelDigiSoA/interface/SiPixelDigiErrorsSoA.h
"
10
#include "
DataFormats/SiPixelRawData/interface/SiPixelErrorCompact.h
"
11
#include "
HeterogeneousCore/AlpakaInterface/interface/SimpleVector.h
"
12
#include "
HeterogeneousCore/AlpakaInterface/interface/memory.h
"
13
14
class
SiPixelDigiErrorsHost
:
public
PortableHostCollection
<SiPixelDigiErrorsSoA> {
15
public
:
16
SiPixelDigiErrorsHost
() =
default
;
17
template
<
typename
TQueue>
18
explicit
SiPixelDigiErrorsHost
(
int
maxFedWords
, TQueue
queue
)
19
:
PortableHostCollection
<
SiPixelDigiErrorsSoA
>(
maxFedWords
,
queue
),
maxFedWords_
(
maxFedWords
) {}
20
21
int
maxFedWords
()
const
{
return
maxFedWords_
; }
22
23
auto
&
error_data
() {
return
(*
view
().pixelErrors()); }
24
auto
const
&
error_data
()
const
{
return
(*
view
().pixelErrors()); }
25
26
private
:
27
int
maxFedWords_
= 0;
28
};
29
30
#endif // DataFormats_SiPixelDigiSoA_interface_SiPixelDigiErrorsHost_h
PortableHostCollection< SiPixelDigiErrorsSoA >::view
View & view()
Definition:
PortableHostCollection.h:57
SiPixelErrorCompact.h
memory.h
PortableHostCollection.h
SiPixelDigiErrorsHost::maxFedWords
int maxFedWords() const
Definition:
SiPixelDigiErrorsHost.h:21
createBeamHaloJobs.queue
queue
Definition:
createBeamHaloJobs.py:343
PortableHostCollection
Definition:
PortableHostCollection.h:16
SimpleVector.h
SiPixelDigiErrorsHost
Definition:
SiPixelDigiErrorsHost.h:14
SiPixelDigiErrorsHost::maxFedWords_
int maxFedWords_
Definition:
SiPixelDigiErrorsHost.h:27
SiPixelDigiErrorsHost::SiPixelDigiErrorsHost
SiPixelDigiErrorsHost(int maxFedWords, TQueue queue)
Definition:
SiPixelDigiErrorsHost.h:18
SiPixelDigiErrorsHost::error_data
auto & error_data()
Definition:
SiPixelDigiErrorsHost.h:23
SiPixelDigiErrorsLayout
Definition:
SiPixelDigiErrorsSoA.h:8
SiPixelDigiErrorsSoA.h
SiPixelDigiErrorsHost::error_data
auto const & error_data() const
Definition:
SiPixelDigiErrorsHost.h:24
SiPixelDigiErrorsHost::SiPixelDigiErrorsHost
SiPixelDigiErrorsHost()=default
Generated for CMSSW Reference Manual by
1.8.14