DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianStripZ.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, David Blyth
11 // \date 2018-02-20
12 // \version 1.0
13 //
14 //==========================================================================
15 #ifndef DD4HEP_CARTESIANSTRIPZ_H
16 #define DD4HEP_CARTESIANSTRIPZ_H 1
17 
18 // Framework include files
19 #include <DD4hep/Segmentations.h>
20 
22 namespace dd4hep {
23 
25 namespace DDSegmentation {
26  class CartesianStripZ;
27 }
28 
31 
33 
54  public:
56  CartesianStripZ() = default;
58  CartesianStripZ(const CartesianStripZ& e) = default;
64  template <typename Q>
67  CartesianStripZ& operator=(const CartesianStripZ& seg) = default;
69  bool operator==(const CartesianStripZ& seg) const { return m_element == seg.m_element; }
70 
72  Position position(const CellID& cellID) const;
74  CellID cellID(const Position& local, const Position& global, const VolumeID& volID) const;
76  double stripSizeZ() const;
78  void setStripSizeZ(double cellSize) const;
80  double offsetZ() const;
82  void setOffsetZ(double offset) const;
84  const std::string& fieldNameZ() const;
93  std::vector<double> cellDimensions(const CellID& cellID) const;
94 };
95 } /* End namespace dd4hep */
96 #endif // DD4HEP_CARTESIANSTRIPZ_H
dd4hep::CartesianStripZ::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianStripZ.cpp:26
Segmentations.h
dd4hep::CartesianStripZ::CartesianStripZ
CartesianStripZ(const Handle< Object > &e)
Copy constructor from handle.
Definition: CartesianStripZ.h:62
dd4hep::Handle::Object
T Object
Extern accessible definition of the contained element type.
Definition: Handle.h:88
dd4hep::CartesianStripZ::CartesianStripZ
CartesianStripZ(const Handle< Q > &e)
Copy constructor from other equivalent handle.
Definition: CartesianStripZ.h:65
dd4hep::CartesianStripZ::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianStripZ.cpp:21
dd4hep::Handle
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition: Handle.h:84
dd4hep::CartesianStripZ::stripSizeZ
double stripSizeZ() const
access the strip size in Z
Definition: CartesianStripZ.cpp:32
dd4hep::CartesianStripZ::operator==
bool operator==(const CartesianStripZ &seg) const
Equality operator.
Definition: CartesianStripZ.h:69
dd4hep::CartesianStripZ::fieldNameZ
const std::string & fieldNameZ() const
access the field name used for Z
Definition: CartesianStripZ.cpp:46
dd4hep::CartesianStripZHandle
Handle< SegmentationWrapper< DDSegmentation::CartesianStripZ > > CartesianStripZHandle
We need some abbreviation to make the code more readable.
Definition: CartesianStripZ.h:30
dd4hep::CartesianStripZ::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: CartesianStripZ.cpp:49
dd4hep::CartesianStripZ::setOffsetZ
void setOffsetZ(double offset) const
set the coordinate offset in Z
Definition: CartesianStripZ.cpp:43
dd4hep::Handle::m_element
T * m_element
Single and only data member: Reference to the actual element.
Definition: Handle.h:93
dd4hep::CartesianStripZ::offsetZ
double offsetZ() const
access the coordinate offset in Z
Definition: CartesianStripZ.cpp:40
dd4hep::CartesianStripZ
Implementation class for the strip Z segmentation.
Definition: CartesianStripZ.h:53
dd4hep::CartesianStripZ::operator=
CartesianStripZ & operator=(const CartesianStripZ &seg)=default
Assignment operator.
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
VolumeID
dd4hep::DDSegmentation::VolumeID VolumeID
Definition: SegmentationDictionary.h:50
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::CartesianStripZ::CartesianStripZ
CartesianStripZ()=default
Default constructor.
dd4hep::CartesianStripZ::setStripSizeZ
void setStripSizeZ(double cellSize) const
set the strip size in Z
Definition: CartesianStripZ.cpp:35
dd4hep::Segmentation
Handle class supporting generic Segmentations of sensitive detectors.
Definition: Segmentations.h:41
dd4hep::CartesianStripZ::CartesianStripZ
CartesianStripZ(const CartesianStripZ &e)=default
Copy constructor.
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51
dd4hep::CartesianStripZ::CartesianStripZ
CartesianStripZ(const Segmentation &e)
Copy Constructor from segmentation base object.
Definition: CartesianStripZ.h:60