7 Double_t fitCos(Double_t *x, Double_t *par) {
16 ((etaD<-0.08) || (2.0 < etaD) || (phiD<-0.131) || (3.2724925<phiD)) ) {
22 double gx = exp(-pow(etaD/par[4],2)/2);
23 double gy = exp(-pow(phiD/par[5],2)/2);
24 double gyp2pi = exp(-pow((phiD-2*pi)/par[5],2)/2);
25 double gym2pi = exp(-pow((phiD+2*pi)/par[5],2)/2);
26 double rad = sqrt( pow(etaD/par[7],2) + pow(phiD/par[8],2) );
27 double rad2pi = sqrt( pow(etaD/par[7],2) + pow((phiD-2*pi)/par[8],2) );
29 double func = par[0] +
31 par[2] * cos(2*phiD) +
32 par[3] * gx * (gy + gyp2pi + gym2pi) +
33 par[6] * (exp(-rad) + exp(-rad2pi)) +
34 par[9]*cos(etaD) + par[10]*cos(2*etaD) + par[11]*cos(3*etaD) + par[12]*cos(4*etaD);