1 #ifndef SEGMENTATIONGRIDXYALG_H 2 #define SEGMENTATIONGRIDXYALG_H 5 #include "Geometry/GeometryCore.h" 33 gar::raw::CellID_t GetCellID(
const gar::geo::GeometryCore& geo,
const unsigned int& det_id,
const unsigned int& stave,
const unsigned int& module,
const unsigned int& layer,
const unsigned int& slice,
const std::array<double, 3>& localPosition)
const override;
39 const double&
gridSizeX()
const override {
return _gridSizeX; }
41 const double&
gridSizeY()
const {
return _gridSizeY; }
43 const double&
offsetX()
const {
return _offsetX; }
45 const double&
offsetY()
const {
return _offsetY; }
51 const unsigned int&
nLayers()
const override {
return _nLayers; }
65 void setLayerDimXY(
const double& dimX,
const double& dimY)
const override { _layer_dim_X = dimX; _layer_dim_Y = dimY; }
68 void setVariables(
const double& ,
const double & )
const override { }
72 void PrintParameters()
const override;
double _offsetY
the coordinate offset in Y
void setFieldNameX(const std::string &fieldName)
std::string _encoding
the encoding string
Description of geometry of one entire detector.
void setOffsetY(double offset)
double _layer_dim_Y
layer dimension in Y
const unsigned int & nLayers() const override
std::string _xId
the field name used for X
void setOffsetX(double offset)
double _offsetX
the coordinate offset in X
const double & offsetX() const
bool isTile(const gar::raw::CellID_t &) const override
static QFile::DecoderFn decoder
const double & gridSizeX() const override
virtual void reconfigure(fhicl::ParameterSet const &pset)
const std::string & fieldNameX() const
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
double _gridSizeX
the grid size in X
void setGridSizeX(double cellSize)
void setLayerDimXY(const double &dimX, const double &dimY) const override
const std::string & fieldNameY() const
void setFieldNameY(const std::string &fieldName)
void setVariables(const double &, const double &) const override
General GArSoft Utilities.
void setGridSizeY(double cellSize)
double _gridSizeY
the grid size in Y
std::string _yId
the field name used for Y
double _layer_dim_X
layer dimension in X
unsigned int _nLayers
number of layers
const double & gridSizeY() const
LArSoft geometry interface.
const double & offsetY() const