Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:52

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