Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:20

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 #ifndef DDDIGI_SEGMENTATIONS_CARTESIANGRIDXYZ_H
0014 #define DDDIGI_SEGMENTATIONS_CARTESIANGRIDXYZ_H
0015 
0016 /// Framework include files
0017 #include <DDDigi/DigiSegmentation.h>
0018 #include <DD4hep/CartesianGridXYZ.h>
0019 #include <DDSegmentation/CartesianGridXYZ.h>
0020 
0021 /// C/C++ include files
0022 #include <functional>
0023 
0024 /// Namespace for the AIDA detector description toolkit
0025 namespace dd4hep {
0026 
0027   /// Namespace for the Digitization part of the AIDA detector description toolkit
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   }    // End namespace digi
0049 }      // End namespace dd4hep
0050 #endif // DDDIGI_SEGMENTATIONS_CARTESIANGRIDXYZ_H