When I use a class created from a tree (using MakeClass) with the new version (4.04) on MacOS X the Loop() function has a problem. The loop part like:
…
for (Long64_t jentry=0; jentry<nentries;jentry++) {
Long64_t ientry = LoadTree(jentry);
cout << " jentry = " << jentry << endl;
if (ientry < 0) break;
nb = fChain->GetEntry(jentry); nbytes += nb;
// if (Cut(ientry) < 0) continue;
}
…
is only carried out once, even though the condition ‘jentry<nentries’ is not fulfilled and ientry = 0. If I run the same script with on older version e.g. 4.02 everything works fine.
Has anybody the same problem or any idea what it could be. Thanks for suggestions and
This is strange indeed. First make sure that the (rest of the) code is correct by compiling it (using ACLiC for example). If the compiled version works correctly then you may have incorrect a problem in CINT (try to issue the CINT command .O 0 and see if helps) in which case you should submit a complete example that we can reproduce and solve the issue.