Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
gen
inc
WireCellGen
Misconfigure.h
Go to the documentation of this file.
1
/** This component will output a "misconfigured" trace for each input
2
* trace.
3
*
4
* It does this by filtering out an assumed electronics response
5
* function and applying a new one.
6
*
7
* Note, traces are "misconfigured" independently even if multiple
8
* traces exist on the same channel.
9
*
10
* By default the output traces will be sized larger than input by
11
* nsamples-1. If the "truncated" option is true then the output
12
* trace will be truncated to match the input size. this may cut off
13
* signal for traces smaller than the time where the electronics
14
* response functions are finite.
15
*
16
* This component does not honor frame/trace tags. No tags will be
17
* considered on input and none are placed on output.
18
*
19
*/
20
21
#ifndef WIRECELLGEN_MISCONFIGURE
22
#define WIRECELLGEN_MISCONFIGURE
23
24
#include "
WireCellIface/IFrameFilter.h
"
25
#include "
WireCellIface/IConfigurable.h
"
26
#include "
WireCellUtil/Waveform.h
"
27
28
#include <unordered_set>
29
30
namespace
WireCell
{
31
namespace
Gen {
32
33
class
Misconfigure
:
public
IFrameFilter
,
public
IConfigurable
{
34
public
:
35
Misconfigure
();
36
virtual
~Misconfigure
();
37
38
// IFrameFilter
39
virtual
bool
operator()
(
const
input_pointer
& in,
output_pointer
& out);
40
41
// IConfigurable
42
virtual
WireCell::Configuration
default_configuration
()
const
;
43
virtual
void
configure
(
const
WireCell::Configuration
&
cfg
);
44
45
private
:
46
Waveform::realseq_t
m_from
,
m_to
;
47
bool
m_truncate
;
48
};
49
}
50
}
51
52
#endif
WireCell::IConfigurable
Definition:
IConfigurable.h:13
WireCell::Gen::Misconfigure::Misconfigure
Misconfigure()
Definition:
Misconfigure.cxx:13
WireCell::Waveform::realseq_t
Sequence< real_t > realseq_t
Definition:
Waveform.h:31
IConfigurable.h
dbjson.cfg
cfg
Definition:
dbjson.py:29
WireCell::Gen::Misconfigure::default_configuration
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition:
Misconfigure.cxx:22
WireCell::IFunctionNode< IFrame, IFrame >::input_pointer
std::shared_ptr< const IFrame > input_pointer
Definition:
IFunctionNode.h:39
WireCell::Gen::Misconfigure::m_truncate
bool m_truncate
Definition:
Misconfigure.h:47
WireCell::IFrameFilter
Definition:
IFrameFilter.h:20
IFrameFilter.h
Waveform.h
WireCell::Gen::Misconfigure::operator()
virtual bool operator()(const input_pointer &in, output_pointer &out)
The calling signature:
Definition:
Misconfigure.cxx:67
WireCell::Gen::Misconfigure
Definition:
Misconfigure.h:33
WireCell::Gen::Misconfigure::~Misconfigure
virtual ~Misconfigure()
Definition:
Misconfigure.cxx:17
WireCell::IFunctionNode< IFrame, IFrame >::output_pointer
std::shared_ptr< const IFrame > output_pointer
Definition:
IFunctionNode.h:40
WireCell::Gen::Misconfigure::configure
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Definition:
Misconfigure.cxx:53
WireCell
Definition:
Main.h:22
WireCell::Configuration
Json::Value Configuration
Definition:
Configuration.h:50
WireCell::Gen::Misconfigure::m_to
Waveform::realseq_t m_to
Definition:
Misconfigure.h:46
WireCell::Gen::Misconfigure::m_from
Waveform::realseq_t m_from
Definition:
Misconfigure.h:46
Generated by
1.8.11