CelltreeFrameSink.h
Go to the documentation of this file.
1 /** This is a frame sink that saves frames as celltree (TTree).
2 
3  It is configured with a filename. If it contains a "%" character
4  the filename will be formatted against the current frame ID.
5  */
6 
7 #ifndef WIRECELLROOT_CELLTREEFRAMSINK
8 #define WIRECELLROOT_CELLTREEFRAMSINK
9 
13 
14 #include <string>
15 
16 namespace WireCell {
17  namespace Root {
18 
19  class CelltreeFrameSink : public IFrameFilter , public IConfigurable {
20  public:
22  virtual ~CelltreeFrameSink();
23 
24 
25  /// Frame sink interface
26  virtual bool operator()(const IFrame::pointer& frame, IFrame::pointer& out_frame);
27 
28  /// Configurable interface
29  virtual void configure(const WireCell::Configuration& config);
31 
32  private:
36 
37  int m_nrebin;
38  };
39 
40  }
41 }
42 
43 #endif
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
virtual bool operator()(const IFrame::pointer &frame, IFrame::pointer &out_frame)
Frame sink interface.
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
static Config * config
Definition: config.cpp:1054
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
Definition: Main.h:22
virtual void configure(const WireCell::Configuration &config)
Configurable interface.
Json::Value Configuration
Definition: Configuration.h:50