Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:17:00

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 
0014 // Framework include files
0015 #include <DD4hep/NoSegmentation.h>
0016 #include <DDSegmentation/NoSegmentation.h>
0017 
0018 using namespace dd4hep;
0019 
0020 Position NoSegmentation::position(const CellID& id) const   {
0021   return Position(access()->implementation->position(id));
0022 }
0023 
0024 /// determine the cell ID based on the position
0025 dd4hep::CellID NoSegmentation::cellID(const Position& local,
0026                                       const Position& global,
0027                                       const VolumeID& volID) const
0028 {
0029   return access()->implementation->cellID(local, global, volID);
0030 }
0031