Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
gen
inc
WireCellGen
SilentNoise.h
Go to the documentation of this file.
1
#ifndef WIRECELLGEN_SILENTNOISE
2
#define WIRECELLGEN_SILENTNOISE
3
4
#include "
WireCellIface/IFrameSource.h
"
5
#include "
WireCellIface/IConfigurable.h
"
6
7
namespace
WireCell
{
8
namespace
Gen {
9
10
/// A source of "noise" which has no noise. It's used just as
11
/// an trivial example which real noise models may copy.
12
/// Although it inherits from IConfigurable, it's not really.
13
/// Again, just giving an example.
14
class
SilentNoise
:
public
IFrameSource
,
public
IConfigurable
{
15
public
:
16
SilentNoise
();
17
virtual
~SilentNoise
();
18
19
20
// configurable
21
virtual
void
configure
(
const
WireCell::Configuration
&
config
);
22
virtual
WireCell::Configuration
default_configuration
()
const
;
23
24
// frame source
25
virtual
bool
operator()
(
output_pointer
& out);
26
27
private
:
28
int
m_count
;
29
int
m_noutputs
,
m_nchannels
;
30
std::string
m_traces_tag
;
31
};
32
}
33
}
34
35
#endif
WireCell::IFrameSource
Definition:
IFrameSource.h:12
WireCell::IConfigurable
Definition:
IConfigurable.h:13
WireCell::Gen::SilentNoise::m_traces_tag
std::string m_traces_tag
Definition:
SilentNoise.h:30
string
std::string string
Definition:
nybbler.cc:12
IConfigurable.h
WireCell::ISourceNode< IFrame >::output_pointer
std::shared_ptr< const IFrame > output_pointer
Definition:
ISourceNode.h:38
WireCell::Gen::SilentNoise::default_configuration
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition:
SilentNoise.cxx:32
config
static Config * config
Definition:
config.cpp:1054
WireCell::Gen::SilentNoise
Definition:
SilentNoise.h:14
WireCell
Definition:
Main.h:22
WireCell::Gen::SilentNoise::~SilentNoise
virtual ~SilentNoise()
Definition:
SilentNoise.cxx:21
WireCell::Gen::SilentNoise::SilentNoise
SilentNoise()
Definition:
SilentNoise.cxx:16
WireCell::Gen::SilentNoise::configure
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Definition:
SilentNoise.cxx:25
WireCell::Gen::SilentNoise::m_nchannels
int m_nchannels
Definition:
SilentNoise.h:29
WireCell::Configuration
Json::Value Configuration
Definition:
Configuration.h:50
IFrameSource.h
WireCell::Gen::SilentNoise::m_count
int m_count
Definition:
SilentNoise.h:28
WireCell::Gen::SilentNoise::operator()
virtual bool operator()(output_pointer &out)
The calling signature:
Definition:
SilentNoise.cxx:42
WireCell::Gen::SilentNoise::m_noutputs
int m_noutputs
Definition:
SilentNoise.h:29
Generated by
1.8.11