Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:16:56

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, D.Blyth
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DD4hep/CartesianStripZ.h>
0016 #include <DDSegmentation/CartesianStripZ.h>
0017 
0018 using namespace dd4hep;
0019 
0020 /// determine the position based on the cell ID
0021 Position CartesianStripZ::position(const CellID& id) const {
0022     return Position(access()->implementation->position(id));
0023 }
0024 
0025 /// determine the cell ID based on the position
0026 dd4hep::CellID CartesianStripZ::cellID(const Position& local, const Position& global,
0027                                        const VolumeID& volID) const {
0028     return access()->implementation->cellID(local, global, volID);
0029 }
0030 
0031 /// access the strip size in Z
0032 double CartesianStripZ::stripSizeZ() const { return access()->implementation->stripSizeZ(); }
0033 
0034 /// set the strip size in Z
0035 void CartesianStripZ::setStripSizeZ(double cellSize) const {
0036     access()->implementation->setStripSizeZ(cellSize);
0037 }
0038 
0039 /// access the coordinate offset in Z
0040 double CartesianStripZ::offsetZ() const { return access()->implementation->offsetZ(); }
0041 
0042 /// set the coordinate offset in Z
0043 void CartesianStripZ::setOffsetZ(double offset) const { access()->implementation->setOffsetZ(offset); }
0044 
0045 /// access the field name used for Z
0046 const std::string& CartesianStripZ::fieldNameZ() const { return access()->implementation->fieldNameZ(); }
0047 
0048 // Returns a vector<double> of the cellDimensions of the given cell ID
0049 std::vector<double> CartesianStripZ::cellDimensions(const CellID& id) const {
0050     return access()->implementation->cellDimensions(id);
0051 }