HistFrameSink.h
Go to the documentation of this file.
1 /** This is a frame sink that saves frames as TH2D histograms.
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_HISTFRAMSINK
8 #define WIRECELLROOT_HISTFRAMSINK
9 
13 
14 #include <string>
15 
16 namespace WireCell {
17  namespace Root {
18 
19  class HistFrameSink : public IFrameSink , public IConfigurable {
20  public:
21  HistFrameSink();
22  virtual ~HistFrameSink();
23 
24 
25  /// Frame sink interface
26  virtual bool operator()(const IFrame::pointer& frame);
27 
28  /// Configurable interface
29  virtual void configure(const WireCell::Configuration& config);
31 
32  private:
33 
36  double m_units;
37 
38  };
39 
40  }
41 }
42 
43 #endif
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
std::string string
Definition: nybbler.cc:12
IAnodePlane::pointer m_anode
Definition: HistFrameSink.h:35
static Config * config
Definition: config.cpp:1054
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
Definition: Main.h:22
virtual bool operator()(const IFrame::pointer &frame)
Frame sink interface.
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Json::Value Configuration
Definition: Configuration.h:50
virtual void configure(const WireCell::Configuration &config)
Configurable interface.