Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:00

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2021-2024 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // Project include(s).
0011 #include "traccc/definitions/primitives.hpp"
0012 #include "traccc/definitions/qualifiers.hpp"
0013 
0014 namespace traccc {
0015 
0016 /// A very basic pixel segmentation with
0017 /// a minimum corner and ptich x/y
0018 ///
0019 /// No checking on out of bounds done
0020 struct pixel_data {
0021   scalar min_corner_x = 0.f;
0022   scalar min_corner_y = 0.f;
0023   scalar pitch_x = 1.f;
0024   scalar pitch_y = 1.f;
0025   char dimension = 2;
0026 
0027   TRACCC_HOST_DEVICE
0028   vector2 get_pitch() const { return {pitch_x, pitch_y}; };
0029 };
0030 
0031 }  // namespace traccc