DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
PolarGridRPhi2.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/PolarGridRPhi2.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 std::vector<double> PolarGridRPhi2::gridRValues() const {
37  return access()->implementation->gridRValues();
38 }
39 
41 std::vector<double> PolarGridRPhi2::gridPhiValues() const {
42  return access()->implementation->gridPhiValues();
43 }
45 void PolarGridRPhi2::setGridSizeR(double cellSize, int rID) const {
46  access()->implementation->setGridRValues(cellSize,rID);
47 }
48 
50 void PolarGridRPhi2::setGridSizePhi(double cellSize, int phiID) const {
51  access()->implementation->setGridSizePhi(cellSize,phiID);
52 }
53 
55 void PolarGridRPhi2::setGridRValues(std::vector<double> const& rValues) const {
56  access()->implementation->setGridRValues(rValues);
57 }
58 
60 void PolarGridRPhi2::setGridPhiValues(std::vector<double> const& phiValues) const {
61  access()->implementation->setGridPhiValues(phiValues);
62 }
63 
65 double PolarGridRPhi2::offsetR() const {
66  return access()->implementation->offsetR();
67 }
68 
70 double PolarGridRPhi2::offsetPhi() const {
71  return access()->implementation->offsetPhi();
72 }
73 
75 void PolarGridRPhi2::setOffsetR(double offset) const {
76  access()->implementation->setOffsetR(offset);
77 }
78 
80 void PolarGridRPhi2::setOffsetPhi(double offset) const {
81  access()->implementation->setOffsetPhi(offset);
82 }
83 
85 const std::string& PolarGridRPhi2::fieldNameR() const {
86  return access()->implementation->fieldNameR();
87 }
88 
90 const std::string& PolarGridRPhi2::fieldNamePhi() const {
91  return access()->implementation->fieldNamePhi();
92 }
93 
103 std::vector<double> PolarGridRPhi2::cellDimensions(const CellID& id) const {
104  return access()->implementation->cellDimensions(id);
105 }
dd4hep::PolarGridRPhi2::gridRValues
std::vector< double > gridRValues() const
access the grid size in R
Definition: PolarGridRPhi2.cpp:36
dd4hep::PolarGridRPhi2::setGridSizeR
void setGridSizeR(double cellSize, int rID) const
set the grid Boundaries in R
Definition: PolarGridRPhi2.cpp:45
dd4hep::PolarGridRPhi2::setGridPhiValues
void setGridPhiValues(std::vector< double > const &phiValues) const
set the grid size in Phi for each bin in R
Definition: PolarGridRPhi2.cpp:60
PolarGridRPhi2.h
dd4hep::PolarGridRPhi2::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: PolarGridRPhi2.cpp:28
dd4hep::PolarGridRPhi2::fieldNamePhi
const std::string & fieldNamePhi() const
access the field name used for Phi
Definition: PolarGridRPhi2.cpp:90
dd4hep::PolarGridRPhi2::setGridSizePhi
void setGridSizePhi(double cellSize, int phiID) const
set the grid size in Phi
Definition: PolarGridRPhi2.cpp:50
dd4hep::PolarGridRPhi2::offsetPhi
double offsetPhi() const
access the coordinate offset in Phi
Definition: PolarGridRPhi2.cpp:70
dd4hep::PolarGridRPhi2::gridPhiValues
std::vector< double > gridPhiValues() const
access the grid size in Phi
Definition: PolarGridRPhi2.cpp:41
dd4hep::PolarGridRPhi2::fieldNameR
const std::string & fieldNameR() const
access the field name used for R
Definition: PolarGridRPhi2.cpp:85
dd4hep::PolarGridRPhi2::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: PolarGridRPhi2.cpp:103
dd4hep::PolarGridRPhi2::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: PolarGridRPhi2.cpp:23
dd4hep::PolarGridRPhi2::offsetR
double offsetR() const
access the coordinate offset in R
Definition: PolarGridRPhi2.cpp:65
dd4hep::PolarGridRPhi2::setOffsetPhi
void setOffsetPhi(double offset) const
set the coordinate offset in Phi
Definition: PolarGridRPhi2.cpp:80
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
dd4hep::PolarGridRPhi2::setOffsetR
void setOffsetR(double offset) const
set the coordinate offset in R
Definition: PolarGridRPhi2.cpp:75
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
PolarGridRPhi2.h
dd4hep::PolarGridRPhi2::setGridRValues
void setGridRValues(std::vector< double > const &rValues) const
set the grid boundaries for R
Definition: PolarGridRPhi2.cpp:55
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51