DepoFanout.h
Go to the documentation of this file.
1 #ifndef WIRECELL_GEN_DEPOFANOUT
2 #define WIRECELL_GEN_DEPOFANOUT
3 
6 
7 namespace WireCell {
8  namespace Gen {
9 
10  // Fan out 1 depo to N set at construction or configuration time.
11  class DepoFanout : public IDepoFanout, public IConfigurable {
12  public:
13  DepoFanout(size_t multiplicity = 0);
14  virtual ~DepoFanout();
15 
16  // INode, override because we get multiplicity at run time.
17  virtual std::vector<std::string> output_types();
18 
19  // IFanout
20  virtual bool operator()(const input_pointer& in, output_vector& outv);
21 
22  // IConfigurable
23  virtual void configure(const WireCell::Configuration& cfg);
25 
26  private:
28 
29  };
30  }
31 }
32 
33 
34 #endif
35 
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Definition: DepoFanout.cxx:33
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: DepoFanout.cxx:26
cfg
Definition: dbjson.py:29
DepoFanout(size_t multiplicity=0)
Definition: DepoFanout.cxx:16
std::vector< output_pointer > output_vector
Definition: IFanoutNode.h:45
Definition: Main.h:22
std::shared_ptr< const IDepo > input_pointer
Definition: IFanoutNode.h:43
virtual bool operator()(const input_pointer &in, output_vector &outv)
Definition: DepoFanout.cxx:51
virtual std::vector< std::string > output_types()
Definition: DepoFanout.cxx:43
Json::Value Configuration
Definition: Configuration.h:50