Error TF1::TF1

From: Daniel A. Fagundes <fagundes_at_ifi.unicamp.br>
Date: Mon, 4 Apr 2011 18:25:00 -0300


Hi rooters!
I tried to run a macro using some TF1 functions (one within another) and i got the error:

*Error in <TFormula::Compile>: Too many operators !
Error in <TF1::TF1>: function:
RE_sigDPT/RE_sig1*(RE_sig2+RE_sig3)-IM_sig1*(IM_sig2+IM_sig3) has 0 parameters instead of 1
Error in <TFormula::Compile>: Bad numerical expression : "RE_sigDPT" Error in <TF1::TF1>: function: dIM_sig_ggDPT/I_tau*RE_sigDPT has 0 parameters instead of 1*

Here it goes part of the code:
*

TF1 *RE_sig1= new
TF1("RE_sig1","-[0]*RE_alphaDPT*IM_alphaDPT/(x*[1])",0.0,1.0);

   RE_sig1->SetParameter(0,6.0*pi);
   RE_sig1->SetParameter(1,s_cm);

TF1 *IM_sig1 = new
TF1("IM_sig1","[0]*(TMath::Power(RE_alphaDPT,2)+TMath::Power(IM_alphaDPT,2))/(x*[1])",0.0,1.0);

   IM_sig1->SetParameter(0,3.0*pi);
   IM_sig1->SetParameter(1,s_cm);

TF1 *RE_sig2 = new
TF1("RE_sig2","RE_z4*RE_z5/(TMath::Power(RE_z5,2)+TMath::Power(IM_z5,2))",0.0,1.0);
TF1 *IM_sig2 = new
TF1("IM_sig2","(IM_z4*RE_z5-RE_z4*IM_z5)/(TMath::Power(RE_z5,2)+TMath::Power(IM_z5,2))",0.0,1.0);

TF1 *RE_sig3 = new TF1("RE_sig3","-3.0*TMath::Log(r6)",0.0,1.0); TF1 *IM_sig3 = new TF1("IM_sig3","-3.0*theta6",0.0,1.0);

 TF1 *RE_sigDPT = new
TF1("RE_sigDPT","RE_sig1*(RE_sig2+RE_sig3)-IM_sig1*(IM_sig2+IM_sig3)",0.0,1.0);

*Appreciate any help!

Cheers,
Daniel.*

*



Daniel Almeida Fagundes
Estudante de Doutorado - PhD Physics Student Universidade Estadual de Campinas - UNICAMP Instituto de Física Gleb Wataghin - IFGW Departamento de Raios Cósmicos e Cronologia - DRCC Grupo Teórico - Fenomenologia das Interações Hadrônicas Sala: 205
Ramal: 5535
Contatos:
Tel: +55 (19) 3521-5535
Cel: +55 (19) 9366-4227
-----------------------------------------------------------------------------------------
Received on Mon Apr 04 2011 - 23:25:37 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 06 2011 - 23:50:01 CEST