1 #ifndef WIRECELL_DIFFUSION 2 #define WIRECELL_DIFFUSION 8 #include <boost/multi_array.hpp> 15 boost::multi_array<double, 2>
array;
20 int nlong,
int ntrans,
double lmin,
double tmin,
double lmax,
double tmax);
30 virtual int lsize()
const;
31 virtual int tsize()
const;
33 virtual double get(
int lind,
int tind)
const;
34 virtual double set(
int lind,
int tind,
double value);
37 virtual double lpos(
int ind,
double offset=0.0)
const;
39 virtual double tpos(
int ind,
double offset=0.0)
const;
virtual int lsize() const
Helper method to give the array size in longitudinal dimension.
std::shared_ptr< const IDepo > pointer
virtual double tpos(int ind, double offset=0.0) const
Diffusion(IDepo::pointer depo, int nlong, int ntrans, double lmin, double tmin, double lmax, double tmax)
double lbin() const
Return bins size in longitudinal direction.
virtual double lpos(int ind, double offset=0.0) const
virtual int tsize() const
Helper method to give the array size in transverse dimension.
virtual IDepo::pointer depo() const
Return the deposition that led to this diffusion.
Diffusion & operator=(const Diffusion &other)
const GenericPointer< typename T::ValueType > T2 value
boost::multi_array< double, 2 > array
double tbin() const
Return bins size in transverse direction.