20 _description =
"Cartesian segmentation in the local XY-plane";
22 std::cout <<
" ######### gar::geo::seg::SegmentationGridXYAlg() " <<
std::endl ;
33 _description =
"Cartesian segmentation in the local XY-plane";
35 std::cout <<
" ######### gar::geo::seg::SegmentationGridXYAlg() " <<
std::endl ;
74 std::array<double, 3> cellPosition;
107 if( det_id == 2 && (module == 0 || module == 6) ) isBarrel =
false;
const BitFieldCoder * _decoder
double _offsetY
the coordinate offset in Y
void set(long64 &bitfield, size_t index, ulong64 value) const
std::string _encoding
the encoding string
void reconfigure(fhicl::ParameterSet const &pset) override
Description of geometry of one entire detector.
std::string _xId
the field name used for X
static int positionToBin(double position, double cellSize, double offset=0)
double _offsetX
the coordinate offset in X
static double binToPosition(gar::raw::CellID_t bin, double cellSize, double offset=0)
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
determine the cell ID based on the position
std::array< double, 3 > GetPosition(const gar::geo::GeometryCore &geo, const gar::raw::CellID_t &cID) const override
void Initialize(const gar::geo::GeometryCore &geo) override
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
double _gridSizeX
the grid size in X
T get(std::string const &key) const
General GArSoft Utilities.
long64 get(long64 bitfield, size_t index) const
double _gridSizeY
the grid size in Y
void PrintParameters() const override
void decode(std::any const &a, Hep2Vector &result)
std::string _yId
the field name used for Y
SegmentationGridXYAlg(fhicl::ParameterSet const &pset)
Default constructor used by derived classes passing the encoding string.
unsigned int _nLayers
number of layers
LArSoft geometry interface.
QTextStream & endl(QTextStream &s)
bool isBarrel(const gar::raw::CellID_t &cID) const override