DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
WaferGridXY.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
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/WaferGridXY.h>
17 
18 using namespace dd4hep;
19 
22  return Position(access()->implementation->position(id));
23 }
24 
27  const Position& global,
28  const VolumeID& volID) const
29 {
30  return access()->implementation->cellID(local, global, volID);
31 }
32 
34 double WaferGridXY::gridSizeX() const {
35  return access()->implementation->gridSizeX();
36 }
37 
39 double WaferGridXY::gridSizeY() const {
40  return access()->implementation->gridSizeY();
41 }
42 
44 double WaferGridXY::offsetX() const {
45  return access()->implementation->offsetX();
46 }
47 
49 double WaferGridXY::offsetY() const {
50  return access()->implementation->offsetY();
51 }
53 double WaferGridXY::waferOffsetX(int inGroup, int inWafer) const {
54  return access()->implementation->waferOffsetX(inGroup,inWafer);
55 }
56 
58 double WaferGridXY::waferOffsetY(int inGroup, int inWafer) const {
59  return access()->implementation->waferOffsetY(inGroup,inWafer);
60 }
61 
63 const std::string& WaferGridXY::fieldNameX() const {
64  return access()->implementation->fieldNameX();
65 }
66 
68 const std::string& WaferGridXY::fieldNameY() const {
69  return access()->implementation->fieldNameY();
70 }
71 
81 std::vector<double> WaferGridXY::cellDimensions(const CellID& id) const {
82  return access()->implementation->cellDimensions(id);
83 }
dd4hep::WaferGridXY::fieldNameY
const std::string & fieldNameY() const
access the field name used for Y
Definition: WaferGridXY.cpp:68
WaferGridXY.h
dd4hep::WaferGridXY::waferOffsetX
double waferOffsetX(int inGroup, int inWafer) const
access the coordinate waferOffset for inGroup in X
Definition: WaferGridXY.cpp:53
dd4hep::WaferGridXY::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: WaferGridXY.cpp:26
dd4hep::WaferGridXY::offsetY
double offsetY() const
access the coordinate offset in Y
Definition: WaferGridXY.cpp:49
dd4hep::WaferGridXY::fieldNameX
const std::string & fieldNameX() const
access the field name used for X
Definition: WaferGridXY.cpp:63
dd4hep::WaferGridXY::waferOffsetY
double waferOffsetY(int inGroup, int inWafer) const
access the coordinate waferOffset for inGroup in Y
Definition: WaferGridXY.cpp:58
dd4hep::WaferGridXY::gridSizeY
double gridSizeY() const
access the grid size in Y
Definition: WaferGridXY.cpp:39
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
VolumeID
dd4hep::DDSegmentation::VolumeID VolumeID
Definition: SegmentationDictionary.h:49
dd4hep::WaferGridXY::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: WaferGridXY.cpp:21
dd4hep::WaferGridXY::offsetX
double offsetX() const
access the coordinate offset in X
Definition: WaferGridXY.cpp:44
dd4hep::Handle::access
T * access() const
Checked object access. Throws invalid handle runtime exception if invalid handle.
dd4hep::WaferGridXY::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: WaferGridXY.cpp:81
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
WaferGridXY.h
dd4hep::WaferGridXY::gridSizeX
double gridSizeX() const
access the grid size in X
Definition: WaferGridXY.cpp:34
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:50