#include <cmath>
#include "RtypesCore.h"
Go to the source code of this file.
|
Double_t | LA_func (Double_t *x, Double_t *par) |
|
◆ LA_func()
Double_t LA_func |
( |
Double_t * |
x, |
|
|
Double_t * |
par |
|
) |
| |
Definition at line 11 of file SCT_LorentzAngleFunc.h.
13 const Double_t
xmin{
x[0] - 5.0*
par[3]};
14 const Double_t
xmax{
x[0] + 5.0*
par[3]};
16 const double piOver180 =
M_PI/180.;
17 const double piNorm = 1./std::sqrt(2.*
M_PI);
21 for (Int_t
i{1};
i<
n;
i++) {
23 sum += LA_sum * 0.017455 * piNorm/(
par[3]*piOver180)
24 *
std::exp(-(
x[0]*piOver180 - x_*piOver180 )*(
x[0]*piOver180 - x_*piOver180 )/(2*
par[3]*piOver180*
par[3]*piOver180)) *
h;