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

#include <Response.h>

Inheritance diagram for WireCell::Response::SysResp:
WireCell::Response::Generator

Public Member Functions

 SysResp (double tick=0.5 *units::us, double magnitude=1.0, double smear=0.0 *units::us, double offset=0.0 *units::us)
 
virtual ~SysResp ()
 
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 _tick
 
const double _mag
 
const double _smear
 
const double _offset
 

Detailed Description

Definition at line 199 of file Response.h.

Constructor & Destructor Documentation

Response::SysResp::SysResp ( double  tick = 0.5*units::us,
double  magnitude = 1.0,
double  smear = 0.0*units::us,
double  offset = 0.0*units::us 
)

Definition at line 430 of file Response.cxx.

431  : _tick(tick), _mag(magnitude), _smear(smear), _offset(offset)
432 {
433 }
const double tick
realseq_t magnitude(const compseq_t &seq)
Return the magnitude or absolute value of the sequence.
Definition: Waveform.cxx:65
Response::SysResp::~SysResp ( )
virtual

Definition at line 434 of file Response.cxx.

435 {
436 }

Member Function Documentation

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

Implements WireCell::Response::Generator.

Definition at line 437 of file Response.cxx.

438 {
439  double ret = 0;
440  if(_smear > 0){
441  ret = _tick*exp(-0.5*pow((time-_offset)/_smear, 2))/_smear*0.3989422804;
442  }
443  else if(time < _tick+_offset && time >=_offset){
444  ret +=1.0;
445  }
446  else{
447  ret = 0;
448  }
449  return ret*_mag;
450 }
constexpr T pow(T x)
Definition: pow.h:72

Member Data Documentation

const double WireCell::Response::SysResp::_mag
private

Definition at line 200 of file Response.h.

const double WireCell::Response::SysResp::_offset
private

Definition at line 200 of file Response.h.

const double WireCell::Response::SysResp::_smear
private

Definition at line 200 of file Response.h.

const double WireCell::Response::SysResp::_tick
private

Definition at line 200 of file Response.h.


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