IChannelResponse.h
Go to the documentation of this file.
1 /** A channel response gives access to a per-channel response
2  * function. This is typically used to return the electronics
3  * response for a channel. Depending on implementation this may be an
4  * ideal response shared by all or it could be some measured or
5  * calibration response that differs for each channel. */
6 
7 #ifndef WIRECELLIFACE_ICHANNELRESPONSE
8 #define WIRECELLIFACE_ICHANNELRESPONSE
9 
11 
12 #include "WireCellUtil/Binning.h"
13 #include "WireCellUtil/Waveform.h"
14 
15 namespace WireCell {
16 
17  class IChannelResponse : public IComponent<IChannelResponse> {
18  public:
19 
20  virtual ~IChannelResponse() ;
21 
22  /// Provide the channel response for the given channel ID
23  /// number. Note the binning of the returned waveform should
24  /// be coordinated through configuration.
25  virtual const Waveform::realseq_t& channel_response(int channel_ident) const = 0;
26 
27  /// Return the binning that the channel_response follows.
28  virtual Binning channel_response_binning() const = 0;
29  };
30 }
31 #endif
32 
Sequence< real_t > realseq_t
Definition: Waveform.h:31
virtual Binning channel_response_binning() const =0
Return the binning that the channel_response follows.
virtual const Waveform::realseq_t & channel_response(int channel_ident) const =0
Definition: Main.h:22
def channel_ident(G, wire)
Definition: apa.py:445