#include <SegmentationGridXYAlg.h>
Public Member Functions | |
SegmentationGridXYAlg (fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing the encoding string. More... | |
SegmentationGridXYAlg (const BitFieldCoder *decoder, fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing an existing decoder. More... | |
~SegmentationGridXYAlg () | |
void | reconfigure (fhicl::ParameterSet const &pset) override |
void | Initialize (const gar::geo::GeometryCore &geo) override |
std::array< double, 3 > | GetPosition (const gar::geo::GeometryCore &geo, const gar::raw::CellID_t &cID) const override |
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 More... | |
bool | isTile (const gar::raw::CellID_t &) const override |
bool | isBarrel (const gar::raw::CellID_t &cID) const override |
const double & | gridSizeX () const override |
const double & | gridSizeY () const |
const double & | offsetX () const |
const double & | offsetY () const |
const std::string & | fieldNameX () const |
const std::string & | fieldNameY () const |
const unsigned int & | nLayers () const override |
void | setGridSizeX (double cellSize) |
void | setGridSizeY (double cellSize) |
void | setOffsetX (double offset) |
void | setOffsetY (double offset) |
void | setFieldNameX (const std::string &fieldName) |
void | setFieldNameY (const std::string &fieldName) |
void | setLayerDimXY (const double &dimX, const double &dimY) const override |
void | setVariables (const double &, const double &) const override |
Public Member Functions inherited from gar::geo::seg::SegmentationAlg | |
virtual | ~SegmentationAlg () |
virtual const std::string & | name () const |
virtual void | setName (const std::string &value) |
virtual const std::string & | type () const |
virtual const std::string & | description () const |
virtual const BitFieldCoder * | decoder () const |
virtual const double & | stripSizeX () const |
virtual const unsigned int & | nPlanes () const |
virtual const std::string & | cellEncoding () const |
virtual void | setDecoder (const BitFieldCoder *decoder) |
virtual double | getStripLength (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const |
virtual std::pair< TVector3, TVector3 > | getStripEnds (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const |
virtual std::pair< float, float > | CalculateLightPropagation (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const |
virtual std::array< double, 3 > | ReconstructStripHitPosition (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const float &xlocal, const gar::raw::CellID_t &cID) const |
Protected Member Functions | |
void | PrintParameters () const override |
Protected Member Functions inherited from gar::geo::seg::SegmentationAlg | |
SegmentationAlg (fhicl::ParameterSet const &pset) | |
SegmentationAlg (const BitFieldCoder *decoder, fhicl::ParameterSet const &pset) | |
Protected Attributes | |
double | _gridSizeX |
the grid size in X More... | |
double | _offsetX |
the coordinate offset in X More... | |
double | _gridSizeY |
the grid size in Y More... | |
double | _offsetY |
the coordinate offset in Y More... | |
std::string | _xId |
the field name used for X More... | |
std::string | _yId |
the field name used for Y More... | |
std::string | _encoding |
the encoding string More... | |
unsigned int | _nLayers |
number of layers More... | |
double | _layer_dim_X |
layer dimension in X More... | |
double | _layer_dim_Y |
layer dimension in Y More... | |
Protected Attributes inherited from gar::geo::seg::SegmentationAlg | |
std::string | _name |
std::string | _type |
std::string | _description |
std::string | _encoding |
double | _gridSizeX |
double | _stripSizeX |
unsigned int | _nLayers |
unsigned int | _nPlanes |
const BitFieldCoder * | _decoder = 0 |
Additional Inherited Members | |
Static Protected Member Functions inherited from gar::geo::seg::SegmentationAlg | |
static double | binToPosition (gar::raw::CellID_t bin, double cellSize, double offset=0) |
static int | positionToBin (double position, double cellSize, double offset=0) |
Definition at line 18 of file SegmentationGridXYAlg.h.
gar::geo::seg::SegmentationGridXYAlg::SegmentationGridXYAlg | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor used by derived classes passing the encoding string.
Definition at line 16 of file SegmentationGridXYAlg.cxx.
gar::geo::seg::SegmentationGridXYAlg::SegmentationGridXYAlg | ( | const BitFieldCoder * | decoder, |
fhicl::ParameterSet const & | pset | ||
) |
Default constructor used by derived classes passing an existing decoder.
Definition at line 29 of file SegmentationGridXYAlg.cxx.
gar::geo::seg::SegmentationGridXYAlg::~SegmentationGridXYAlg | ( | ) |
Definition at line 41 of file SegmentationGridXYAlg.cxx.
|
inline |
Definition at line 47 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 49 of file SegmentationGridXYAlg.h.
|
overridevirtual |
determine the cell ID based on the position
Implements gar::geo::seg::SegmentationAlg.
Definition at line 84 of file SegmentationGridXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 72 of file SegmentationGridXYAlg.cxx.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 39 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 41 of file SegmentationGridXYAlg.h.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 66 of file SegmentationGridXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 101 of file SegmentationGridXYAlg.cxx.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 35 of file SegmentationGridXYAlg.h.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 51 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 43 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 45 of file SegmentationGridXYAlg.h.
|
overrideprotectedvirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 113 of file SegmentationGridXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 46 of file SegmentationGridXYAlg.cxx.
|
inline |
Definition at line 61 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 63 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 53 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 55 of file SegmentationGridXYAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 65 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 57 of file SegmentationGridXYAlg.h.
|
inline |
Definition at line 59 of file SegmentationGridXYAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 68 of file SegmentationGridXYAlg.h.
|
protected |
the encoding string
Definition at line 87 of file SegmentationGridXYAlg.h.
|
protected |
the grid size in X
Definition at line 75 of file SegmentationGridXYAlg.h.
|
protected |
the grid size in Y
Definition at line 79 of file SegmentationGridXYAlg.h.
|
mutableprotected |
layer dimension in X
Definition at line 91 of file SegmentationGridXYAlg.h.
|
mutableprotected |
layer dimension in Y
Definition at line 93 of file SegmentationGridXYAlg.h.
|
protected |
number of layers
Definition at line 89 of file SegmentationGridXYAlg.h.
|
protected |
the coordinate offset in X
Definition at line 77 of file SegmentationGridXYAlg.h.
|
protected |
the coordinate offset in Y
Definition at line 81 of file SegmentationGridXYAlg.h.
|
protected |
the field name used for X
Definition at line 83 of file SegmentationGridXYAlg.h.
|
protected |
the field name used for Y
Definition at line 85 of file SegmentationGridXYAlg.h.