|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
18 #ifndef DDSEGMENTATION_CARTESIANGRIDXY_H
19 #define DDSEGMENTATION_CARTESIANGRIDXY_H
24 namespace DDSegmentation {
116 #endif // DDSEGMENTATION_CARTESIANGRIDXY_H
double gridSizeX() const
access the grid size in X
double _offsetY
the coordinate offset in Y
virtual ~CartesianGridXY()
destructor
Segmentation base class describing cartesian grid segmentation in the X-Y plane.
std::string _yId
the field name used for Y
Simple container for a physics vector.
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
double offsetX() const
access the coordinate offset in X
double _gridSizeY
the grid size in Y
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
double offsetY() const
access the coordinate offset in Y
void setGridSizeX(double cellSize)
set the grid size in X
double _offsetX
the coordinate offset in X
const std::string & fieldNameX() const
access the field name used for X
void setOffsetY(double offset)
set the coordinate offset in Y
void setGridSizeY(double cellSize)
set the grid size in Y
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
void setOffsetX(double offset)
set the coordinate offset in X
virtual 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,...
virtual VolumeID volumeID(const CellID &cellID) const
Determine the volume ID from the full cell ID by removing all local fields.
void setFieldNameY(const std::string &fieldName)
set the field name used for Y
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
const std::string & fieldNameY() const
access the field name used for Y
Namespace for the AIDA detector description toolkit.
double _gridSizeX
the grid size in X
double gridSizeY() const
access the grid size in Y
void setFieldNameX(const std::string &fieldName)
set the field name used for X
CartesianGridXY(const std::string &cellEncoding="")
Default constructor passing the encoding string.
std::string _xId
the field name used for X
Segmentation base class describing cartesian grid segmentation.