|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
19 #ifndef DDSEGMENTATION_MEGATILELAYERGRIDXY_H
20 #define DDSEGMENTATION_MEGATILELAYERGRIDXY_H
28 namespace DDSegmentation {
89 double sizex,
double sizey,
90 double offsetx,
double offsety,
91 unsigned int ncellsx,
unsigned int ncellsy );
112 virtual std::vector<double>
cellDimensions(
const unsigned int ilayer,
const unsigned int iwafer)
const;
133 void getSegInfo(
unsigned int layerIndex,
unsigned int waferIndex)
const;
173 #endif // DDSEGMENTATION_MEGATILELAYERGRIDXY_H
void setSpecialMegaTile(unsigned int layer, unsigned int tile, double sizex, double sizey, double offsetx, double offsety, unsigned int ncellsx, unsigned int ncellsy)
void setMegaTileSizeXY(double x, double y)
Simple container for a physics vector.
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
const std::string & fieldNameY() const
access the field name used for Y
std::vector< int > _nCellsY
std::string _identifierWafer
encoding field used for the wafer
virtual ~MegatileLayerGridXY()
destructor
virtual Vector3D position(const CellID &cellID) const
determine the position based on the cell ID
void setMegaTileOffsetXY(double x, double y)
set the coordinate offset in X, Y
std::string _identifierModule
std::string _identifierLayer
encoding field used for the layer
MegatileLayerGridXY(const std::string &cellEncoding="")
Default constructor passing the encoding string.
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
determine the cell ID based on the position
const std::string & fieldNameX() const
access the field name used for X
a megatile is a rectangule in x-y, split into a grid along x and y, with an exactly integer number of...
virtual const BitFieldCoder * decoder() const
Access the underlying decoder.
std::string _xId
the 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.
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,...
void setFieldNameX(const std::string &fieldName)
set the field name used for X
void getSegInfo(unsigned int layerIndex, unsigned int waferIndex) const
Namespace for the AIDA detector description toolkit.
std::vector< int > _nCellsX
void setFieldNameY(const std::string &fieldName)
set the field name used for Y
std::string _yId
the field name used for Y
void setMegaTileCellsXY(unsigned int layer, int ix, int iy)
std::map< std::pair< unsigned int, unsigned int >, segInfo > specialMegaTiles_layerWafer
Segmentation base class describing cartesian grid segmentation.