ATLAS Offline Software
Public Member Functions | List of all members
LandGaussFunc Class Reference

#include <L1CaloPprPhos4Shape.h>

Collaboration diagram for LandGaussFunc:

Public Member Functions

double operator() (double *x, double *par)
 

Detailed Description

Definition at line 254 of file L1CaloPprPhos4Shape.h.

Member Function Documentation

◆ operator()()

double LandGaussFunc::operator() ( double *  x,
double *  par 
)
inline

Definition at line 256 of file L1CaloPprPhos4Shape.h.

256  {
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];
262 
263  double output = 0;
264  if ( x[0] <= par[0])
265  {
266  output = ampl * exp(((-0.5) * (x[0] - x_max) * (x[0] - x_max) / ((sigma_g) * (sigma_g) ) ) - 0.5) + pedestal;
267  }
268  else if (x[0] > par[0] )
269  {
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;
272  }
273 
274  return output;
275  }

The documentation for this class was generated from the following file:
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x
merge.output
output
Definition: merge.py:17
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29