NumpyDepoSaver.h
Go to the documentation of this file.
1 /** Save depos to a Numpy file. */
2 
3 #ifndef WIRECELLSIO_NUMPYDEPOSAVER
4 #define WIRECELLSIO_NUMPYDEPOSAVER
5 
8 
9 namespace WireCell {
10  namespace Sio {
11 
12  // This saver will buffer depos in memory until EOS is received.
15  public:
17  virtual ~NumpyDepoSaver();
18 
19  /// IDepoFilter. This works by buffering depos and saving
20  /// them at the same time a frame is saved.
21  virtual bool operator()(const WireCell::IDepo::pointer& indepo,
22  WireCell::IDepo::pointer& outdepo);
23 
24  /// IConfigurable
26  virtual void configure(const WireCell::Configuration& config);
27  private:
28 
30  int m_save_count; // count frames saved
31  std::vector<WireCell::IDepo::pointer> m_depos;
32  };
33 
34  }
35 }
36 #endif
std::shared_ptr< const IDepo > pointer
Definition: IData.h:19
std::vector< WireCell::IDepo::pointer > m_depos
virtual bool operator()(const WireCell::IDepo::pointer &indepo, WireCell::IDepo::pointer &outdepo)
static Config * config
Definition: config.cpp:1054
virtual WireCell::Configuration default_configuration() const
IConfigurable.
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.