|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
19 #ifndef DDSEGMENTATION_TILEDLAYERSEGMENTATION_H
20 #define DDSEGMENTATION_TILEDLAYERSEGMENTATION_H
29 namespace DDSegmentation {
130 #endif // DDSEGMENTATION_TILEDLAYERSEGMENTATION_H
double gridSizeY() const
access the default grid size in Y
static double calculateOffset(double cellSize, double totalSize)
helper method to calculate offset of bin 0 based on the total size
Simple container for a physics vector.
void setGridSizeX(double cellSize)
set the default grid size in X
double _gridSizeY
default grid size in X
std::string _identifierY
encoding field used for X
double gridSizeX() const
access the default grid size in X
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
virtual ~TiledLayerSegmentation()
destructor
void setIdentifierY(const std::string &fieldName)
set the encoding field name used for Y
Helper class to store x and y dimensions of a layer.
void setGridSizeY(double cellSize)
set the default grid size in Y
double layerGridSizeX(int layerIndex) const
access the actual grid size in X for a given layer
void setLayerDimensions(int layerIndex, double x, double y)
set the dimensions of the given layer
LayerDimensions(double _x=1., double _y=1.)
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
void setIdentifierLayer(const std::string &fieldName)
set the encoding field name used for layer
const std::string & identifierX() const
access the encoding field name used for X
A segmentation class to describe tiled layers.
LayerDimensions layerDimensions(int layerIndex) const
access to the dimensions of the given layer
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
double layerGridSizeY(int layerIndex) const
access the actual grid size in Y for a given layer
std::string _identifierLayer
encoding field used for Y
std::string _identifierX
default grid size in Y
std::vector< double > _layerDimensionsX
list of valid layer identifiers
void setIdentifierX(const std::string &fieldName)
set the encoding field name used for X
virtual VolumeID volumeID(const CellID &cellID) const
Determine the volume ID from the full cell ID by removing all local fields.
static double calculateOptimalCellSize(double nominalCellSize, double totalSize)
list of layer y dimensions
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
const std::string & identifierLayer() const
access the encoding field name used for Y
Namespace for the AIDA detector description toolkit.
std::vector< int > _layerIndices
encoding field used for the layer
Base class for all segmentations.
const std::string & identifierY() const
access the encoding field name used for Y
TiledLayerSegmentation(const std::string &cellEncoding="")
Default constructor passing the encoding string.
std::vector< double > _layerDimensionsY
list of layer x dimensions