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