Function lee() Busy flag cleared

Hello!

I try to run this :

void clase::lee(char *name, Int_t linmax, Int_t veces){

ifstream ino;

ino.open("ref_antes.dat");

TMatrixD datos(linmax,8);
TMatrixD centroides(veces,5); 

Double_t m=0;
vector<int> n;
Int_t j=0;

char hname1[100], hname2[100], hname3[100], hname4[100];

TIter calIterx(calibradoIx), calItery(calibradoIy), linIterx(linearityIx), linItery(linearityIy);

calIterx.Reset();
calItery.Reset();
linIterx.Reset();
linItery.Reset();

TH1F *hp1, *hp2, *hp3, *hp4; 

for(int i=0;i<veces;i++){

  sprintf(hname1,"calIx%i",i);
  sprintf(hname2,"calIy%i",i);
  sprintf(hname3,"linIx%i",i);
  sprintf(hname4,"linIy%i",i);
  TH1F *h1= new TH1F(hname1,"Perfil de intensidad de carga coordenada x del sensor de calibrado",64,0,63);
  TH1F *h2= new TH1F(hname2,"Perfil de intensidad de carga coordenada y del sensor de calibrado",64,0,63);
  TH1F *h3= new TH1F(hname3,"Perfil de intensidad de carga coordenada x del sensor de linearidad",64,0,63);
  TH1F *h4= new TH1F(hname4,"Perfil de intensidad de carga coordenada y del sensor de linearidad",64,0,63);
  calibradoIx.AddLast(h1);
  calibradoIy.AddLast(h2);
  linearityIx.AddLast(h3);
  linearityIy.AddLast(h4);

}//for

for (Int_t nlines=0;nlines<linmax;nlines++) {
	       
 for (Int_t k=0;k<veces>0) break;
   n.push_back(64*(k+1));

 }//for

 for (k=0;k<veces>> centroides(k,0) >> centroides(k,1) >> centroides(k,2) >> centroides(k,3) >> centroides(k,4) >> m;

   }//if

 }//for

 ino >> m >> datos(nlines,0) >> datos(nlines,1) >> datos(nlines,2) >> datos(nlines,3) >> datos(nlines,4) >> datos(nlines,5) >> datos(nlines,6) >> datos(nlines,7);

}//for



ino.close();


while(hp1=(TH1F*)calIterx.Next()&hp2=(TH1F*)calItery.Next()&hp3=(TH1F*)linIterx.Next()&hp4=(TH1F*)linItery.Next()){

 for(j=j-64*(i-1);j<64>Fill(datos(j,0));
   calIterx.Next()->SetBinError(l,datos(j,1));
   calItery.Next()->Fill(datos(j,2));
   calItery.Next()->SetBinError(l,datos(j,3));
   linIterx.Next()->Fill(datos(j,4));
   linIterx.Next()->SetBinError(l,datos(j,5));
   linItery.Next()->Fill(datos(j,6));
   linItery.Next()->SetBinError(l,datos(j,7));

 }//for

}//for

}//void

and ROOT returns: “function lee() busy flag cleared”

I think it’s related to object TIter, I’ve read the user’s guide but it hasn’t any example and the explanation isn’t very detailed I think.

Bye!

your script cannot compile. What are all these variables used in

TIter calIterx(calibradoIx), calItery(calibradoIy), linIterx(linearityIx), linItery(linearityIy);

Please send a concrete/complete script showing your problem.

Rene

Hello!

I’ve maked some changes in the class and I’ve got a new problem. I will open another post with the source code file.

Ok?

Sorry for lasting so in posting a message.

Bye and thanks!