CookedFrameSource.h
Go to the documentation of this file.
1 /** A WCT component which is a source of "cooked" frames which it
2  * produces by also being an art::Event visitor.
3  *
4  * Cooked means that the waveforms are taken from the art::Event as a
5  * labeled std::vector<recob::Wire> collection.
6  */
7 
8 #ifndef LARWIRECELL_COMPONENTS_COOKEDFRAMESOURCE
9 #define LARWIRECELL_COMPONENTS_COOKEDFRAMESOURCE
10 
11 #include "WireCellIface/IConfigurable.h"
12 #include "WireCellIface/IFrameSource.h"
14 
16 
17 #include <deque>
18 #include <string>
19 #include <vector>
20 
21 namespace wcls {
23  public WireCell::IFrameSource,
24  public WireCell::IConfigurable {
25  public:
27  virtual ~CookedFrameSource();
28 
29  /// IArtEventVisitor
30  virtual void visit(art::Event& event);
31 
32  /// IFrameSource
33  virtual bool operator()(WireCell::IFrame::pointer& frame);
34 
35  /// IConfigurable
37  virtual void configure(const WireCell::Configuration& config);
38 
39  private:
40  std::deque<WireCell::IFrame::pointer> m_frames;
42  double m_tick;
43  int m_nticks;
44  std::vector<std::string> m_frame_tags;
45  };
46 
47 }
48 
49 #endif
virtual void visit(art::Event &event)
IArtEventVisitor.
std::vector< std::string > m_frame_tags
static Config * config
Definition: config.cpp:1054
virtual void configure(const WireCell::Configuration &config)
virtual bool operator()(WireCell::IFrame::pointer &frame)
IFrameSource.
virtual WireCell::Configuration default_configuration() const
IConfigurable.
std::deque< WireCell::IFrame::pointer > m_frames
Event finding and building.