DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CylindricalGridPhiZ.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 // \author Markus Frank
11 // \date 2016-10-18
12 // \version 1.0
13 //
14 //==========================================================================
15 #ifndef DD4HEP_CYLINDRICALGRIDPHIZ_H
16 #define DD4HEP_CYLINDRICALGRIDPHIZ_H 1
17 
18 // Framework include files
19 #include <DD4hep/Segmentations.h>
20 
22 namespace dd4hep {
23 
25  namespace DDSegmentation { class CylindricalGridPhiZ; }
26 
29 
31 
52  public:
54  CylindricalGridPhiZ() = default;
62  template <typename Q>
67  bool operator==(const CylindricalGridPhiZ& seg) const
68  { return m_element == seg.m_element; }
69 
71  Position position(const CellID& cellID) const;
73  CellID cellID(const Position& local, const Position& global, const VolumeID& volID) const;
75  double gridSizePhi() const;
77  double gridSizeZ() const;
79  double radius() const;
81  double offsetPhi() const;
83  double offsetZ() const;
84 
86  void setGridSizePhi(double cellSize) const;
88  void setGridSizeZ(double cellSize) const;
90  void setOffsetPhi(double offset) const;
92  void setOffsetZ(double offset) const;
94  void setRadius(double radius);
96  const std::string& fieldNamePhi() const;
98  const std::string& fieldNameZ() const;
108  std::vector<double> cellDimensions(const CellID& cellID) const;
109  };
110 } /* End namespace dd4hep */
111 #endif // DD4HEP_CYLINDRICALGRIDPHIZ_H
dd4hep::CylindricalGridPhiZ::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CylindricalGridPhiZ.cpp:21
Segmentations.h
dd4hep::CylindricalGridPhiZ::setOffsetPhi
void setOffsetPhi(double offset) const
set the coordinate offset in phi
Definition: CylindricalGridPhiZ.cpp:64
dd4hep::Handle::Object
T Object
Extern accessible definition of the contained element type.
Definition: Handle.h:88
dd4hep::CylindricalGridPhiZ::CylindricalGridPhiZ
CylindricalGridPhiZ(const Handle< Object > &e)
Copy constructor from handle.
Definition: CylindricalGridPhiZ.h:60
dd4hep::CylindricalGridPhiZ::operator=
CylindricalGridPhiZ & operator=(const CylindricalGridPhiZ &seg)=default
Assignment operator.
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
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
dd4hep::Handle
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition: Handle.h:84
dd4hep::CylindricalGridPhiZ::CylindricalGridPhiZ
CylindricalGridPhiZ(const Segmentation &e)
Copy Constructor from segmentation base object.
Definition: CylindricalGridPhiZ.h:58
dd4hep::CylindricalGridPhiZ::setRadius
void setRadius(double radius)
set the radius
dd4hep::CylindricalGridPhiZ::setGridSizeZ
void setGridSizeZ(double cellSize) const
set the grid size in Z
Definition: CylindricalGridPhiZ.cpp:49
dd4hep::CylindricalGridPhiZ::radius
double radius() const
access the radius
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
Implementation class for the grid PhiZ segmentation.
Definition: CylindricalGridPhiZ.h:51
dd4hep::Handle::m_element
T * m_element
Single and only data member: Reference to the actual element.
Definition: Handle.h:93
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::CylindricalGridPhiZ::fieldNamePhi
const std::string & fieldNamePhi() const
access the field name used for phi
Definition: CylindricalGridPhiZ.cpp:74
dd4hep::CylindricalGridPhiZ::CylindricalGridPhiZ
CylindricalGridPhiZ(const Handle< Q > &e)
Copy constructor from other polymorph/equivalent handle.
Definition: CylindricalGridPhiZ.h:63
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
dd4hep::CylindricalGridPhiZ::CylindricalGridPhiZ
CylindricalGridPhiZ(const CylindricalGridPhiZ &e)=default
Copy constructor.
dd4hep::Segmentation
Handle class supporting generic Segmentations of sensitive detectors.
Definition: Segmentations.h:41
dd4hep::CylindricalGridPhiZ::CylindricalGridPhiZ
CylindricalGridPhiZ()=default
Default constructor.
dd4hep::CylindricalGridPhiZHandle
Handle< SegmentationWrapper< DDSegmentation::CylindricalGridPhiZ > > CylindricalGridPhiZHandle
We need some abbreviation to make the code more readable.
Definition: CylindricalGridPhiZ.h:28
dd4hep::CylindricalGridPhiZ::operator==
bool operator==(const CylindricalGridPhiZ &seg) const
Equality operator.
Definition: CylindricalGridPhiZ.h:67
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51