RE: Loop problem with ROOT 5.18

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Fri, 29 Feb 2008 11:03:53 -0600


Hi,

This indicates that the TChain thinks there is no data (or not consistent data if using Friends) in your files.

You might want to check with others in your Colloboration (ATLAS?) if they have a sample/example you could start from.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Antonio Salvucci
Sent: Friday, February 29, 2008 8:40 AM
To: roottalk_at_root.cern.ch
Subject: [ROOT] Loop problem with ROOT 5.18

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 - 18:04:29 CET

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