|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
18 #ifndef DDSEGMENTATION_CARTESIANGRIDXYSTAGGERED_H
19 #define DDSEGMENTATION_CARTESIANGRIDXYSTAGGERED_H
24 namespace DDSegmentation {
146 #endif // DDSEGMENTATION_CARTESIANGRIDXYSTAGGERED_H
const std::string & staggerKeyword() const
access the keyword used to determine which volumes to stagger
void setFieldNameY(const std::string &fieldName)
set the field name used for Y
double _gridSizeY
the grid size in Y
void setFieldNameX(const std::string &fieldName)
set the field name used for X
Simple container for a physics vector.
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
double gridSizeX() const
access the grid size in X
std::string _staggerKeyword
the keyword used to determine which volumes to stagger
double offsetY() const
access the coordinate offset in Y
int staggerX() const
access the staggering option in X
double offsetX() const
access the coordinate offset in X
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
std::string _yId
the field name used for Y
double _gridSizeX
the grid size in X
void setStaggerY(int staggerY)
set the staggering option in Y
void setStaggerKeyword(const std::string &staggerKeyword)
set the keyword used to determine which volumes to stagger
int _staggerX
staggering option in X. 0 = no staggering. 1 = stagger by _gridSizeX/2.0 in odd layers
void setGridSizeX(double cellSize)
set the grid size in X
void setGridSizeY(double cellSize)
set the grid size in Y
const std::string & fieldNameY() const
access the field name used for Y
std::string _xId
the field name used for X
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
double gridSizeY() const
access the grid size in Y
int _staggerY
staggering option in Y. 0 = no staggering. 1 = stagger by _gridSizeY/2.0 in odd layers
const std::string & fieldNameX() const
access the field name used for 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.
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
void setOffsetY(double offset)
set the coordinate offset in Y
void setStaggerX(int staggerX)
set the staggering option in X
virtual ~CartesianGridXYStaggered()
destructor
CartesianGridXYStaggered(const std::string &cellEncoding="")
Default constructor passing the encoding string.
Namespace for the AIDA detector description toolkit.
Segmentation base class describing cartesian grid segmentation in the X-Y plane.
int staggerY() const
access the staggering option in Y
void setOffsetX(double offset)
set the coordinate offset in X
double _offsetY
the coordinate offset in Y
double _offsetX
the coordinate offset in X
Segmentation base class describing cartesian grid segmentation.