#ifndef ALILATEXTABLE_H
#define ALILATEXTABLE_H
#if !defined(__CINT__) || defined(__MAKECINT__)
#include "TObject.h"
#include "TString.h"
class TObjArray;
#endif
using namespace std;
class AliLatexTable : public TObject {
public:
AliLatexTable() ;
AliLatexTable(Int_t ncol, TString format);
~AliLatexTable();
void LoadTeXFromFileAndPrintASCII(const char * filename);
void SetNextCol(Int_t val);
void SetNextCol(Int_t val, Int_t err);
void SetNextCol(Double_t val, Int_t scientificNotation = -1, Bool_t rounding = kTRUE);
void SetNextCol(Double_t val, Double_t err, Int_t scientificNotation = -1, Bool_t rounding = kTRUE);
void SetNextCol(Double_t val, Double_t err, Double_t errSyst, Int_t scientificNotation = -1, Bool_t rounding = kTRUE);
void SetNextCol(TString val);
void InsertRow();
void InsertCustomRow(TString row);
void InsertHline();
void PrintTable(Option_t * opt = "");
void GetMantissaAndExpBase10(Double_t num, Double_t &man, Double_t &exp) ;
Int_t * GetColWidths();
void StripLatex(TString &row, TString format) ;
private:
Int_t fNcol;
TString fFormat;
TObjArray * fRows;
TObjArray * fCols;
Int_t fNcolReady;
AliLatexTable(const AliLatexTable&);
AliLatexTable& operator=(const AliLatexTable&);
ClassDef(AliLatexTable, 1)
};
#endif