RCResponse.h
Go to the documentation of this file.
1 /** An RCResponse waveform is simple resistor-capacitor response.
2  */
3 
4 #ifndef WIRECELL_GEN_RCRESPONSE
5 #define WIRECELL_GEN_RCRESPONSE
6 
9 #include "WireCellUtil/Units.h"
10 
11 namespace WireCell {
12  namespace Gen {
13 
14  class RCResponse : public IWaveform, public IConfigurable {
15  public:
16  RCResponse(int nticks = 10000,
17  double t0 = 0,
18  double width=1.0*units::ms,
19  double tick = 0.5*units::us);
20 
21 
22  // IConfigurable interface
23  virtual void configure(const WireCell::Configuration& cfg);
25 
26  // The starting point of the sampling
27  virtual double waveform_start() const;
28  // The sampling period aka bin width
29  virtual double waveform_period() const;
30  // The collection of samples
31  virtual const sequence_type& waveform_samples() const;
32 
33  private:
36  };
37  }
38 }
39 
40 #endif
41 
code to link reconstructed objects back to the MC truth information
cfg
Definition: dbjson.py:29
const double tick
static const double ms
Definition: Units.h:104
const int nticks
sequence_type m_wave
Definition: RCResponse.h:35
const double width
std::vector< float > sequence_type
Definition: IWaveform.h:17
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: RCResponse.cxx:19
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.
Definition: RCResponse.cxx:23
virtual const sequence_type & waveform_samples() const
Definition: RCResponse.cxx:50
Definition: Main.h:22
virtual double waveform_start() const
Definition: RCResponse.cxx:40
Json::Value Configuration
Definition: Configuration.h:50
static const double us
Definition: Units.h:105
virtual double waveform_period() const
Definition: RCResponse.cxx:45
RCResponse(int nticks=10000, double t0=0, double width=1.0 *units::ms, double tick=0.5 *units::us)
Definition: RCResponse.cxx:12