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