#include <L1CaloPprPhos4Shape.h>
Definition at line 254 of file L1CaloPprPhos4Shape.h.
◆ operator()()
double LandGaussFunc::operator() |
( |
double * |
x, |
|
|
double * |
par |
|
) |
| |
|
inline |
Definition at line 256 of file L1CaloPprPhos4Shape.h.
257 double x_max =
par[0];
258 double ampl =
par[1];
259 double sigma_g =
par[2];
260 double sigma_l =
par[3];
261 double pedestal =
par[4];
266 output = ampl *
exp(((-0.5) * (
x[0] - x_max) * (
x[0] - x_max) / ((sigma_g) * (sigma_g) ) ) - 0.5) + pedestal;
268 else if (
x[0] >
par[0] )
270 const double inv_sigma_l = 1. / sigma_l;
271 output = ampl *
exp((-0.5) * (((
x[0] - x_max) *inv_sigma_l) + (
exp(-(
x[0] - x_max) * inv_sigma_l) ) ) ) + pedestal;
The documentation for this class was generated from the following file: