All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawFrameSource.h
Go to the documentation of this file.
1 /** A WCT component which is a source of raw frames which it produces
2  * by also being an art::Event visitor.
3  *
4  * Raw means that the waveforms are taken from the art::Event as a
5  * labeled std::vector<raw::RawDigit> collection.
6  */
7 
8 #ifndef LARWIRECELL_COMPONENTS_RAWFRAMESOURCE
9 #define LARWIRECELL_COMPONENTS_RAWFRAMESOURCE
10 
12 #include "WireCellIface/IFrameSource.h"
13 #include "WireCellIface/IConfigurable.h"
14 
15 #include "canvas/Utilities/InputTag.h"
16 
17 #include <string>
18 #include <vector>
19 #include <deque>
20 
21 namespace wcls {
23  public WireCell::IFrameSource,
24  public WireCell::IConfigurable {
25  public:
27  virtual ~RawFrameSource();
28 
29  /// IArtEventVisitor
30  virtual void visit(art::Event & event);
31 
32  /// IFrameSource
33  virtual bool operator()(WireCell::IFrame::pointer& frame);
34 
35  /// IConfigurable
36  virtual WireCell::Configuration default_configuration() const;
37  virtual void configure(const WireCell::Configuration& config);
38 
39  private:
40  std::deque<WireCell::IFrame::pointer> m_frames;
41  art::InputTag m_inputTag;
42  double m_tick;
43  int m_nticks;
44  std::vector<std::string> m_frame_tags;
45 
46  };
47 
48 }
49 
50 #endif
art::InputTag m_inputTag
virtual bool operator()(WireCell::IFrame::pointer &frame)
IFrameSource.
virtual WireCell::Configuration default_configuration() const
IConfigurable.
virtual void configure(const WireCell::Configuration &config)
std::deque< WireCell::IFrame::pointer > m_frames
std::vector< std::string > m_frame_tags
virtual void visit(art::Event &event)
IArtEventVisitor.