Adding TStatToolkit to the Makefile s (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Oct 2007 12:21:38 +0000 (12:21 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Oct 2007 12:21:38 +0000 (12:21 +0000)
STAT/Makefile
STAT/TStatToolkit.cxx
STAT/kDStatLinkDef.h
STAT/libKDStat.pkg

index cdcd380..988a228 100644 (file)
@@ -17,8 +17,8 @@ OutPutOpt = -o
 
 CXX       = g++
 LD        = g++
-CXXFLAGS  = -O -g -pg -fPIC
-LDFLAGS   = -O -g -pg -fPIC
+CXXFLAGS  = -O -g -pg -fPIC -Wall -Weffc++
+LDFLAGS   = -O -g -pg -fPIC -Wall -Weffc++
 SOFLAGS   = -shared -g -pg -fPIC
 
 ROOTCXX  = $(shell root-config --cflags)
index 981bd75..3eaa384 100644 (file)
@@ -784,6 +784,14 @@ TString* TStatToolkit::FitPlane(TTree *tree, const char* drawCommand, const char
    chi2 = fitter->GetChisquare();
    chi2 = chi2;
    npoints = entries;
+//    TString *preturnFormula = new TString(Form("%f*(",fitParam[0])), &returnFormula = *preturnFormula; 
+   
+//    for (Int_t iparam = 0; iparam < dim; iparam++) {
+//      returnFormula.Append(Form("%s*(%f)",((TObjString*)formulaTokens->At(iparam))->GetName(),fitParam[iparam+1]/fitParam[0]));
+//      if (iparam < dim-1) returnFormula.Append("+");
+//    }
+//    returnFormula.Append(" )");
+   
    TString *preturnFormula = new TString(Form("( %f+",fitParam[0])), &returnFormula = *preturnFormula; 
    
    for (Int_t iparam = 0; iparam < dim; iparam++) {
@@ -791,6 +799,10 @@ TString* TStatToolkit::FitPlane(TTree *tree, const char* drawCommand, const char
      if (iparam < dim-1) returnFormula.Append("+");
    }
    returnFormula.Append(" )");
+   
+   
+
+
    delete formulaTokens;
    delete fitter;
    delete[] values;
index 498db71..08e6abe 100644 (file)
@@ -19,6 +19,7 @@
 #pragma link C++ class TKDInterpolator::TKDNodeInfo+;
 #pragma link C++ class TKDSpline+;
 #pragma link C++ class AliTMinuitToolkit+;
+#pragma link C++ class TStatToolkit+;
 
 
 #endif
index 1fa4156..912815e 100644 (file)
@@ -1,5 +1,7 @@
-SRCS=  TKDTree.cxx TKDInterpolator.cxx TKDSpline.cxx AliTMinuitToolkit.cxx
+SRCS=  TKDTree.cxx TKDInterpolator.cxx TKDSpline.cxx AliTMinuitToolkit.cxx TStatToolkit.cxx
 
 HDRS= $(SRCS:.cxx=.h)
 
 DHDR:=kDStatLinkDef.h
+
+EINCLUDE:= STEER include