DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianStripZ.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/CartesianStripZ.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 CartesianStripZ::stripSizeZ() const { return access()->implementation->stripSizeZ(); }
33 
35 void CartesianStripZ::setStripSizeZ(double cellSize) const {
36  access()->implementation->setStripSizeZ(cellSize);
37 }
38 
40 double CartesianStripZ::offsetZ() const { return access()->implementation->offsetZ(); }
41 
43 void CartesianStripZ::setOffsetZ(double offset) const { access()->implementation->setOffsetZ(offset); }
44 
46 const std::string& CartesianStripZ::fieldNameZ() const { return access()->implementation->fieldNameZ(); }
47 
48 // Returns a vector<double> of the cellDimensions of the given cell ID
49 std::vector<double> CartesianStripZ::cellDimensions(const CellID& id) const {
50  return access()->implementation->cellDimensions(id);
51 }
dd4hep::CartesianStripZ::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianStripZ.cpp:26
dd4hep::CartesianStripZ::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianStripZ.cpp:21
dd4hep::CartesianStripZ::stripSizeZ
double stripSizeZ() const
access the strip size in Z
Definition: CartesianStripZ.cpp:32
dd4hep::CartesianStripZ::fieldNameZ
const std::string & fieldNameZ() const
access the field name used for Z
Definition: CartesianStripZ.cpp:46
dd4hep::CartesianStripZ::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: CartesianStripZ.cpp:49
CartesianStripZ.h
dd4hep::CartesianStripZ::setOffsetZ
void setOffsetZ(double offset) const
set the coordinate offset in Z
Definition: CartesianStripZ.cpp:43
dd4hep::CartesianStripZ::offsetZ
double offsetZ() const
access the coordinate offset in Z
Definition: CartesianStripZ.cpp:40
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
VolumeID
dd4hep::DDSegmentation::VolumeID VolumeID
Definition: SegmentationDictionary.h:50
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::CartesianStripZ::setStripSizeZ
void setStripSizeZ(double cellSize) const
set the strip size in Z
Definition: CartesianStripZ.cpp:35
CartesianStripZ.h
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51