DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CartesianStripY.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_CARTESIANSTRIPY_H
16 #define DD4HEP_CARTESIANSTRIPY_H 1
17 
18 // Framework include files
19 #include <DD4hep/Segmentations.h>
20 
22 namespace dd4hep {
24 namespace DDSegmentation {
25 class CartesianStripY;
26 }
27 
30 
32 
53  public:
55  CartesianStripY() = default;
57  CartesianStripY(const CartesianStripY& e) = default;
63  template <typename Q>
66  CartesianStripY& operator=(const CartesianStripY& seg) = default;
68  bool operator==(const CartesianStripY& seg) const { 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 stripSizeY() const;
77  void setStripSizeY(double cellSize) const;
79  double offsetY() const;
81  void setOffsetY(double offset) const;
83  const std::string& fieldNameY() const;
92  std::vector<double> cellDimensions(const CellID& cellID) const;
93 };
94 } /* End namespace dd4hep */
95 #endif // DD4HEP_CARTESIANSTRIPY_H
dd4hep::CartesianStripY::setStripSizeY
void setStripSizeY(double cellSize) const
set the strip size in Y
Definition: CartesianStripY.cpp:35
Segmentations.h
dd4hep::Handle::Object
T Object
Extern accessible definition of the contained element type.
Definition: Handle.h:88
dd4hep::CartesianStripY::operator==
bool operator==(const CartesianStripY &seg) const
Equality operator.
Definition: CartesianStripY.h:68
dd4hep::CartesianStripY::CartesianStripY
CartesianStripY()=default
Default constructor.
dd4hep::CartesianStripY::position
Position position(const CellID &cellID) const
determine the position based on the cell ID
Definition: CartesianStripY.cpp:21
dd4hep::Handle
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Definition: Handle.h:84
dd4hep::CartesianStripY::CartesianStripY
CartesianStripY(const CartesianStripY &e)=default
Copy constructor.
dd4hep::CartesianStripY::CartesianStripY
CartesianStripY(const Segmentation &e)
Copy Constructor from segmentation base object.
Definition: CartesianStripY.h:59
dd4hep::CartesianStripY::stripSizeY
double stripSizeY() const
access the strip size in Y
Definition: CartesianStripY.cpp:32
dd4hep::CartesianStripY::fieldNameY
const std::string & fieldNameY() const
access the field name used for Y
Definition: CartesianStripY.cpp:46
dd4hep::CartesianStripY::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: CartesianStripY.cpp:49
dd4hep::CartesianStripY
Implementation class for the strip Y segmentation.
Definition: CartesianStripY.h:52
dd4hep::CartesianStripY::setOffsetY
void setOffsetY(double offset) const
set the coordinate offset in Y
Definition: CartesianStripY.cpp:43
dd4hep::CartesianStripY::operator=
CartesianStripY & operator=(const CartesianStripY &seg)=default
Assignment operator.
dd4hep::CartesianStripY::CartesianStripY
CartesianStripY(const Handle< Q > &e)
Copy constructor from other equivalent handle.
Definition: CartesianStripY.h:64
dd4hep::Handle::m_element
T * m_element
Single and only data member: Reference to the actual element.
Definition: Handle.h:93
dd4hep::CartesianStripY::cellID
CellID cellID(const Position &local, const Position &global, const VolumeID &volID) const
determine the cell ID based on the position
Definition: CartesianStripY.cpp:26
dd4hep::Position
ROOT::Math::XYZVector Position
Definition: Objects.h:81
VolumeID
dd4hep::DDSegmentation::VolumeID VolumeID
Definition: SegmentationDictionary.h:50
dd4hep::CartesianStripYHandle
Handle< SegmentationWrapper< DDSegmentation::CartesianStripY > > CartesianStripYHandle
We need some abbreviation to make the code more readable.
Definition: CartesianStripY.h:29
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::Segmentation
Handle class supporting generic Segmentations of sensitive detectors.
Definition: Segmentations.h:41
dd4hep::CartesianStripY::offsetY
double offsetY() const
access the coordinate offset in Y
Definition: CartesianStripY.cpp:40
dd4hep::CartesianStripY::CartesianStripY
CartesianStripY(const Handle< Object > &e)
Copy constructor from handle.
Definition: CartesianStripY.h:61
CellID
dd4hep::DDSegmentation::CellID CellID
Definition: SegmentationDictionary.h:51