ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

#include <cstdlib>
#include <TSystem.h>
#include "AliCheb3DCalc.h"
#include "AliLog.h"

ClassImp(AliCheb3DCalc)

//__________________________________________________________________________________________
AliCheb3DCalc::AliCheb3DCalc() :
  fNCoefs(0), 
  fNRows(0), 
  fNCols(0), 
  fNElemBound2D(0), 
  fNColsAtRow(0), 
  fColAtRowBg(0),
  fCoefBound2D0(0), 
  fCoefBound2D1(0), 
  fCoefs(0), 
  fTmpCf1(0), 
  fTmpCf0(0),
  fPrec(0)
{
  // default constructor
}

//__________________________________________________________________________________________
AliCheb3DCalc::AliCheb3DCalc(const AliCheb3DCalc& src) :
  TNamed(src), 
  fNCoefs(src.fNCoefs), 
  fNRows(src.fNRows), 
  fNCols(src.fNCols),
  fNElemBound2D(src.fNElemBound2D), 
  fNColsAtRow(0), 
  fColAtRowBg(0), 
  fCoefBound2D0(0), 
  fCoefBound2D1(0), 
  fCoefs(0), 
  fTmpCf1(0), 
  fTmpCf0(0), 
  fPrec(src.fPrec)
{
  // copy constructor
  //
  if (src.fNColsAtRow) {
    fNColsAtRow = new UShort_t[fNRows]; 
    for (int i=fNRows;i--;) fNColsAtRow[i] = src.fNColsAtRow[i];
  }
  if (src.fColAtRowBg) {
    fColAtRowBg = new UShort_t[fNRows]; 
    for (int i=fNRows;i--;) fColAtRowBg[i] = src.fColAtRowBg[i];
  }
  if (src.fCoefBound2D0) {
    fCoefBound2D0 = new UShort_t[fNElemBound2D];
    for (int i=fNElemBound2D;i--;) fCoefBound2D0[i] = src.fCoefBound2D0[i];
  }
  if (src.fCoefBound2D1) {
    fCoefBound2D1 = new UShort_t[fNElemBound2D];
    for (int i=fNElemBound2D;i--;) fCoefBound2D1[i] = src.fCoefBound2D1[i];
  }
  if (src.fCoefs) {
    fCoefs = new Float_t[fNCoefs];
    for (int i=fNCoefs;i--;) fCoefs[i] = src.fCoefs[i];
  }
  if (src.fTmpCf1) fTmpCf1 = new Float_t[fNCols];
  if (src.fTmpCf0) fTmpCf0 = new Float_t[fNRows];
}

//__________________________________________________________________________________________
AliCheb3DCalc::AliCheb3DCalc(FILE* stream) :
  fNCoefs(0), 
  fNRows(0), 
  fNCols(0), 
  fNElemBound2D(0), 
  fNColsAtRow(0), 
  fColAtRowBg(0), 
  fCoefBound2D0(0), 
  fCoefBound2D1(0), 
  fCoefs(0), 
  fTmpCf1(0), 
  fTmpCf0(0),
  fPrec(0)
{
  // constructor from coeffs. streem
  LoadData(stream);
}

//__________________________________________________________________________________________
AliCheb3DCalc& AliCheb3DCalc::operator=(const AliCheb3DCalc& rhs)
{
  // assignment operator
  if (this != &rhs) {
    Clear();
    SetName(rhs.GetName());
    SetTitle(rhs.GetTitle());
    fNCoefs = rhs.fNCoefs;
    fNRows  = rhs.fNRows;
    fNCols  = rhs.fNCols;    
    fPrec   = rhs.fPrec;
    if (rhs.fNColsAtRow) {
      fNColsAtRow = new UShort_t[fNRows]; 
      for (int i=fNRows;i--;) fNColsAtRow[i] = rhs.fNColsAtRow[i];
    }
    if (rhs.fColAtRowBg) {
      fColAtRowBg = new UShort_t[fNRows]; 
      for (int i=fNRows;i--;) fColAtRowBg[i] = rhs.fColAtRowBg[i];
    }
    if (rhs.fCoefBound2D0) {
      fCoefBound2D0 = new UShort_t[fNElemBound2D];
      for (int i=fNElemBound2D;i--;) fCoefBound2D0[i] = rhs.fCoefBound2D0[i];
    }
    if (rhs.fCoefBound2D1) {
      fCoefBound2D1 = new UShort_t[fNElemBound2D];
      for (int i=fNElemBound2D;i--;) fCoefBound2D1[i] = rhs.fCoefBound2D1[i];
    }
    if (rhs.fCoefs) {
      fCoefs = new Float_t[fNCoefs];
      for (int i=fNCoefs;i--;) fCoefs[i] = rhs.fCoefs[i];
    }
    if (rhs.fTmpCf1) fTmpCf1 = new Float_t[fNCols];
    if (rhs.fTmpCf0) fTmpCf0 = new Float_t[fNRows];    
  }
  return *this;
}

//__________________________________________________________________________________________
void AliCheb3DCalc::Clear(const Option_t*)
{
  // delete all dynamycally allocated structures
  if (fTmpCf1)       { delete[] fTmpCf1;  fTmpCf1 = 0;}
  if (fTmpCf0)       { delete[] fTmpCf0;  fTmpCf0 = 0;}
  if (fCoefs)        { delete[] fCoefs;   fCoefs  = 0;}
  if (fCoefBound2D0) { delete[] fCoefBound2D0; fCoefBound2D0 = 0; }
  if (fCoefBound2D1) { delete[] fCoefBound2D1; fCoefBound2D1 = 0; }
  if (fNColsAtRow)   { delete[] fNColsAtRow;   fNColsAtRow = 0; }
  if (fColAtRowBg)   { delete[] fColAtRowBg;   fColAtRowBg = 0; }
  //
}

//__________________________________________________________________________________________
void AliCheb3DCalc::Print(const Option_t* ) const
{
  // print info
  printf("Chebyshev parameterization data %s for 3D->1 function. Prec:%e\n",GetName(),fPrec);
  int nmax3d = 0; 
  for (int i=fNElemBound2D;i--;) if (fCoefBound2D0[i]>nmax3d) nmax3d = fCoefBound2D0[i];
  printf("%d coefficients in %dx%dx%d matrix\n",fNCoefs,fNRows,fNCols,nmax3d);
  //
}

//__________________________________________________________________________________________
Float_t  AliCheb3DCalc::EvalDeriv(int dim, const Float_t  *par) const
{
  // evaluate Chebyshev parameterization derivative in given dimension  for 3D function.
  // VERY IMPORTANT: par must contain the function arguments ALREADY MAPPED to [-1:1] interval
  //
  int ncfRC;
  for (int id0=fNRows;id0--;) {
    int nCLoc = fNColsAtRow[id0];                   // number of significant coefs on this row
    if (!nCLoc) {fTmpCf0[id0]=0; continue;}
    // 
    int col0  = fColAtRowBg[id0];                   // beginning of local column in the 2D boundary matrix
    for (int id1=nCLoc;id1--;) {
      int id = id1+col0;
      if (!(ncfRC=fCoefBound2D0[id])) { fTmpCf1[id1]=0; continue;}
      if (dim==2) fTmpCf1[id1] = ChebEval1Deriv(par[2],fCoefs + fCoefBound2D1[id], ncfRC);
      else        fTmpCf1[id1] = ChebEval1D(par[2],fCoefs + fCoefBound2D1[id], ncfRC);
    }
    if (dim==1)   fTmpCf0[id0] = ChebEval1Deriv(par[1],fTmpCf1,nCLoc);
    else          fTmpCf0[id0] = ChebEval1D(par[1],fTmpCf1,nCLoc);
  }
  return (dim==0) ? ChebEval1Deriv(par[0],fTmpCf0,fNRows) : ChebEval1D(par[0],fTmpCf0,fNRows);
  //
}

//__________________________________________________________________________________________
Float_t  AliCheb3DCalc::EvalDeriv2(int dim1,int dim2, const Float_t  *par) const
{
  // evaluate Chebyshev parameterization 2n derivative in given dimensions  for 3D function.
  // VERY IMPORTANT: par must contain the function arguments ALREADY MAPPED to [-1:1] interval
  //
  Bool_t same = dim1==dim2;
  int ncfRC;
  for (int id0=fNRows;id0--;) {
    int nCLoc = fNColsAtRow[id0];                   // number of significant coefs on this row
    if (!nCLoc) {fTmpCf0[id0]=0; continue;}
    //
    int col0  = fColAtRowBg[id0];                   // beginning of local column in the 2D boundary matrix
    for (int id1=nCLoc;id1--;) {
      int id = id1+col0;
      if (!(ncfRC=fCoefBound2D0[id])) { fTmpCf1[id1]=0; continue;}
      if (dim1==2||dim2==2) fTmpCf1[id1] = same ? ChebEval1Deriv2(par[2],fCoefs + fCoefBound2D1[id], ncfRC) 
			      :                   ChebEval1Deriv(par[2],fCoefs + fCoefBound2D1[id], ncfRC);
      else        fTmpCf1[id1] = ChebEval1D(par[2],fCoefs + fCoefBound2D1[id], ncfRC);
    }
    if (dim1==1||dim2==1) fTmpCf0[id0] = same ? ChebEval1Deriv2(par[1],fTmpCf1,nCLoc):ChebEval1Deriv(par[1],fTmpCf1,nCLoc);
    else                  fTmpCf0[id0] = ChebEval1D(par[1],fTmpCf1,nCLoc);
  }
  return (dim1==0||dim2==0) ? (same ? ChebEval1Deriv2(par[0],fTmpCf0,fNRows):ChebEval1Deriv(par[0],fTmpCf0,fNRows)) : 
    ChebEval1D(par[0],fTmpCf0,fNRows);
  //
}

//_______________________________________________
#ifdef _INC_CREATION_ALICHEB3D_
void AliCheb3DCalc::SaveData(const char* outfile,Bool_t append) const
{
  // writes coefficients data to output text file, optionallt appending on the end of existing file
  TString strf = outfile;
  gSystem->ExpandPathName(strf);
  FILE* stream = fopen(strf,append ? "a":"w");
  SaveData(stream);
  fclose(stream);
  //
}
#endif

//_______________________________________________
#ifdef _INC_CREATION_ALICHEB3D_
void AliCheb3DCalc::SaveData(FILE* stream) const
{
  // writes coefficients data to existing output stream
  // Note: fNCols, fNElemBound2D and fColAtRowBg is not stored, will be computed on fly during the loading of this file
  fprintf(stream,"#\nSTART %s\n",GetName());
  fprintf(stream,"# Number of rows\n%d\n",fNRows);
  //
  fprintf(stream,"# Number of columns per row\n");
  for (int i=0;i<fNRows;i++) fprintf(stream,"%d\n",fNColsAtRow[i]);
  //
  fprintf(stream,"# Number of Coefs in each significant block of third dimension\n");
  for (int i=0;i<fNElemBound2D;i++) fprintf(stream,"%d\n",fCoefBound2D0[i]);
  //
  fprintf(stream,"# Coefficients\n");
  for (int i=0;i<fNCoefs;i++) fprintf(stream,"%+.8e\n",fCoefs[i]);
  //
  fprintf(stream,"# Precision\n");
  fprintf(stream,"%+.8e\n",fPrec);
  //
  fprintf(stream,"END %s\n",GetName());
  //
}
#endif

//_______________________________________________
void AliCheb3DCalc::LoadData(FILE* stream)
{
  // Load coefs. from the stream 
  if (!stream) AliFatal("No stream provided");
  TString buffs;
  Clear();
  ReadLine(buffs,stream);
  if (!buffs.BeginsWith("START")) AliFatalF("Expected: \"START <fit_name>\", found \"%s\"",buffs.Data());
  if (buffs.First(' ')>0) SetName(buffs.Data()+buffs.First(' ')+1);
  //
  ReadLine(buffs,stream); // NRows
  fNRows = buffs.Atoi(); 
  if (fNRows<0 && !buffs.IsDigit()) AliFatalF("Expected: '<number_of_rows>', found \"%s\"",buffs.Data());
  //
  fNCols = 0;
  fNElemBound2D = 0;
  InitRows(fNRows);
  //
  for (int id0=0;id0<fNRows;id0++) {
    ReadLine(buffs,stream);               // n.cols at this row
    fNColsAtRow[id0] = buffs.Atoi();
    fColAtRowBg[id0] = fNElemBound2D;     // begining of this row in 2D boundary surface
    fNElemBound2D   += fNColsAtRow[id0];
    if (fNCols<fNColsAtRow[id0]) fNCols = fNColsAtRow[id0];
  }
  InitCols(fNCols);
  //  
  fNCoefs = 0; 
  InitElemBound2D(fNElemBound2D);
  //
  for (int i=0;i<fNElemBound2D;i++) {
    ReadLine(buffs,stream);               // n.coeffs at 3-d dimension for the given column/row
    fCoefBound2D0[i] = buffs.Atoi();
    fCoefBound2D1[i] = fNCoefs;
    fNCoefs += fCoefBound2D0[i];
  }
  //
  InitCoefs(fNCoefs);
  for (int i=0;i<fNCoefs;i++) {
    ReadLine(buffs,stream);
    fCoefs[i] = buffs.Atof();
  }
  //
  // read precision
  ReadLine(buffs,stream);
  fPrec = buffs.Atof();
  //
  // check end_of_data record
  ReadLine(buffs,stream);
  if (!buffs.BeginsWith("END") || !buffs.Contains(GetName())) AliFatalF("Expected \"END %s\", found \"%s\"",GetName(),buffs.Data());
  //
}

//_______________________________________________
void AliCheb3DCalc::ReadLine(TString& str,FILE* stream) 
{
  // read single line from the stream, skipping empty and commented lines. EOF is not expected
  while (str.Gets(stream)) {
    str = str.Strip(TString::kBoth,' ');
    if (str.IsNull()||str.BeginsWith("#")) continue;
    return;
  }
  AliFatalGeneral("ReadLine","Failed to read from stream"); // normally, should not reach here
}

//_______________________________________________
void AliCheb3DCalc::InitCols(int nc)
{
  // Set max.number of significant columns in the coefs matrix
  fNCols = nc;
  if (fTmpCf1) {delete[] fTmpCf1; fTmpCf1 = 0;}
  if (fNCols>0) fTmpCf1 = new Float_t [fNCols];
}

//_______________________________________________
void AliCheb3DCalc::InitRows(int nr)
{
  // Set max.number of significant rows in the coefs matrix
  if (fNColsAtRow) {delete[] fNColsAtRow; fNColsAtRow = 0;}
  if (fColAtRowBg) {delete[] fColAtRowBg; fColAtRowBg = 0;}
  if (fTmpCf0)     {delete[] fTmpCf0; fTmpCf0 = 0;}
  fNRows = nr;
  if (fNRows>0) {
    fNColsAtRow = new UShort_t[fNRows];
    fTmpCf0     = new Float_t [fNRows];
    fColAtRowBg = new UShort_t[fNRows];
    for (int i=fNRows;i--;) fNColsAtRow[i] = fColAtRowBg[i] = 0;
  }
}

//_______________________________________________
void AliCheb3DCalc::InitElemBound2D(int ne)
{
  // Set max number of significant coefs for given row/column of coefs 3D matrix
  if (fCoefBound2D0) {delete[] fCoefBound2D0; fCoefBound2D0 = 0;}
  if (fCoefBound2D1) {delete[] fCoefBound2D1; fCoefBound2D1 = 0;}
  fNElemBound2D = ne;
  if (fNElemBound2D>0) {
    fCoefBound2D0 = new UShort_t[fNElemBound2D];
    fCoefBound2D1 = new UShort_t[fNElemBound2D];
    for (int i=fNElemBound2D;i--;) fCoefBound2D0[i] = fCoefBound2D1[i] = 0;
  }
}

//_______________________________________________
void AliCheb3DCalc::InitCoefs(int nc)
{
  // Set total number of significant coefs
  if (fCoefs) {delete[] fCoefs; fCoefs = 0;}
  fNCoefs = nc;
  if (fNCoefs>0) {
    fCoefs = new Float_t [fNCoefs];
    for (int i=fNCoefs;i--;) fCoefs[i] = 0.0;
  }
}

//__________________________________________________________________________________________
Float_t AliCheb3DCalc::ChebEval1Deriv(Float_t  x, const Float_t * array, int ncf )
{
  // evaluate 1D Chebyshev parameterization's derivative. x is the argument mapped to [-1:1] interval
  if (--ncf<1) return 0;
  Float_t b0, b1, b2;
  Float_t x2 = x+x;
  b1 = b2 = 0;
  float dcf0=0,dcf1,dcf2=0;
  b0 = dcf1 = 2*ncf*array[ncf];
  if (!(--ncf)) return b0/2;
  //
  for (int i=ncf;i--;) {
    b2 = b1;      
    b1 = b0;
    dcf0 = dcf2 + 2*(i+1)*array[i+1];
    b0 = dcf0 + x2*b1 -b2;
    dcf2 = dcf1;  
    dcf1 = dcf0;
  }
  //
  return b0 - x*b1 - dcf0/2;
}

//__________________________________________________________________________________________
Float_t AliCheb3DCalc::ChebEval1Deriv2(Float_t  x, const Float_t * array, int ncf )
{
  // evaluate 1D Chebyshev parameterization's 2nd derivative. x is the argument mapped to [-1:1] interval
  if (--ncf<2) return 0;
  Float_t b0, b1, b2;
  Float_t x2 = x+x;
  b1 = b2 = 0;
  float dcf0=0,dcf1=0,dcf2=0;
  float ddcf0=0,ddcf1,ddcf2=0;
  //
  dcf2 = 2*ncf*array[ncf]; 
  --ncf; 

  dcf1 = 2*ncf*array[ncf]; 
  b0 = ddcf1 = 2*ncf*dcf2; 
  //
  if (!(--ncf)) return b0/2;
  //
  for (int i=ncf;i--;) {
    b2 = b1;                        
    b1 = b0;
    dcf0  = dcf2 + 2*(i+1)*array[i+1];
    ddcf0 = ddcf2 + 2*(i+1)*dcf1; 
    b0 = ddcf0 + x2*b1 -b2;
    //
    ddcf2 = ddcf1;  
    ddcf1 = ddcf0;
    //
    dcf2 = dcf1;
    dcf1 = dcf0;
    //
  }
  //
  return b0 - x*b1 - ddcf0/2;
}

//__________________________________________________________________________________________
Int_t AliCheb3DCalc::GetMaxColsAtRow() const
{
  int nmax3d = 0; 
  for (int i=fNElemBound2D;i--;) if (fCoefBound2D0[i]>nmax3d) nmax3d = fCoefBound2D0[i];
  return nmax3d;
}
 AliCheb3DCalc.cxx:1
 AliCheb3DCalc.cxx:2
 AliCheb3DCalc.cxx:3
 AliCheb3DCalc.cxx:4
 AliCheb3DCalc.cxx:5
 AliCheb3DCalc.cxx:6
 AliCheb3DCalc.cxx:7
 AliCheb3DCalc.cxx:8
 AliCheb3DCalc.cxx:9
 AliCheb3DCalc.cxx:10
 AliCheb3DCalc.cxx:11
 AliCheb3DCalc.cxx:12
 AliCheb3DCalc.cxx:13
 AliCheb3DCalc.cxx:14
 AliCheb3DCalc.cxx:15
 AliCheb3DCalc.cxx:16
 AliCheb3DCalc.cxx:17
 AliCheb3DCalc.cxx:18
 AliCheb3DCalc.cxx:19
 AliCheb3DCalc.cxx:20
 AliCheb3DCalc.cxx:21
 AliCheb3DCalc.cxx:22
 AliCheb3DCalc.cxx:23
 AliCheb3DCalc.cxx:24
 AliCheb3DCalc.cxx:25
 AliCheb3DCalc.cxx:26
 AliCheb3DCalc.cxx:27
 AliCheb3DCalc.cxx:28
 AliCheb3DCalc.cxx:29
 AliCheb3DCalc.cxx:30
 AliCheb3DCalc.cxx:31
 AliCheb3DCalc.cxx:32
 AliCheb3DCalc.cxx:33
 AliCheb3DCalc.cxx:34
 AliCheb3DCalc.cxx:35
 AliCheb3DCalc.cxx:36
 AliCheb3DCalc.cxx:37
 AliCheb3DCalc.cxx:38
 AliCheb3DCalc.cxx:39
 AliCheb3DCalc.cxx:40
 AliCheb3DCalc.cxx:41
 AliCheb3DCalc.cxx:42
 AliCheb3DCalc.cxx:43
 AliCheb3DCalc.cxx:44
 AliCheb3DCalc.cxx:45
 AliCheb3DCalc.cxx:46
 AliCheb3DCalc.cxx:47
 AliCheb3DCalc.cxx:48
 AliCheb3DCalc.cxx:49
 AliCheb3DCalc.cxx:50
 AliCheb3DCalc.cxx:51
 AliCheb3DCalc.cxx:52
 AliCheb3DCalc.cxx:53
 AliCheb3DCalc.cxx:54
 AliCheb3DCalc.cxx:55
 AliCheb3DCalc.cxx:56
 AliCheb3DCalc.cxx:57
 AliCheb3DCalc.cxx:58
 AliCheb3DCalc.cxx:59
 AliCheb3DCalc.cxx:60
 AliCheb3DCalc.cxx:61
 AliCheb3DCalc.cxx:62
 AliCheb3DCalc.cxx:63
 AliCheb3DCalc.cxx:64
 AliCheb3DCalc.cxx:65
 AliCheb3DCalc.cxx:66
 AliCheb3DCalc.cxx:67
 AliCheb3DCalc.cxx:68
 AliCheb3DCalc.cxx:69
 AliCheb3DCalc.cxx:70
 AliCheb3DCalc.cxx:71
 AliCheb3DCalc.cxx:72
 AliCheb3DCalc.cxx:73
 AliCheb3DCalc.cxx:74
 AliCheb3DCalc.cxx:75
 AliCheb3DCalc.cxx:76
 AliCheb3DCalc.cxx:77
 AliCheb3DCalc.cxx:78
 AliCheb3DCalc.cxx:79
 AliCheb3DCalc.cxx:80
 AliCheb3DCalc.cxx:81
 AliCheb3DCalc.cxx:82
 AliCheb3DCalc.cxx:83
 AliCheb3DCalc.cxx:84
 AliCheb3DCalc.cxx:85
 AliCheb3DCalc.cxx:86
 AliCheb3DCalc.cxx:87
 AliCheb3DCalc.cxx:88
 AliCheb3DCalc.cxx:89
 AliCheb3DCalc.cxx:90
 AliCheb3DCalc.cxx:91
 AliCheb3DCalc.cxx:92
 AliCheb3DCalc.cxx:93
 AliCheb3DCalc.cxx:94
 AliCheb3DCalc.cxx:95
 AliCheb3DCalc.cxx:96
 AliCheb3DCalc.cxx:97
 AliCheb3DCalc.cxx:98
 AliCheb3DCalc.cxx:99
 AliCheb3DCalc.cxx:100
 AliCheb3DCalc.cxx:101
 AliCheb3DCalc.cxx:102
 AliCheb3DCalc.cxx:103
 AliCheb3DCalc.cxx:104
 AliCheb3DCalc.cxx:105
 AliCheb3DCalc.cxx:106
 AliCheb3DCalc.cxx:107
 AliCheb3DCalc.cxx:108
 AliCheb3DCalc.cxx:109
 AliCheb3DCalc.cxx:110
 AliCheb3DCalc.cxx:111
 AliCheb3DCalc.cxx:112
 AliCheb3DCalc.cxx:113
 AliCheb3DCalc.cxx:114
 AliCheb3DCalc.cxx:115
 AliCheb3DCalc.cxx:116
 AliCheb3DCalc.cxx:117
 AliCheb3DCalc.cxx:118
 AliCheb3DCalc.cxx:119
 AliCheb3DCalc.cxx:120
 AliCheb3DCalc.cxx:121
 AliCheb3DCalc.cxx:122
 AliCheb3DCalc.cxx:123
 AliCheb3DCalc.cxx:124
 AliCheb3DCalc.cxx:125
 AliCheb3DCalc.cxx:126
 AliCheb3DCalc.cxx:127
 AliCheb3DCalc.cxx:128
 AliCheb3DCalc.cxx:129
 AliCheb3DCalc.cxx:130
 AliCheb3DCalc.cxx:131
 AliCheb3DCalc.cxx:132
 AliCheb3DCalc.cxx:133
 AliCheb3DCalc.cxx:134
 AliCheb3DCalc.cxx:135
 AliCheb3DCalc.cxx:136
 AliCheb3DCalc.cxx:137
 AliCheb3DCalc.cxx:138
 AliCheb3DCalc.cxx:139
 AliCheb3DCalc.cxx:140
 AliCheb3DCalc.cxx:141
 AliCheb3DCalc.cxx:142
 AliCheb3DCalc.cxx:143
 AliCheb3DCalc.cxx:144
 AliCheb3DCalc.cxx:145
 AliCheb3DCalc.cxx:146
 AliCheb3DCalc.cxx:147
 AliCheb3DCalc.cxx:148
 AliCheb3DCalc.cxx:149
 AliCheb3DCalc.cxx:150
 AliCheb3DCalc.cxx:151
 AliCheb3DCalc.cxx:152
 AliCheb3DCalc.cxx:153
 AliCheb3DCalc.cxx:154
 AliCheb3DCalc.cxx:155
 AliCheb3DCalc.cxx:156
 AliCheb3DCalc.cxx:157
 AliCheb3DCalc.cxx:158
 AliCheb3DCalc.cxx:159
 AliCheb3DCalc.cxx:160
 AliCheb3DCalc.cxx:161
 AliCheb3DCalc.cxx:162
 AliCheb3DCalc.cxx:163
 AliCheb3DCalc.cxx:164
 AliCheb3DCalc.cxx:165
 AliCheb3DCalc.cxx:166
 AliCheb3DCalc.cxx:167
 AliCheb3DCalc.cxx:168
 AliCheb3DCalc.cxx:169
 AliCheb3DCalc.cxx:170
 AliCheb3DCalc.cxx:171
 AliCheb3DCalc.cxx:172
 AliCheb3DCalc.cxx:173
 AliCheb3DCalc.cxx:174
 AliCheb3DCalc.cxx:175
 AliCheb3DCalc.cxx:176
 AliCheb3DCalc.cxx:177
 AliCheb3DCalc.cxx:178
 AliCheb3DCalc.cxx:179
 AliCheb3DCalc.cxx:180
 AliCheb3DCalc.cxx:181
 AliCheb3DCalc.cxx:182
 AliCheb3DCalc.cxx:183
 AliCheb3DCalc.cxx:184
 AliCheb3DCalc.cxx:185
 AliCheb3DCalc.cxx:186
 AliCheb3DCalc.cxx:187
 AliCheb3DCalc.cxx:188
 AliCheb3DCalc.cxx:189
 AliCheb3DCalc.cxx:190
 AliCheb3DCalc.cxx:191
 AliCheb3DCalc.cxx:192
 AliCheb3DCalc.cxx:193
 AliCheb3DCalc.cxx:194
 AliCheb3DCalc.cxx:195
 AliCheb3DCalc.cxx:196
 AliCheb3DCalc.cxx:197
 AliCheb3DCalc.cxx:198
 AliCheb3DCalc.cxx:199
 AliCheb3DCalc.cxx:200
 AliCheb3DCalc.cxx:201
 AliCheb3DCalc.cxx:202
 AliCheb3DCalc.cxx:203
 AliCheb3DCalc.cxx:204
 AliCheb3DCalc.cxx:205
 AliCheb3DCalc.cxx:206
 AliCheb3DCalc.cxx:207
 AliCheb3DCalc.cxx:208
 AliCheb3DCalc.cxx:209
 AliCheb3DCalc.cxx:210
 AliCheb3DCalc.cxx:211
 AliCheb3DCalc.cxx:212
 AliCheb3DCalc.cxx:213
 AliCheb3DCalc.cxx:214
 AliCheb3DCalc.cxx:215
 AliCheb3DCalc.cxx:216
 AliCheb3DCalc.cxx:217
 AliCheb3DCalc.cxx:218
 AliCheb3DCalc.cxx:219
 AliCheb3DCalc.cxx:220
 AliCheb3DCalc.cxx:221
 AliCheb3DCalc.cxx:222
 AliCheb3DCalc.cxx:223
 AliCheb3DCalc.cxx:224
 AliCheb3DCalc.cxx:225
 AliCheb3DCalc.cxx:226
 AliCheb3DCalc.cxx:227
 AliCheb3DCalc.cxx:228
 AliCheb3DCalc.cxx:229
 AliCheb3DCalc.cxx:230
 AliCheb3DCalc.cxx:231
 AliCheb3DCalc.cxx:232
 AliCheb3DCalc.cxx:233
 AliCheb3DCalc.cxx:234
 AliCheb3DCalc.cxx:235
 AliCheb3DCalc.cxx:236
 AliCheb3DCalc.cxx:237
 AliCheb3DCalc.cxx:238
 AliCheb3DCalc.cxx:239
 AliCheb3DCalc.cxx:240
 AliCheb3DCalc.cxx:241
 AliCheb3DCalc.cxx:242
 AliCheb3DCalc.cxx:243
 AliCheb3DCalc.cxx:244
 AliCheb3DCalc.cxx:245
 AliCheb3DCalc.cxx:246
 AliCheb3DCalc.cxx:247
 AliCheb3DCalc.cxx:248
 AliCheb3DCalc.cxx:249
 AliCheb3DCalc.cxx:250
 AliCheb3DCalc.cxx:251
 AliCheb3DCalc.cxx:252
 AliCheb3DCalc.cxx:253
 AliCheb3DCalc.cxx:254
 AliCheb3DCalc.cxx:255
 AliCheb3DCalc.cxx:256
 AliCheb3DCalc.cxx:257
 AliCheb3DCalc.cxx:258
 AliCheb3DCalc.cxx:259
 AliCheb3DCalc.cxx:260
 AliCheb3DCalc.cxx:261
 AliCheb3DCalc.cxx:262
 AliCheb3DCalc.cxx:263
 AliCheb3DCalc.cxx:264
 AliCheb3DCalc.cxx:265
 AliCheb3DCalc.cxx:266
 AliCheb3DCalc.cxx:267
 AliCheb3DCalc.cxx:268
 AliCheb3DCalc.cxx:269
 AliCheb3DCalc.cxx:270
 AliCheb3DCalc.cxx:271
 AliCheb3DCalc.cxx:272
 AliCheb3DCalc.cxx:273
 AliCheb3DCalc.cxx:274
 AliCheb3DCalc.cxx:275
 AliCheb3DCalc.cxx:276
 AliCheb3DCalc.cxx:277
 AliCheb3DCalc.cxx:278
 AliCheb3DCalc.cxx:279
 AliCheb3DCalc.cxx:280
 AliCheb3DCalc.cxx:281
 AliCheb3DCalc.cxx:282
 AliCheb3DCalc.cxx:283
 AliCheb3DCalc.cxx:284
 AliCheb3DCalc.cxx:285
 AliCheb3DCalc.cxx:286
 AliCheb3DCalc.cxx:287
 AliCheb3DCalc.cxx:288
 AliCheb3DCalc.cxx:289
 AliCheb3DCalc.cxx:290
 AliCheb3DCalc.cxx:291
 AliCheb3DCalc.cxx:292
 AliCheb3DCalc.cxx:293
 AliCheb3DCalc.cxx:294
 AliCheb3DCalc.cxx:295
 AliCheb3DCalc.cxx:296
 AliCheb3DCalc.cxx:297
 AliCheb3DCalc.cxx:298
 AliCheb3DCalc.cxx:299
 AliCheb3DCalc.cxx:300
 AliCheb3DCalc.cxx:301
 AliCheb3DCalc.cxx:302
 AliCheb3DCalc.cxx:303
 AliCheb3DCalc.cxx:304
 AliCheb3DCalc.cxx:305
 AliCheb3DCalc.cxx:306
 AliCheb3DCalc.cxx:307
 AliCheb3DCalc.cxx:308
 AliCheb3DCalc.cxx:309
 AliCheb3DCalc.cxx:310
 AliCheb3DCalc.cxx:311
 AliCheb3DCalc.cxx:312
 AliCheb3DCalc.cxx:313
 AliCheb3DCalc.cxx:314
 AliCheb3DCalc.cxx:315
 AliCheb3DCalc.cxx:316
 AliCheb3DCalc.cxx:317
 AliCheb3DCalc.cxx:318
 AliCheb3DCalc.cxx:319
 AliCheb3DCalc.cxx:320
 AliCheb3DCalc.cxx:321
 AliCheb3DCalc.cxx:322
 AliCheb3DCalc.cxx:323
 AliCheb3DCalc.cxx:324
 AliCheb3DCalc.cxx:325
 AliCheb3DCalc.cxx:326
 AliCheb3DCalc.cxx:327
 AliCheb3DCalc.cxx:328
 AliCheb3DCalc.cxx:329
 AliCheb3DCalc.cxx:330
 AliCheb3DCalc.cxx:331
 AliCheb3DCalc.cxx:332
 AliCheb3DCalc.cxx:333
 AliCheb3DCalc.cxx:334
 AliCheb3DCalc.cxx:335
 AliCheb3DCalc.cxx:336
 AliCheb3DCalc.cxx:337
 AliCheb3DCalc.cxx:338
 AliCheb3DCalc.cxx:339
 AliCheb3DCalc.cxx:340
 AliCheb3DCalc.cxx:341
 AliCheb3DCalc.cxx:342
 AliCheb3DCalc.cxx:343
 AliCheb3DCalc.cxx:344
 AliCheb3DCalc.cxx:345
 AliCheb3DCalc.cxx:346
 AliCheb3DCalc.cxx:347
 AliCheb3DCalc.cxx:348
 AliCheb3DCalc.cxx:349
 AliCheb3DCalc.cxx:350
 AliCheb3DCalc.cxx:351
 AliCheb3DCalc.cxx:352
 AliCheb3DCalc.cxx:353
 AliCheb3DCalc.cxx:354
 AliCheb3DCalc.cxx:355
 AliCheb3DCalc.cxx:356
 AliCheb3DCalc.cxx:357
 AliCheb3DCalc.cxx:358
 AliCheb3DCalc.cxx:359
 AliCheb3DCalc.cxx:360
 AliCheb3DCalc.cxx:361
 AliCheb3DCalc.cxx:362
 AliCheb3DCalc.cxx:363
 AliCheb3DCalc.cxx:364
 AliCheb3DCalc.cxx:365
 AliCheb3DCalc.cxx:366
 AliCheb3DCalc.cxx:367
 AliCheb3DCalc.cxx:368
 AliCheb3DCalc.cxx:369
 AliCheb3DCalc.cxx:370
 AliCheb3DCalc.cxx:371
 AliCheb3DCalc.cxx:372
 AliCheb3DCalc.cxx:373
 AliCheb3DCalc.cxx:374
 AliCheb3DCalc.cxx:375
 AliCheb3DCalc.cxx:376
 AliCheb3DCalc.cxx:377
 AliCheb3DCalc.cxx:378
 AliCheb3DCalc.cxx:379
 AliCheb3DCalc.cxx:380
 AliCheb3DCalc.cxx:381
 AliCheb3DCalc.cxx:382
 AliCheb3DCalc.cxx:383
 AliCheb3DCalc.cxx:384
 AliCheb3DCalc.cxx:385
 AliCheb3DCalc.cxx:386
 AliCheb3DCalc.cxx:387
 AliCheb3DCalc.cxx:388
 AliCheb3DCalc.cxx:389
 AliCheb3DCalc.cxx:390
 AliCheb3DCalc.cxx:391
 AliCheb3DCalc.cxx:392
 AliCheb3DCalc.cxx:393
 AliCheb3DCalc.cxx:394
 AliCheb3DCalc.cxx:395
 AliCheb3DCalc.cxx:396
 AliCheb3DCalc.cxx:397
 AliCheb3DCalc.cxx:398
 AliCheb3DCalc.cxx:399
 AliCheb3DCalc.cxx:400
 AliCheb3DCalc.cxx:401
 AliCheb3DCalc.cxx:402
 AliCheb3DCalc.cxx:403
 AliCheb3DCalc.cxx:404
 AliCheb3DCalc.cxx:405
 AliCheb3DCalc.cxx:406
 AliCheb3DCalc.cxx:407
 AliCheb3DCalc.cxx:408
 AliCheb3DCalc.cxx:409
 AliCheb3DCalc.cxx:410
 AliCheb3DCalc.cxx:411
 AliCheb3DCalc.cxx:412
 AliCheb3DCalc.cxx:413
 AliCheb3DCalc.cxx:414
 AliCheb3DCalc.cxx:415
 AliCheb3DCalc.cxx:416
 AliCheb3DCalc.cxx:417
 AliCheb3DCalc.cxx:418
 AliCheb3DCalc.cxx:419
 AliCheb3DCalc.cxx:420
 AliCheb3DCalc.cxx:421
 AliCheb3DCalc.cxx:422
 AliCheb3DCalc.cxx:423
 AliCheb3DCalc.cxx:424
 AliCheb3DCalc.cxx:425
 AliCheb3DCalc.cxx:426
 AliCheb3DCalc.cxx:427
 AliCheb3DCalc.cxx:428
 AliCheb3DCalc.cxx:429
 AliCheb3DCalc.cxx:430
 AliCheb3DCalc.cxx:431
 AliCheb3DCalc.cxx:432
 AliCheb3DCalc.cxx:433
 AliCheb3DCalc.cxx:434
 AliCheb3DCalc.cxx:435
 AliCheb3DCalc.cxx:436
 AliCheb3DCalc.cxx:437
 AliCheb3DCalc.cxx:438
 AliCheb3DCalc.cxx:439
 AliCheb3DCalc.cxx:440
 AliCheb3DCalc.cxx:441
 AliCheb3DCalc.cxx:442