44 return bin * cellSize + offset;
49 return int( floor((position + 0.5 * cellSize - offset) / cellSize) );
59 return std::make_pair( TVector3(0, 0, 0), TVector3(0, 0, 0) );
64 return std::make_pair( 0., 0. );
69 return std::array<double, 3>{ {0., 0., 0.} };
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
const BitFieldCoder * _decoder
Description of geometry of one entire detector.
virtual void setDecoder(const BitFieldCoder *decoder)
virtual std::pair< float, float > CalculateLightPropagation(const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const
static int positionToBin(double position, double cellSize, double offset=0)
static double binToPosition(gar::raw::CellID_t bin, double cellSize, double offset=0)
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
virtual std::pair< TVector3, TVector3 > getStripEnds(const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const
General GArSoft Utilities.
QTextStream & bin(QTextStream &s)
SegmentationAlg(fhicl::ParameterSet const &pset)
auto const & get(AssnsNode< L, R, D > const &r)
LArSoft geometry interface.
virtual double getStripLength(const gar::geo::GeometryCore &geo, const std::array< double, 3 > &local, const gar::raw::CellID_t &cID) const
virtual ~SegmentationAlg()