Public Member Functions | Private Attributes | List of all members
WireCell::Response::SimpleRC Class Reference

#include <Response.h>

Inheritance diagram for WireCell::Response::SimpleRC:
WireCell::Response::Generator

Public Member Functions

 SimpleRC (double width=1.0 *units::ms, double tick=0.5 *units::us, double offset=0.0)
 
virtual ~SimpleRC ()
 
virtual double operator() (double time) const
 
- Public Member Functions inherited from WireCell::Response::Generator
virtual ~Generator ()
 
WireCell::Waveform::realseq_t generate (const WireCell::Waveform::Domain &domain, int nsamples)
 FIXME: eradicate Domain in favor of Binning. More...
 
WireCell::Waveform::realseq_t generate (const WireCell::Binning &tbins)
 Lay down the function into a binned waveform. More...
 

Private Attributes

const double _width
 
const double _offset
 
const double _tick
 

Detailed Description

A functional object giving the response as a function of time to a simple RC circuit.

Definition at line 182 of file Response.h.

Constructor & Destructor Documentation

Response::SimpleRC::SimpleRC ( double  width = 1.0*units::ms,
double  tick = 0.5*units::us,
double  offset = 0.0 
)

Definition at line 407 of file Response.cxx.

408  : _width(width), _offset(offset), _tick(tick)
409 
410 {
411 }
const double tick
const double width
Response::SimpleRC::~SimpleRC ( )
virtual

Definition at line 412 of file Response.cxx.

413 {
414 }

Member Function Documentation

double Response::SimpleRC::operator() ( double  time) const
virtual

Implements WireCell::Response::Generator.

Definition at line 415 of file Response.cxx.

416 {
417  double ret = 0;
418  if (_width > 0){
419  ret += -_tick/_width * exp(-(time-_offset)/_width); // _tick here is to make this RC response integrated in each bin
420  }
421  if (time < _offset + _tick) { // just the first bin
422  ret += 1.0; // delta function
423  }
424  return ret;
425 }

Member Data Documentation

const double WireCell::Response::SimpleRC::_offset
private

Definition at line 183 of file Response.h.

const double WireCell::Response::SimpleRC::_tick
private

Definition at line 183 of file Response.h.

const double WireCell::Response::SimpleRC::_width
private

Definition at line 183 of file Response.h.


The documentation for this class was generated from the following files: