DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
GridRPhiEta.h
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 //==========================================================================
11 
12 #ifndef DDSEGMENTATION_GRIDRPHIETA_H
13 #define DDSEGMENTATION_GRIDRPHIETA_H
14 
15 // Framework includes
17 
27 namespace dd4hep {
28  namespace DDSegmentation {
29 
31  class GridRPhiEta: public GridPhiEta {
32  public:
34  GridRPhiEta(const std::string& aCellEncoding);
35 
38 
40  virtual ~GridRPhiEta() = default;
41 
46  virtual Vector3D position(const CellID& aCellID) const;
53  virtual CellID cellID(const Vector3D& aLocalPosition, const Vector3D& aGlobalPosition, const VolumeID& aVolumeID) const;
58  double r(const CellID& aCellID) const;
62  inline double gridSizeR() const {
63  return m_gridSizeR;
64  }
68  inline double offsetR() const {
69  return m_offsetR;
70  }
74  inline const std::string& fieldNameR() const {
75  return m_rID;
76  }
80  void setGridSizeR(double aCellSize) {
81  m_gridSizeR = aCellSize;
82  }
86  inline void setOffsetR(double offset) {
87  m_offsetR = offset;
88  }
92  inline void setFieldNameR(const std::string& fieldName) {
93  m_rID = fieldName;
94  }
95 
96  private:
97 
99  double m_gridSizeR;
101  double m_offsetR;
103  std::string m_rID;
104 
105  };
106  }
107 }
108 #endif // DDSEGMENTATION_GRIDRPHIETA_H
dd4hep::DDSegmentation::GridRPhiEta::m_offsetR
double m_offsetR
the coordinate offset in r
Definition: GridRPhiEta.h:101
dd4hep::DDSegmentation::VolumeID
uint64_t VolumeID
Definition: BitFieldCoder.h:27
dd4hep::DDSegmentation::GridRPhiEta::fieldNameR
const std::string & fieldNameR() const
Definition: GridRPhiEta.h:74
dd4hep::DDSegmentation::Vector3D
Simple container for a physics vector.
Definition: Segmentation.h:48
dd4hep::DDSegmentation::BitFieldCoder
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
Definition: BitFieldCoder.h:114
dd4hep::DDSegmentation::GridRPhiEta::r
double r(const CellID &aCellID) const
Definition: GridRPhiEta.cpp:56
dd4hep::DDSegmentation::GridRPhiEta::setOffsetR
void setOffsetR(double offset)
Definition: GridRPhiEta.h:86
GridPhiEta.h
dd4hep::DDSegmentation::GridRPhiEta::gridSizeR
double gridSizeR() const
Definition: GridRPhiEta.h:62
dd4hep::DDSegmentation::GridRPhiEta::offsetR
double offsetR() const
Definition: GridRPhiEta.h:68
dd4hep::DDSegmentation::Segmentation::decoder
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
Definition: Segmentation.h:112
dd4hep::DDSegmentation::GridRPhiEta::position
virtual Vector3D position(const CellID &aCellID) const
Definition: GridRPhiEta.cpp:41
dd4hep::DDSegmentation::CellID
uint64_t CellID
Definition: BitFieldCoder.h:26
dd4hep::DDSegmentation::GridRPhiEta::setFieldNameR
void setFieldNameR(const std::string &fieldName)
Definition: GridRPhiEta.h:92
dd4hep::DDSegmentation::GridRPhiEta::cellID
virtual CellID cellID(const Vector3D &aLocalPosition, const Vector3D &aGlobalPosition, const VolumeID &aVolumeID) const
Definition: GridRPhiEta.cpp:45
dd4hep::DDSegmentation::GridRPhiEta::setGridSizeR
void setGridSizeR(double aCellSize)
Definition: GridRPhiEta.h:80
dd4hep::DDSegmentation::GridRPhiEta::GridRPhiEta
GridRPhiEta(const std::string &aCellEncoding)
default constructor using an arbitrary type
Definition: GridRPhiEta.cpp:17
dd4hep::DDSegmentation::GridRPhiEta::m_gridSizeR
double m_gridSizeR
the grid size in r
Definition: GridRPhiEta.h:99
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::DDSegmentation::GridRPhiEta
Segmentation class describing segmentation in R-Phi-Eta.
Definition: GridRPhiEta.h:31
dd4hep::DDSegmentation::GridPhiEta
Segmentation class describing segmentation in Phi-Eta.
Definition: GridPhiEta.h:30
dd4hep::DDSegmentation::GridRPhiEta::~GridRPhiEta
virtual ~GridRPhiEta()=default
destructor
dd4hep::DDSegmentation::GridRPhiEta::m_rID
std::string m_rID
the field name used for r
Definition: GridRPhiEta.h:103