DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianStripX.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank, D.Blyth
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/CartesianStripX.h>
17 
18 using namespace dd4hep;
19 
22  return Position(access()->implementation->position(id));
23 }
24 
27  const VolumeID& volID) const {
28  return access()->implementation->cellID(local, global, volID);
29 }
30 
32 double CartesianStripX::stripSizeX() const { return access()->implementation->stripSizeX(); }
33 
35 void CartesianStripX::setStripSizeX(double cellSize) const {
36  access()->implementation->setStripSizeX(cellSize);
37 }
38 
40 double CartesianStripX::offsetX() const { return access()->implementation->offsetX(); }
41 
43 void CartesianStripX::setOffsetX(double offset) const { access()->implementation->setOffsetX(offset); }
44 
46 const std::string& CartesianStripX::fieldNameX() const { return access()->implementation->fieldNameX(); }
47 
48 // Returns a vector<double> of the cellDimensions of the given cell ID
49 std::vector<double> CartesianStripX::cellDimensions(const CellID& id) const {
50  return access()->implementation->cellDimensions(id);
51 }
CartesianStripX.h
dd4hep::CartesianStripX::fieldNameX
const std::string & fieldNameX() const
access the field name used for X
Definition: CartesianStripX.cpp:46
dd4hep::CartesianStripX::setStripSizeX
void setStripSizeX(double cellSize) const
set the strip size in X
Definition: CartesianStripX.cpp:35
dd4hep::CartesianStripX::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianStripX.cpp:21
dd4hep::CartesianStripX::stripSizeX
double stripSizeX() const
access the strip size in X
Definition: CartesianStripX.cpp:32
dd4hep::CartesianStripX::cellDimensions
std::vector< double > cellDimensions(const CellID &cellID) const
Returns a vector<double> of the cellDimensions of the given cell ID in natural order of dimensions,...
Definition: CartesianStripX.cpp:49
CartesianStripX.h
dd4hep::CartesianStripX::offsetX
double offsetX() const
access the coordinate offset in X
Definition: CartesianStripX.cpp:40
dd4hep::CartesianStripX::setOffsetX
void setOffsetX(double offset) const
set the coordinate offset in X
Definition: CartesianStripX.cpp:43
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
VolumeID
dd4hep::DDSegmentation::VolumeID VolumeID
Definition: SegmentationDictionary.h:49
dd4hep::Handle::access
T * access() const
Checked object access. Throws invalid handle runtime exception if invalid handle.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::CartesianStripX::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianStripX.cpp:26
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:50