#include <MinervaSegmentationAlg.h>
Public Member Functions | |
MinervaSegmentationAlg (fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing the encoding string. More... | |
MinervaSegmentationAlg (const BitFieldCoder *decoder, fhicl::ParameterSet const &pset) | |
Default constructor used by derived classes passing an existing decoder. More... | |
~MinervaSegmentationAlg () | |
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... | |
const double & | stripSizeX () const override |
const double & | stripSizeY () const |
const double & | layerDimX () const |
const double & | layerDimY () const |
const std::string & | fieldNameX () const |
const std::string & | fieldNameY () const |
const std::string & | fieldNameZ () const |
const std::string & | fieldNameLayer () const |
const std::string & | fieldNameSlice () const |
const unsigned int & | nPlanes () const override |
void | setStripSizeX (double stripSize) |
void | setStripSizeY (double stripSize) |
void | setFieldNameX (const std::string &fieldName) |
void | setFieldNameY (const std::string &fieldName) |
void | setFieldNameLayer (const std::string &fieldName) |
void | setFieldNameSlice (const std::string &fieldName) |
bool | isTile (const gar::raw::CellID_t &) const override |
bool | isBarrel (const gar::raw::CellID_t &) const override |
void | setLayerDimXY (const double &dimX, const double &dimY) const override |
void | setVariables (const double &, const double &) const override |
void | AddHitsMinerva (std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > &m_Deposits, std::vector< gar::sdp::CaloDeposit > &fDeposits) const |
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 & | gridSizeX () const |
virtual const unsigned int & | nLayers () 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 | |
gar::raw::CellID_t | GetComplementaryCellID (gar::raw::CellID_t cellID, unsigned int comp) const |
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 | |
std::string | _xId |
the field name used for X More... | |
std::string | _yId |
the field name used for Y More... | |
std::string | _zId |
the field name used for Z 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 | _nPlanes |
number of planes 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 21 of file MinervaSegmentationAlg.h.
gar::geo::seg::MinervaSegmentationAlg::MinervaSegmentationAlg | ( | fhicl::ParameterSet const & | pset | ) |
Default constructor used by derived classes passing the encoding string.
Definition at line 17 of file MinervaSegmentationAlg.cxx.
gar::geo::seg::MinervaSegmentationAlg::MinervaSegmentationAlg | ( | const BitFieldCoder * | decoder, |
fhicl::ParameterSet const & | pset | ||
) |
Default constructor used by derived classes passing an existing decoder.
Definition at line 30 of file MinervaSegmentationAlg.cxx.
gar::geo::seg::MinervaSegmentationAlg::~MinervaSegmentationAlg | ( | ) |
Definition at line 42 of file MinervaSegmentationAlg.cxx.
void gar::geo::seg::MinervaSegmentationAlg::AddHitsMinerva | ( | std::map< gar::raw::CellID_t, std::vector< gar::sdp::CaloDeposit > > & | m_Deposits, |
std::vector< gar::sdp::CaloDeposit > & | fDeposits | ||
) | const |
Definition at line 303 of file MinervaSegmentationAlg.cxx.
|
inline |
Definition at line 52 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 54 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 46 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 48 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 50 of file MinervaSegmentationAlg.h.
|
overridevirtual |
determine the cell ID based on the position
Implements gar::geo::seg::SegmentationAlg.
Definition at line 87 of file MinervaSegmentationAlg.cxx.
|
protected |
Definition at line 240 of file MinervaSegmentationAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 74 of file MinervaSegmentationAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 68 of file MinervaSegmentationAlg.cxx.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 72 of file MinervaSegmentationAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 70 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 42 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 44 of file MinervaSegmentationAlg.h.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 56 of file MinervaSegmentationAlg.h.
|
overrideprotectedvirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 465 of file MinervaSegmentationAlg.cxx.
|
overridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 47 of file MinervaSegmentationAlg.cxx.
|
inline |
Definition at line 66 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 68 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 62 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 64 of file MinervaSegmentationAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 74 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 58 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 60 of file MinervaSegmentationAlg.h.
|
inlineoverridevirtual |
Implements gar::geo::seg::SegmentationAlg.
Definition at line 76 of file MinervaSegmentationAlg.h.
|
inlineoverridevirtual |
Reimplemented from gar::geo::seg::SegmentationAlg.
Definition at line 38 of file MinervaSegmentationAlg.h.
|
inline |
Definition at line 40 of file MinervaSegmentationAlg.h.
|
protected |
the encoding string
Definition at line 97 of file MinervaSegmentationAlg.h.
|
protected |
fraction of tiles to remove at the edge
Definition at line 103 of file MinervaSegmentationAlg.h.
|
mutableprotected |
layer dimension in X
Definition at line 107 of file MinervaSegmentationAlg.h.
|
mutableprotected |
layer dimension in Y
Definition at line 109 of file MinervaSegmentationAlg.h.
|
protected |
the field name used for layer
Definition at line 93 of file MinervaSegmentationAlg.h.
|
protected |
number of planes
Definition at line 105 of file MinervaSegmentationAlg.h.
|
protected |
the field name used for slice
Definition at line 95 of file MinervaSegmentationAlg.h.
|
protected |
the strip size in X
Definition at line 99 of file MinervaSegmentationAlg.h.
|
protected |
the strip size in Y
Definition at line 101 of file MinervaSegmentationAlg.h.
|
protected |
the field name used for X
Definition at line 87 of file MinervaSegmentationAlg.h.
|
protected |
the field name used for Y
Definition at line 89 of file MinervaSegmentationAlg.h.
|
protected |
the field name used for Z
Definition at line 91 of file MinervaSegmentationAlg.h.