NominalChannelResponse.h
Go to the documentation of this file.
1 /** This component provides identical channel responses for all
2  * channels and which use the nominal electronics response
3  * parameterized by gain and shaping time. */
4 
5 #ifndef WIRECELLSIGPROC_NOMINALCHANNELRESPONSE
6 #define WIRECELLSIGPROC_NOMINALCHANNELRESPONSE
7 
10 #include "WireCellUtil/Units.h"
11 
12 namespace WireCell {
13  namespace SigProc {
15  public:
17  double shaping=2*WireCell::units::us,
18  const Binning& binning = Binning(100, 0, 10*WireCell::units::us));
19 
20  virtual ~NominalChannelResponse();
21 
22  // IChannelResponse
23  virtual const Waveform::realseq_t& channel_response(int channel_ident) const;
24  virtual Binning channel_response_binning() const;
25 
26  // IConfigurable
27  virtual void configure(const WireCell::Configuration& config);
29 
30  private:
31  double m_gain, m_shaping;
33 
35  };
36 
37  }
38 
39 }
40 #endif
NominalChannelResponse(double gain=14 *WireCell::units::mV/WireCell::units::fC, double shaping=2 *WireCell::units::us, const Binning &binning=Binning(100, 0, 10 *WireCell::units::us))
Sequence< real_t > realseq_t
Definition: Waveform.h:31
static const double mV
Definition: Units.h:180
virtual const Waveform::realseq_t & channel_response(int channel_ident) const
static Config * config
Definition: config.cpp:1054
static const double fC
Definition: Units.h:113
Definition: Main.h:22
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Json::Value Configuration
Definition: Configuration.h:50
static const double us
Definition: Units.h:105
virtual Binning channel_response_binning() const
Return the binning that the channel_response follows.
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
def channel_ident(G, wire)
Definition: apa.py:445