Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
gen
inc
WireCellGen
WireSource.h
Go to the documentation of this file.
1
#ifndef WIRECELLGEN_WIRESOURCE
2
#define WIRECELLGEN_WIRESOURCE
3
4
#include "
WireCellGen/WireParams.h
"
5
#include "
WireCellGen/WireGenerator.h
"
6
#include "
WireCellIface/IWireSource.h
"
7
#include "
WireCellIface/IConfigurable.h
"
8
9
namespace
WireCell
{
10
11
/** A WireCell::IWireSource facade in front of
12
* WireCell::WireParams and WireCell::WireGenerator.
13
*/
14
15
class
WireSource
:
public
IWireSource
,
public
IConfigurable
{
16
public
:
17
WireSource
();
18
virtual
~WireSource
();
19
20
virtual
bool
operator()
(
output_pointer
& wires);
21
22
/** Configurable interface.
23
*/
24
virtual
void
configure
(
const
WireCell::Configuration
&
config
);
25
virtual
WireCell::Configuration
default_configuration
()
const
;
26
27
private
:
28
std::shared_ptr<WireParams>
m_params
;
29
WireGenerator
m_wiregen
;
30
};
31
32
33
}
34
35
#endif
IWireSource.h
WireCell::IConfigurable
Definition:
IConfigurable.h:13
WireCell::WireSource::WireSource
WireSource()
Definition:
WireSource.cxx:9
WireCell::WireGenerator
Definition:
WireGenerator.h:18
WireCell::WireSource::configure
virtual void configure(const WireCell::Configuration &config)
Definition:
WireSource.cxx:24
WireCell::WireSource::m_params
std::shared_ptr< WireParams > m_params
Definition:
WireSource.h:28
WireCell::WireSource::default_configuration
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition:
WireSource.cxx:20
WireCell::WireSource
Definition:
WireSource.h:15
IConfigurable.h
WireCell::ISourceNode< IWire::vector >::output_pointer
std::shared_ptr< const IWire::vector > output_pointer
Definition:
ISourceNode.h:38
config
static Config * config
Definition:
config.cpp:1054
WireCell::WireSource::~WireSource
virtual ~WireSource()
Definition:
WireSource.cxx:15
WireCell::IWireSource
Definition:
IWireSource.h:11
WireGenerator.h
WireCell
Definition:
Main.h:22
WireParams.h
WireCell::WireSource::m_wiregen
WireGenerator m_wiregen
Definition:
WireSource.h:29
WireCell::Configuration
Json::Value Configuration
Definition:
Configuration.h:50
WireCell::WireSource::operator()
virtual bool operator()(output_pointer &wires)
The calling signature:
Definition:
WireSource.cxx:29
Generated by
1.8.11