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