WireSource.cxx
Go to the documentation of this file.
3 
6 
7 using namespace WireCell;
8 
10  : m_params(new WireParams)
11  , m_wiregen()
12 {
13 }
14 
15 WireSource::~WireSource()
16 {
17 
18 }
19 
20 Configuration WireSource::default_configuration() const
21 {
22  return m_params->default_configuration();
23 }
25 {
26  m_params->configure(cfg);
27 }
28 
29 bool WireSource::operator()(output_pointer& wires)
30 {
31  return m_wiregen(m_params, wires);
32 }
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: WireSource.cxx:20
cfg
Definition: dbjson.py:29
std::shared_ptr< const IWire::vector > output_pointer
Definition: ISourceNode.h:38
def configure(cfg)
Definition: cuda.py:34
WIRECELL_FACTORY(WireSource, WireCell::WireSource, WireCell::IWireSource, WireCell::IConfigurable) using namespace WireCell
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50