1 #ifndef WIRECELL_DIFFUSER 2 #define WIRECELL_DIFFUSER 84 double sigma_l,
double sigma_t,
91 bounds_type
bounds(
double mean,
double sigma,
double binsize,
double origin=0.0);
97 std::vector<double>
oned(
double mean,
double sigma,
virtual bool operator()(const input_pointer &depo, output_queue &outq)
The calling signature:
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
std::shared_ptr< const IDiffusion > pointer
void msg(const char *fmt,...)
D3Vector< double > Point
A 3D Cartesian point in double precision.
void dump(const std::string &msg)
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
IDiffusion::pointer diffuse(double mean_l, double mean_t, double sigma_l, double sigma_t, double weight=1.0, IDepo::pointer depo=nullptr)
static const double microsecond
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::deque< output_pointer > output_queue
std::vector< double > oned(double mean, double sigma, double binsize, const Diffuser::bounds_type &bounds)
static const double centimeter2
Diffuser(const Ray &pitch=Ray(Point(0.0, 0.0, 0.0), Point(0.0, 0.0, 5 *units::millimeter)), double binsize_l=2.0 *units::millimeter, double time_offset=0.0 *units::microsecond, double origin_l=0.0 *units::microsecond, double DL=5.3 *units::centimeter2/units::second, double DT=12.8 *units::centimeter2/units::second, double drift_velocity=1.6 *units::millimeter/units::microsecond, double max_sigma_l=5 *units::microsecond, double nsigma=3.0)
std::pair< double, double > bounds_type
static const double second
static const double millimeter
bounds_type bounds(double mean, double sigma, double binsize, double origin=0.0)
Json::Value Configuration
std::shared_ptr< const IDepo > input_pointer
std::set< IDiffusion::pointer, IDiffusionCompareLbegin > IDiffusionSet
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
constexpr Point origin()
Returns a origin position with a point of the specified type.