DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
PolarGridRPhi.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/PolarGridRPhi.h>
17 
18 // C/C++ include files
19 
20 using namespace dd4hep;
21 
24  return Position(access()->implementation->position(id));
25 }
26 
29  const Position& global,
30  const VolumeID& volID) const
31 {
32  return access()->implementation->cellID(local, global, volID);
33 }
34 
36 double PolarGridRPhi::gridSizeR() const {
37  return access()->implementation->gridSizeR();
38 }
39 
42  return access()->implementation->gridSizePhi();
43 }
44 
46 double PolarGridRPhi::offsetR() const {
47  return access()->implementation->offsetR();
48 }
49 
51 double PolarGridRPhi::offsetPhi() const {
52  return access()->implementation->offsetPhi();
53 }
54 
56 void PolarGridRPhi::setOffsetR(double offset) const {
57  access()->implementation->setOffsetR(offset);
58 }
59 
61 void PolarGridRPhi::setOffsetPhi(double offset) const {
62  access()->implementation->setOffsetPhi(offset);
63 }
64 
66 void PolarGridRPhi::setGridSizeR(double cellSize) const {
67  access()->implementation->setGridSizeR(cellSize);
68 }
69 
71 void PolarGridRPhi::setGridSizePhi(double cellSize) const {
72  access()->implementation->setGridSizePhi(cellSize);
73 }
74 
76 const std::string& PolarGridRPhi::fieldNameR() const {
77  return access()->implementation->fieldNameR();
78 }
79 
81 const std::string& PolarGridRPhi::fieldNamePhi() const {
82  return access()->implementation->fieldNamePhi();
83 }
84 
94 std::vector<double> PolarGridRPhi::cellDimensions(const CellID& id) const {
95  return access()->implementation->cellDimensions(id);
96 }
dd4hep::PolarGridRPhi::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: PolarGridRPhi.cpp:94
dd4hep::PolarGridRPhi::setOffsetPhi
void setOffsetPhi(double offset) const
set the coordinate offset in Phi
Definition: PolarGridRPhi.cpp:61
dd4hep::PolarGridRPhi::setGridSizeR
void setGridSizeR(double cellSize) const
set the grid size in R
Definition: PolarGridRPhi.cpp:66
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
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::PolarGridRPhi::offsetR
double offsetR() const
access the coordinate offset in R
Definition: PolarGridRPhi.cpp:46
PolarGridRPhi.h
dd4hep::PolarGridRPhi::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: PolarGridRPhi.cpp:28
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::PolarGridRPhi::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: PolarGridRPhi.cpp:23
dd4hep::PolarGridRPhi::gridSizePhi
double gridSizePhi() const
access the grid size in Phi
Definition: PolarGridRPhi.cpp:41
dd4hep::PolarGridRPhi::gridSizeR
double gridSizeR() const
access the grid size in R
Definition: PolarGridRPhi.cpp:36
dd4hep::PolarGridRPhi::setGridSizePhi
void setGridSizePhi(double cellSize) const
set the grid size in Phi
Definition: PolarGridRPhi.cpp:71
PolarGridRPhi.h
dd4hep::PolarGridRPhi::fieldNameR
const std::string & fieldNameR() const
access the field name used for R
Definition: PolarGridRPhi.cpp:76
dd4hep::PolarGridRPhi::fieldNamePhi
const std::string & fieldNamePhi() const
access the field name used for Phi
Definition: PolarGridRPhi.cpp:81
dd4hep::PolarGridRPhi::offsetPhi
double offsetPhi() const
access the coordinate offset in Phi
Definition: PolarGridRPhi.cpp:51
dd4hep::PolarGridRPhi::setOffsetR
void setOffsetR(double offset) const
set the coordinate offset in R
Definition: PolarGridRPhi.cpp:56
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:50