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_CARTESIANGRIDXY_H
0014 #define DDDIGI_SEGMENTATIONS_CARTESIANGRIDXY_H
0015 
0016 /// Framework include files
0017 #include <DDDigi/DigiSegmentation.h>
0018 #include <DD4hep/CartesianGridXY.h>
0019 #include <DDSegmentation/CartesianGridXY.h>
0020 
0021 /// Namespace for the AIDA detector description toolkit
0022 namespace dd4hep {
0023 
0024   /// Namespace for the Digitization part of the AIDA detector description toolkit
0025   namespace digi {
0026 
0027     template <> class cell_data<CartesianGridXY> : public DigiCellData {
0028     public:
0029       CellID x_cid {0}, y_cid {0};
0030       CellID x_bin {0}, y_bin {0};
0031     };
0032 
0033     template <> class segmentation_data<CartesianGridXY> {
0034     public:
0035       DDSegmentation::CartesianGridXY* segmentation_xy {0};
0036       double x_grid_size {0.0};
0037       double x_offset    {0.0};
0038       double y_grid_size {0.0};
0039       double y_offset    {0.0};
0040       CellID x_mask      {0};
0041       CellID y_mask      {0};
0042       int    x_f_offset  {0};
0043       int    y_f_offset  {0};
0044     };
0045 
0046   }    // End namespace digi
0047 }      // End namespace dd4hep
0048 #endif // DDDIGI_SEGMENTATIONS_CARTESIANGRIDXY_H