CookedFrameSink.h
Go to the documentation of this file.
1 /** A WCT component which is a sink of "cooked" frames which saves
2  * frames into an art::Event that it visits.
3  *
4  * Cooked means that some processing of the frame has occurred and the
5  * frame is saved into the art::Event as recob::Wires.
6  */
7 
8 #ifndef LARWIRECELL_COMPONENTS_COOKEDFRAMESINK
9 #define LARWIRECELL_COMPONENTS_COOKEDFRAMESINK
10 
11 #include "WireCellIface/IFrameSink.h"
12 #include "WireCellIface/IConfigurable.h"
13 #include "WireCellIface/IAnodePlane.h"
15 
16 #include <string>
17 #include <vector>
18 
19 namespace wcls {
21  public WireCell::IFrameSink,
22  public WireCell::IConfigurable {
23  public:
25  virtual ~CookedFrameSink();
26 
27  /// IArtEventVisitor
28  virtual void produces(art::ProducesCollector& collector);
29  virtual void visit(art::Event & event);
30 
31  /// IFrameSink
32  virtual bool operator()(const WireCell::IFrame::pointer& frame);
33 
34  /// IConfigurable
36  virtual void configure(const WireCell::Configuration& config);
37 
38  private:
39  WireCell::IFrame::pointer m_frame;
40  WireCell::IAnodePlane::pointer m_anode;
41  std::vector<std::string> m_frame_tags;
42  int m_nticks;
43  };
44 }
45 
46 #endif
std::vector< std::string > m_frame_tags
virtual WireCell::Configuration default_configuration() const
IConfigurable.
virtual bool operator()(const WireCell::IFrame::pointer &frame)
IFrameSink.
WireCell::IAnodePlane::pointer m_anode
static Config * config
Definition: config.cpp:1054
virtual void configure(const WireCell::Configuration &config)
virtual void produces(art::ProducesCollector &collector)
IArtEventVisitor.
WireCell::IFrame::pointer m_frame
virtual void visit(art::Event &event)
Implement to visit an Art event.
Event finding and building.