DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianGridYZ.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/CartesianGridYZ.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->gridSizeY();
36 }
37 
40  return access()->implementation->gridSizeZ();
41 }
42 
44 void CartesianGridYZ::setGridSizeY(double cellSize) const {
45  access()->implementation->setGridSizeY(cellSize);
46 }
47 
49 void CartesianGridYZ::setGridSizeZ(double cellSize) const {
50  access()->implementation->setGridSizeZ(cellSize);
51 }
52 
54 double CartesianGridYZ::offsetY() const {
55  return access()->implementation->offsetY();
56 }
57 
59 double CartesianGridYZ::offsetZ() const {
60  return access()->implementation->offsetZ();
61 }
62 
64 void CartesianGridYZ::setOffsetY(double offset) const {
65  access()->implementation->setOffsetY(offset);
66 }
67 
69 void CartesianGridYZ::setOffsetZ(double offset) const {
70  access()->implementation->setOffsetZ(offset);
71 }
72 
74 const std::string& CartesianGridYZ::fieldNameY() const {
75  return access()->implementation->fieldNameY();
76 }
77 
79 const std::string& CartesianGridYZ::fieldNameZ() const {
80  return access()->implementation->fieldNameZ();
81 }
82 
83 // Returns a vector<double> of the cellDimensions of the given cell ID
84 std::vector<double> CartesianGridYZ::cellDimensions(const CellID& id) const {
85  return access()->implementation->cellDimensions(id);
86 }
CartesianGridYZ.h
dd4hep::CartesianGridYZ::setGridSizeY
void setGridSizeY(double cellSize) const
set the grid size in Y
Definition: CartesianGridYZ.cpp:44
dd4hep::CartesianGridYZ::setGridSizeZ
void setGridSizeZ(double cellSize) const
set the grid size in Z
Definition: CartesianGridYZ.cpp:49
dd4hep::CartesianGridYZ::offsetY
double offsetY() const
access the coordinate offset in Y
Definition: CartesianGridYZ.cpp:54
dd4hep::CartesianGridYZ::gridSizeZ
double gridSizeZ() const
access the grid size in Z
Definition: CartesianGridYZ.cpp:39
CartesianGridYZ.h
dd4hep::CartesianGridYZ::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: CartesianGridYZ.cpp:84
dd4hep::CartesianGridYZ::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianGridYZ.cpp:21
dd4hep::CartesianGridYZ::setOffsetY
void setOffsetY(double offset) const
set the coordinate offset in Y
Definition: CartesianGridYZ.cpp:64
dd4hep::CartesianGridYZ::offsetZ
double offsetZ() const
access the coordinate offset in Z
Definition: CartesianGridYZ.cpp:59
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
dd4hep::CartesianGridYZ::gridSizeY
double gridSizeY() const
access the grid size in Y
Definition: CartesianGridYZ.cpp:34
dd4hep::CartesianGridYZ::fieldNameZ
const std::string & fieldNameZ() const
access the field name used for Z
Definition: CartesianGridYZ.cpp:79
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::CartesianGridYZ::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianGridYZ.cpp:26
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::CartesianGridYZ::setOffsetZ
void setOffsetZ(double offset) const
set the coordinate offset in Z
Definition: CartesianGridYZ.cpp:69
dd4hep::CartesianGridYZ::fieldNameY
const std::string & fieldNameY() const
access the field name used for Y
Definition: CartesianGridYZ.cpp:74
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:50