CMS 3D CMS Logo

HGCRecHitSoA.h
Go to the documentation of this file.
1 #ifndef CUDADataFormats_HGCal_HGCRecHitSoA_h
2 #define CUDADataFormats_HGCal_HGCRecHitSoA_h
3 
4 #include <cstdint>
5 
6 class HGCRecHitSoA {
7 public:
8  float *energy_; //calibrated energy of the rechit
9  float *time_; //time jitter of the UncalibRecHit
10  float *timeError_; //time resolution
11  uint32_t *id_; //rechit detId
12  uint32_t *flagBits_; //rechit flags describing its status (DataFormats/HGCRecHit/interface/HGCRecHit.h)
13  uint8_t *son_; //signal over noise
14 
15  uint32_t nbytes_; //number of bytes of the SoA
16  uint32_t nhits_; //number of hits stored in the SoA
17  uint32_t pad_; //pad of memory block (used for warp alignment, slightly larger than 'nhits_')
18 };
19 
20 namespace memory {
21  namespace npointers {
22  constexpr unsigned float_hgcrechits_soa = 3; //number of float pointers in the rechits SoA
23  constexpr unsigned uint32_hgcrechits_soa = 2; //number of uint32_t pointers in the rechits SoA
24  constexpr unsigned uint8_hgcrechits_soa = 1; //number of uint8_t pointers in the rechits SoA
25  constexpr unsigned ntypes_hgcrechits_soa = 3; //number of different pointer types in the rechits SoA
26  } // namespace npointers
27 } // namespace memory
28 
29 #endif //CUDADataFormats_HGCal_HGCRecHitSoA_h
HGCRecHitSoA::nbytes_
uint32_t nbytes_
Definition: HGCRecHitSoA.h:15
memory
Definition: HGCRecHitSoA.h:20
HGCRecHitSoA::pad_
uint32_t pad_
Definition: HGCRecHitSoA.h:17
HGCRecHitSoA::son_
uint8_t * son_
Definition: HGCRecHitSoA.h:13
memory::npointers::ntypes_hgcrechits_soa
constexpr unsigned ntypes_hgcrechits_soa
Definition: HGCRecHitSoA.h:25
HGCRecHitSoA::id_
uint32_t * id_
Definition: HGCRecHitSoA.h:11
HGCRecHitSoA::time_
float * time_
Definition: HGCRecHitSoA.h:9
HGCRecHitSoA::flagBits_
uint32_t * flagBits_
Definition: HGCRecHitSoA.h:12
HGCRecHitSoA
Definition: HGCRecHitSoA.h:6
memory::npointers::uint32_hgcrechits_soa
constexpr unsigned uint32_hgcrechits_soa
Definition: HGCRecHitSoA.h:23
HGCRecHitSoA::timeError_
float * timeError_
Definition: HGCRecHitSoA.h:10
HGCRecHitSoA::nhits_
uint32_t nhits_
Definition: HGCRecHitSoA.h:16
memory::npointers::uint8_hgcrechits_soa
constexpr unsigned uint8_hgcrechits_soa
Definition: HGCRecHitSoA.h:24
HGCRecHitSoA::energy_
float * energy_
Definition: HGCRecHitSoA.h:8
memory::npointers::float_hgcrechits_soa
constexpr unsigned float_hgcrechits_soa
Definition: HGCRecHitSoA.h:22