#ifndef WIRECELLNAV_DEPOSITOR
#define WIRECELLNAV_DEPOSITOR

#include "WCPData/Point.h"
#include <vector>

namespace WCP {

    /**
     * A Depositor produces "hit" depositions in time.
     *
     * This class is abstract and may be used as a mixin.
     *
     * See GenerativeFDS
     */
    // in the future this may also be used for some kind of hit-cell generator.
    class Depositor {
       public:
        virtual ~Depositor();

        /**
         * Return depositions in the given frame number.
         *
         * Implementation should return a vector of point-value pairs.
         *
         * Point : location of the "hit" at the start of the frame.
         * (ie, a hit at x=0.0 will end up having a TDC value of 0).
         *
         * Value : the "charge" that the "hit" deposited.
         *
         * Note: there is no guarantee that frame_number is
         * monotonically increasing from call to call.
         *
         */
        virtual const PointValueVector& depositions(int frame_number) const = 0;
        virtual const std::vector<int>& timeoffset() const;

       protected:
        const std::vector<int> timeo;
    };

}  // namespace WCP

#endif
