/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
ShapedPulseFn Class Reference

#include <ShapedPulseFn.h>

Collaboration diagram for ShapedPulseFn:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ShapedPulseFn ()
 ShapedPulseFn (const PedBiasCalibData &params)
double eval (double adc, double ns)

Private Attributes

PedBiasCalibData params

Detailed Description

Definition at line 8 of file ShapedPulseFn.h.


Constructor & Destructor Documentation

ShapedPulseFn::ShapedPulseFn ( ) [inline]

Definition at line 10 of file ShapedPulseFn.h.

{}
ShapedPulseFn::ShapedPulseFn ( const PedBiasCalibData params) [inline]

Definition at line 11 of file ShapedPulseFn.h.

    : params(params) {}

Member Function Documentation

double ShapedPulseFn::eval ( double  adc,
double  ns 
)

Definition at line 49 of file ShapedPulseFn.cc.

{
  if (adc < ADC_MIN || adc > ADC_MAX)
    return 0;

  GausCubic p;                  // function parameters (PulseParams.h)
  p.amp = lin(adc, params.m_amp);
  p.mean = GausLineFn(adc, params.m_mean);
  p.sigma = GausLineFn(adc, params.m_sigma);
  p.a3 = lin(adc, params.m_a3);
  p.a2 = lin(adc, params.m_a2);
  p.a1 = lin(adc, params.m_a1);
  p.a0 = lin(adc, params.m_a0);

  return GausCubicFn(ns, p) - PED_NORM;
}

Member Data Documentation

Definition at line 16 of file ShapedPulseFn.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:14:11 for CalibAlg by doxygen 1.7.4