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/CartesianStripX.h>
0016 #include <DDSegmentation/CartesianStripX.h>
0017 
0018 using namespace dd4hep;
0019 
0020 /// determine the position based on the cell ID
0021 Position CartesianStripX::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 CartesianStripX::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 X
0032 double CartesianStripX::stripSizeX() const { return access()->implementation->stripSizeX(); }
0033 
0034 /// set the strip size in X
0035 void CartesianStripX::setStripSizeX(double cellSize) const {
0036     access()->implementation->setStripSizeX(cellSize);
0037 }
0038 
0039 /// access the coordinate offset in X
0040 double CartesianStripX::offsetX() const { return access()->implementation->offsetX(); }
0041 
0042 /// set the coordinate offset in X
0043 void CartesianStripX::setOffsetX(double offset) const { access()->implementation->setOffsetX(offset); }
0044 
0045 /// access the field name used for X
0046 const std::string& CartesianStripX::fieldNameX() const { return access()->implementation->fieldNameX(); }
0047 
0048 // Returns a vector<double> of the cellDimensions of the given cell ID
0049 std::vector<double> CartesianStripX::cellDimensions(const CellID& id) const {
0050     return access()->implementation->cellDimensions(id);
0051 }