GridTiling.h
Go to the documentation of this file.
1 /** This tiling algorithm makes use of RayGrid for the heavy lifting.
2  *
3  * It must be configured with a face on which to focus. Only wires
4  * (segments) in that face which are connected to channels with data
5  * in a slice will be considered when tiling.
6  *
7  * It does not "know" about dead channels. If your detector has them
8  * you may place a component upstream which artifically inserts
9  * non-zero signal on dead channels in slice input here.
10  *
11  * The resulting IBlobs have ident numbers which increment starting
12  * from zero. The ident is reset when EOS is received.
13  */
14 #ifndef WIRECELLIM_GRIDTILING
15 #define WIRECELLIM_GRIDTILING
16 
17 #include "WireCellIface/ITiling.h"
21 #include "WireCellUtil/Logging.h"
22 
23 namespace WireCell {
24  namespace Img {
25 
26  class GridTiling : public ITiling, public IConfigurable {
27  public:
28  GridTiling();
29  virtual ~GridTiling();
30  virtual void configure(const WireCell::Configuration& cfg);
32 
33 
34  virtual bool operator()(const input_pointer& slice, output_pointer& blobset);
35 
36  private:
37 
38  size_t m_blobs_seen;
41  double m_threshold;
43  };
44  }
45 }
46 
47 #endif
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Definition: GridTiling.cxx:26
IAnodePlane::pointer m_anode
Definition: GridTiling.h:39
cfg
Definition: dbjson.py:29
std::shared_ptr< const ISlice > input_pointer
Definition: IFunctionNode.h:39
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: GridTiling.cxx:33
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
virtual bool operator()(const input_pointer &slice, output_pointer &blobset)
The calling signature:
Definition: GridTiling.cxx:45
std::shared_ptr< const IBlobSet > output_pointer
Definition: IFunctionNode.h:40
std::shared_ptr< spdlog::logger > logptr_t
Definition: Logging.h:24
IAnodeFace::pointer m_face
Definition: GridTiling.h:40
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50