1 #ifndef WIRECELL_TRACKDEPOS 2 #define WIRECELL_TRACKDEPOS 40 typedef std::tuple<double, Ray, double>
track_t;
46 std::deque<WireCell::IDepo::pointer>
m_depos;
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
std::shared_ptr< const IDepo > pointer
void add_track(double time, const WireCell::Ray &ray, double dedx=-1.0)
virtual bool operator()(IDepo::pointer &out)
ISourceNode.
std::vector< pointer > vector
TrackDepos(double stepsize=1.0 *units::millimeter, double clight=1.0)
A producer of depositions created from some number of simple, linear tracks.
std::deque< WireCell::IDepo::pointer > m_depos
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
WireCell::IDepo::vector depos()
std::vector< track_t > tracks() const
std::vector< track_t > m_tracks
std::shared_ptr< spdlog::logger > logptr_t
static const double millimeter
Json::Value Configuration
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::tuple< double, Ray, double > track_t