File indexing completed on 2025-01-18 09:55:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef DDDIGI_SEGMENTATIONS_CARTESIANGRIDXYZ_H
0014 #define DDDIGI_SEGMENTATIONS_CARTESIANGRIDXYZ_H
0015
0016
0017 #include <DDDigi/DigiSegmentation.h>
0018 #include <DD4hep/CartesianGridXYZ.h>
0019 #include <DDSegmentation/CartesianGridXYZ.h>
0020
0021
0022 #include <functional>
0023
0024
0025 namespace dd4hep {
0026
0027
0028 namespace digi {
0029
0030 template <> class cell_data<CartesianGridXYZ> : public DigiCellData {
0031 public:
0032 CellID x_cid {0}, y_cid {0}, z_cid {0};
0033 CellID x_bin {0}, y_bin {0}, z_bin {0};
0034 };
0035
0036 template <> class segmentation_data<CartesianGridXYZ> {
0037 public:
0038 DDSegmentation::CartesianGridXYZ* segmentation_xyz {0};
0039 double x_grid_size {0.0}, x_offset {0.0};
0040 double y_grid_size {0.0}, y_offset {0.0};
0041 double z_grid_size {0.0}, z_offset {0.0};
0042 CellID x_mask {0};
0043 CellID y_mask {0};
0044 CellID z_mask {0};
0045 int x_f_offset {0}, y_f_offset {0}, z_f_offset {0};
0046 };
0047
0048 }
0049 }
0050 #endif