DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianGridUV.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/CartesianGridUV.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 
35  return access()->implementation->gridSizeU();
36 }
37 
40  return access()->implementation->gridSizeV();
41 }
42 
44 void CartesianGridUV::setGridSizeU(double cellSize) const {
45  access()->implementation->setGridSizeU(cellSize);
46 }
47 
49 void CartesianGridUV::setGridSizeV(double cellSize) const {
50  access()->implementation->setGridSizeV(cellSize);
51 }
52 
54 double CartesianGridUV::offsetU() const {
55  return access()->implementation->offsetU();
56 }
57 
59 double CartesianGridUV::offsetV() const {
60  return access()->implementation->offsetV();
61 }
62 
65  return access()->implementation->gridAngle();
66 }
67 
69 void CartesianGridUV::setOffsetU(double offset) const {
70  access()->implementation->setOffsetU(offset);
71 }
72 
74 void CartesianGridUV::setOffsetV(double offset) const {
75  access()->implementation->setOffsetV(offset);
76 }
77 
79 const std::string& CartesianGridUV::fieldNameU() const {
80  return access()->implementation->fieldNameU();
81 }
82 
84 const std::string& CartesianGridUV::fieldNameV() const {
85  return access()->implementation->fieldNameV();
86 }
87 
88 // Returns a vector<double> of the cellDimensions of the given cell ID
89 std::vector<double> CartesianGridUV::cellDimensions(const CellID& id) const {
90  return access()->implementation->cellDimensions(id);
91 }
CartesianGridUV.h
dd4hep::CartesianGridUV::fieldNameU
const std::string & fieldNameU() const
access the field name used for U
Definition: CartesianGridUV.cpp:79
dd4hep::CartesianGridUV::gridSizeU
double gridSizeU() const
access the grid size in U
Definition: CartesianGridUV.cpp:34
dd4hep::CartesianGridUV::gridSizeV
double gridSizeV() const
access the grid size in V
Definition: CartesianGridUV.cpp:39
dd4hep::CartesianGridUV::setOffsetV
void setOffsetV(double offset) const
set the coordinate offset in V
Definition: CartesianGridUV.cpp:74
dd4hep::CartesianGridUV::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: CartesianGridUV.cpp:89
dd4hep::CartesianGridUV::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianGridUV.cpp:21
dd4hep::CartesianGridUV::fieldNameV
const std::string & fieldNameV() const
access the field name used for V
Definition: CartesianGridUV.cpp:84
dd4hep::CartesianGridUV::setGridSizeU
void setGridSizeU(double cellSize) const
set the grid size in U
Definition: CartesianGridUV.cpp:44
dd4hep::CartesianGridUV::offsetV
double offsetV() const
access the coordinate offset in V
Definition: CartesianGridUV.cpp:59
dd4hep::CartesianGridUV::setGridSizeV
void setGridSizeV(double cellSize) const
set the grid size in V
Definition: CartesianGridUV.cpp:49
CartesianGridUV.h
dd4hep::CartesianGridUV::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianGridUV.cpp:26
dd4hep::CartesianGridUV::offsetU
double offsetU() const
access the coordinate offset in U
Definition: CartesianGridUV.cpp:54
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::CartesianGridUV::setOffsetU
void setOffsetU(double offset) const
set the coordinate offset in U
Definition: CartesianGridUV.cpp:69
dd4hep::CartesianGridUV::gridAngle
double gridAngle() const
access the rotation angle
Definition: CartesianGridUV.cpp:64
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51