14 , m_starting_gate(0,0)
19 Gen::DepoChunker::~DepoChunker()
29 cfg[
"gate"] = Json::arrayValue;
37 cfg[
"gate"][1].asDouble());
56 const double now = depo->time();
64 if (now >=
m_gate.second) {
72 std::cerr <<
"Gen::DepoChunker: out of time order depo received: now=" << now/
units::s <<
"s\n";
WIRECELL_FACTORY(DepoChunker, WireCell::Gen::DepoChunker, WireCell::IDepoCollector, WireCell::IConfigurable) using namespace std
void emit(output_queue &out)
std::pair< double, double > m_gate
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::deque< output_pointer > output_queue
std::pair< double, double > m_starting_gate
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
virtual bool operator()(const input_pointer &depo, output_queue &deposetqueue)
The calling signature:
Json::Value Configuration
std::shared_ptr< const IDepo > input_pointer