|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
28 namespace DDSegmentation {
34 _type =
"TiledLayerGridXY";
35 _description =
"Cartesian segmentation in the local XY-plane using optimal tiling depending on the layer dimensions";
37 printout(INFO,
"TiledLayerGridXY",
" ######### dd4hep::DDSegmentation::TiledLayerGridXY() ");
56 _type =
"TiledLayerGridXY";
57 _description =
"Cartesian segmentation in the local XY-plane using optimal tiling depending on the layer dimensions";
59 printout(INFO,
"TiledLayerGridXY",
" ######### dd4hep::DDSegmentation::TiledLayerGridXY() ");
82 unsigned int _layerIndex;
97 cellPosition.
X = cellPosition.
X/std::fabs(cellPosition.
X)
110 unsigned int _layerIndex;
125 #if __cplusplus >= 201103L
128 std::vector<double> cellDims(2,0.0);
std::string _yId
the field name used for Y
const BitFieldCoder * _decoder
The cell ID encoder and decoder.
Simple container for a physics vector.
double _offsetX
the coordinate offset in X
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
FieldID get(CellID bitfield, size_t idx) const
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
double _gridSizeX
the grid size in X
std::string _xId
the field name used for X
void registerParameter(const std::string &nam, const std::string &desc, TYPE ¶m, const TYPE &defaultVal, UnitType unitTyp=SegmentationParameter::NoUnit, bool isOpt=false)
Add a parameter to this segmentation. Used by derived classes to define their parameters.
TiledLayerGridXY(const std::string &cellEncoding="")
Default constructor passing the encoding string.
std::vector< double > _layerOffsetX
list of layer x offset
virtual ~TiledLayerGridXY()
destructor
std::vector< double > _layerOffsetY
list of layer y offset
std::string _identifierLayer
encoding field used for the layer
void set(CellID &bitfield, size_t idx, FieldID value) const
void registerIdentifier(const std::string &nam, const std::string &desc, std::string &ident, const std::string &defaultVal)
Add a cell identifier to this segmentation. Used by derived classes to define their required identifi...
std::string _description
The description of the segmentation.
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,...
static int positionToBin(double position, double cellSize, double offset=0.)
Helper method to convert a 1D position to a cell ID.
static double binToPosition(FieldID bin, double cellSize, double offset=0.)
Helper method to convert a bin number to a 1D position.
Namespace for the AIDA detector description toolkit.
double _offsetY
the coordinate offset in Y
std::string _type
The segmentation type.
std::vector< double > _fractCellSizeXPerLayer
list of the layer fraction cell size for X
std::vector< double > _layerDimX
list of layer boundary dimension for X
double _gridSizeY
the grid size in Y
Segmentation base class describing cartesian grid segmentation.