|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
18 #ifndef DDSEGMENTATION_CARTESIANGRIDXYZ_H
19 #define DDSEGMENTATION_CARTESIANGRIDXYZ_H
24 namespace DDSegmentation {
87 #endif // DDSEGMENTATION_CARTESIANGRIDXYZ_H
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
Segmentation base class describing cartesian grid segmentation in the X-Y plane.
Simple container for a physics vector.
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
CartesianGridXYZ(const std::string &cellEncoding)
default constructor using an arbitrary type
void setGridSizeZ(double cellSize)
set the grid size in Z
double _offsetZ
the coordinate offset in Z
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
Segmentation base class describing cartesian grid segmentation in space.
void setOffsetZ(double offset)
set the coordinate offset in Z
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
std::string _zId
the field name used for Z
virtual ~CartesianGridXYZ()
destructor
virtual VolumeID volumeID(const CellID &cellID) const
Determine the volume ID from the full cell ID by removing all local fields.
Namespace for the AIDA detector description toolkit.
double _gridSizeZ
the grid size in Z
const std::string & fieldNameZ() const
access the field name used for Z
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,...
double offsetZ() const
access the coordinate offset in Z
void setFieldNameZ(const std::string &fieldName)
set the field name used for Z
double gridSizeZ() const
access the grid size in Z