#include <SegmentationMultiGridStripXYAlg.h>
Public Member Functions | |
SegmentationMultiGridStripXYAlg (fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing the encoding string. More... | |
SegmentationMultiGridStripXYAlg (const BitFieldCoder *decoder, fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing an existing decoder. More... | |
~SegmentationMultiGridStripXYAlg () | |
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 &cID) const override |
bool | isBarrel (const gar::raw::CellID_t &cID) const override |
double | getStripLength (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const override |
std::pair< TVector3, TVector3 > | getStripEnds (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const override |
std::pair< float, float > | CalculateLightPropagation (const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const override |
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 override |
const double & | gridSizeX () const override |
const double & | gridSizeY () const |
const double & | stripSizeX () const override |
const double & | stripSizeY () const |
const double & | offsetX () const |
const double & | offsetY () const |
const double & | layerDimX () const |
const double & | layerDimY () const |
const std::string & | fieldNameX () const |
const std::string & | fieldNameY () const |
const std::string & | fieldNameLayer () const |
const std::string & | fieldNameSlice () const |
const unsigned int & | nLayers () const override |
void | setGridSizeX (double cellSize) |
void | setGridSizeY (double cellSize) |
void | setStripSizeX (double stripSize) |
void | setStripSizeY (double stripSize) |
void | setOffsetX (double offset) |
void | setOffsetY (double offset) |
void | setFieldNameX (const std::string &fieldName) |
void | setFieldNameY (const std::string &fieldName) |
void | setFieldNameLayer (const std::string &fieldName) |
void | setFieldNameSlice (const std::string &fieldName) |
void | setLayerDimXY (const double &dimX, const double &dimY) const override |
void | setVariables (const double &innerangle, const double &endcapsidelength) 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 unsigned int & | nPlanes () const |
virtual const std::string & | cellEncoding () const |
virtual void | setDecoder (const BitFieldCoder *decoder) |
Protected Member Functions | |
void | PrintParameters () const override |
std::array< std::vector< unsigned int >, 2 > | TokenizeLayerVectors (std::vector< std::string > grid) const |
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 | _layerId |
the field name used for layer More... | |
std::string | _sliceId |
the field name used for slice More... | |
std::string | _encoding |
the encoding string More... | |
double | _stripSizeX |
the strip size in X More... | |
double | _stripSizeY |
the strip size in Y More... | |
double | _frac |
fraction of tiles to remove at the edge More... | |
unsigned int | _nLayers |
number of layers More... | |
unsigned int | _active_slice |
active slice number More... | |
std::vector< std::string > | _gridBarrelLayers |
the layers (start::end) for grid in Barrel More... | |
std::vector< std::string > | _stripBarrelLayers |
the layers (start::end) for strips in Barrel More... | |
std::vector< std::string > | _gridEndcapLayers |
the layers (start::end) for grid in Endcap More... | |
std::vector< std::string > | _stripEndcapLayers |
the layers (start::end) for strips in Endcap More... | |
double | _layer_dim_X |
layer dimension in X More... | |
double | _layer_dim_Y |
layer dimension in Y More... | |
double | _InnerAngle |
Inner Angle. More... | |
double | _EndcapSideLength |
Endcap Side Length. More... | |
bool | _OnSameLayer |
are the strips on the same layer? 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 SegmentationMultiGridStripXYAlg.h.
gar::geo::seg::SegmentationMultiGridStripXYAlg::SegmentationMultiGridStripXYAlg | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor used by derived classes passing the encoding string.
Definition at line 20 of file SegmentationMultiGridStripXYAlg.cxx.
gar::geo::seg::SegmentationMultiGridStripXYAlg::SegmentationMultiGridStripXYAlg | ( | const BitFieldCoder * | decoder, |
fhicl::ParameterSet const & | pset | ||
) |
Default constructor used by derived classes passing an existing decoder.
Definition at line 33 of file SegmentationMultiGridStripXYAlg.cxx.
gar::geo::seg::SegmentationMultiGridStripXYAlg::~SegmentationMultiGridStripXYAlg | ( | ) |
Definition at line 45 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 459 of file SegmentationMultiGridStripXYAlg.cxx.
|
inline |
Definition at line 67 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 69 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 63 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 65 of file SegmentationMultiGridStripXYAlg.h.
|
overridevirtual |
determine the cell ID based on the position
Implements gar::geo::seg::SegmentationAlg.
Definition at line 210 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 92 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 407 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 375 of file SegmentationMultiGridStripXYAlg.cxx.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 47 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 49 of file SegmentationMultiGridStripXYAlg.h.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 86 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 363 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 331 of file SegmentationMultiGridStripXYAlg.cxx.
|
inline |
Definition at line 59 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 61 of file SegmentationMultiGridStripXYAlg.h.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 71 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 55 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 57 of file SegmentationMultiGridStripXYAlg.h.
|
overrideprotectedvirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 264 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 50 of file SegmentationMultiGridStripXYAlg.cxx.
|
overridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 508 of file SegmentationMultiGridStripXYAlg.cxx.
|
inline |
Definition at line 89 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 91 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 85 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 87 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 73 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 75 of file SegmentationMultiGridStripXYAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 93 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 81 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 83 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 77 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 79 of file SegmentationMultiGridStripXYAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 95 of file SegmentationMultiGridStripXYAlg.h.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 51 of file SegmentationMultiGridStripXYAlg.h.
|
inline |
Definition at line 53 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
Definition at line 305 of file SegmentationMultiGridStripXYAlg.cxx.
|
protected |
active slice number
Definition at line 130 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the encoding string
Definition at line 120 of file SegmentationMultiGridStripXYAlg.h.
|
mutableprotected |
Endcap Side Length.
Definition at line 146 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
fraction of tiles to remove at the edge
Definition at line 126 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the layers (start::end) for grid in Barrel
Definition at line 132 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the layers (start::end) for grid in Endcap
Definition at line 136 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the grid size in X
Definition at line 104 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the grid size in Y
Definition at line 108 of file SegmentationMultiGridStripXYAlg.h.
|
mutableprotected |
Inner Angle.
Definition at line 144 of file SegmentationMultiGridStripXYAlg.h.
|
mutableprotected |
layer dimension in X
Definition at line 140 of file SegmentationMultiGridStripXYAlg.h.
|
mutableprotected |
layer dimension in Y
Definition at line 142 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the field name used for layer
Definition at line 116 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
number of layers
Definition at line 128 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the coordinate offset in X
Definition at line 106 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the coordinate offset in Y
Definition at line 110 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
are the strips on the same layer?
Definition at line 148 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the field name used for slice
Definition at line 118 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the layers (start::end) for strips in Barrel
Definition at line 134 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the layers (start::end) for strips in Endcap
Definition at line 138 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the strip size in X
Definition at line 122 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the strip size in Y
Definition at line 124 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the field name used for X
Definition at line 112 of file SegmentationMultiGridStripXYAlg.h.
|
protected |
the field name used for Y
Definition at line 114 of file SegmentationMultiGridStripXYAlg.h.