Loop problem with ROOT 5.18

From: Antonio Salvucci <s4lb04_at_gmail.com>
Date: Fri, 29 Feb 2008 15:40:29 +0100


HI list,

        I'm Antonio Salvucci. I have a problem using ROOT 5.18. I compiled and installed it on my Debian OS (Amd64 version). I try to explain my problem:

  1. I have to load some .root files, so I use TChain command to load them:
		TChain *tree = new TChain("CollectionTree","")
		tree->Add("path's files ")
		tree->MakeClass("name")

2) the I use .L name.C command to compile

3) after it, I use .Loop() command to run

At point 3, after I done .Loop(), my Root do anything. I Insert some debug lines in my code in this way:

if (fChain == 0) return;

   Long64_t nentries = fChain->GetEntriesFast();

   Long64_t nbytes = 0, nb = 0;

  cout << "DEBUG::start::" << endl;

   for (Long64_t jentry=0; jentry<nentries;jentry++) {

        cout << "DEBUG::Load1::" << jentry << endl;

      Long64_t ientry = LoadTree(jentry);

        cout << "DEBUG::Load2::" << jentry << endl;

      if (ientry < 0) break;

        cout << "DEBUG::Load3::" << jentry << endl;

      nb = fChain->GetEntry(jentry);

        cout << "DEBUG::Load4::" << jentry << endl;

      nbytes += nb;

        cout << "DEBUG::Load5::" << jentry << endl;
	}

From Debug lines I return only these

DEBUB::Load1
DEBUG::Load2  

I had the same problem with 5.17 version, installed from Christian Holm Christensen's debian repository.

Cheers,
Antonio.

Received on Fri Feb 29 2008 - 15:40:47 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 29 2008 - 23:50:01 CET