I can't read tree

What is wrong with this code???

{
TFile *file1 = new TFile(“deltateta_2.5_bar1_coll.root”);
// TFile *file2 = new TFile(“deltateta_2.5_bar2_coll.root”);
TTree tree1 =(TTree) file1->Get(“tree”);
// TTree tree2 =(TTree) file2->Get(“tree”);
Double_t teta1a,teta2a;
Int_t Nev1,Nev2;
tree1->SetBranchAddress(“teta1”,&teta1a);
for(Int_t i=0;i<10;i++)
{
tree1->GetEntry(i);
cout<<teta1a<<endl;
}
file1->Close();
// file2->Close();
}

In output I can’t see the teta1a value but I think is pointer (is a nuber with a lot of numebrs)

tree is a simple tree with 3 branch teta1,Nev1,track1!

Are you sure that teta1 is stored as a double? See the result of tree1->MakeSelector(“mysel”) for an example of how to set your variables.

Philippe

Yes I’m sure cause I did that tree reading datas froma file and I put that variable as a Double_t

Can you send me your file of at least the result of Print() on your tree?

Cheers,
Philippe.