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 
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
43  virtual void configure(const WireCell::Configuration& cfg);
44 
45  private:
47  bool m_truncate;
48  };
49  }
50 }
51 
52 #endif
Sequence< real_t > realseq_t
Definition: Waveform.h:31
cfg
Definition: dbjson.py:29
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::shared_ptr< const IFrame > input_pointer
Definition: IFunctionNode.h:39
virtual bool operator()(const input_pointer &in, output_pointer &out)
The calling signature:
std::shared_ptr< const IFrame > output_pointer
Definition: IFunctionNode.h:40
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50
Waveform::realseq_t m_to
Definition: Misconfigure.h:46
Waveform::realseq_t m_from
Definition: Misconfigure.h:46