Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:46

0001 #ifndef CUDADataFormats_TrackingRecHit_interface_SiPixelHitStatus_H
0002 #define CUDADataFormats_TrackingRecHit_interface_SiPixelHitStatus_H
0003 
0004 #include <cstdint>
0005 
0006 // more information on bit fields : https://en.cppreference.com/w/cpp/language/bit_field
0007 struct SiPixelHitStatus {
0008   bool isBigX : 1;   //  ∈[0,1]
0009   bool isOneX : 1;   //  ∈[0,1]
0010   bool isBigY : 1;   //  ∈[0,1]
0011   bool isOneY : 1;   //  ∈[0,1]
0012   uint8_t qBin : 3;  //  ∈[0,1,...,7]
0013 };
0014 
0015 struct SiPixelHitStatusAndCharge {
0016   SiPixelHitStatus status;
0017   uint32_t charge : 24;
0018 };
0019 
0020 #endif