PerChannelVariation.h
Go to the documentation of this file.
1 /** This component will output a "ch-by-ch variation" trace for each input
2  * trace. Reference to "Misconfigure"
3  *
4  * It does this by filtering out an assumed electronics response
5  * function and applying a new one from ch-by-ch electronics calibration.
6  *
7  * By default the output traces will be sized larger than input by
8  * nsamples-1. If the "truncated" option is true then the output
9  * trace will be truncated to match the input size. this may cut off
10  * signal for traces smaller than the time where the electronics
11  * response functions are finite.
12  *
13  * This component does not honor frame/trace tags. No tags will be
14  * considered on input and none are placed on output.
15  *
16  */
17 
18 #ifndef WIRECELLGEN_PERCHANNELVARIATION_
19 #define WIRECELLGEN_PERCHANNELVARIATION_
20 
24 #include "WireCellUtil/Waveform.h"
25 
26 
27 #include <unordered_set>
28 
29 namespace WireCell {
30  namespace Gen {
31 
33  public:
35  virtual ~PerChannelVariation();
36 
37  // IFrameFilter
38  virtual bool operator()(const input_pointer& in, output_pointer& out);
39 
40  // IConfigurable
42  virtual void configure(const WireCell::Configuration& cfg);
43 
44  private:
49  bool m_truncate;
50  };
51  }
52 }
53 
54 #endif
Sequence< real_t > realseq_t
Definition: Waveform.h:31
std::string string
Definition: nybbler.cc:12
virtual bool operator()(const input_pointer &in, output_pointer &out)
The calling signature:
cfg
Definition: dbjson.py:29
std::shared_ptr< const IFrame > input_pointer
Definition: IFunctionNode.h:39
WireCell::Waveform::realseq_t m_from
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
std::shared_ptr< const IFrame > output_pointer
Definition: IFunctionNode.h:40
WireCell::IChannelResponse::pointer m_cr
Definition: Main.h:22
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Json::Value Configuration
Definition: Configuration.h:50
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.