Dear ROOTers,
if to generate with the macro tree1.C from ROOT tutorials the tree1.root file with 10000000 entries instead of 10000, the file contains 2 cycles of t1. Please take a look at the output of GetEntries() for "t1;2" in the ROOT session below. Is it a bug or it isn't supposed to use GetEntries() with all cycles except the last one?
Regards,
Vassili.
[pcmspur5] ~/CyclePlay > root
FreeType Engine v2.1.9 used to render TrueType fonts. Compiled on 9 November 2005 for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.16.2, July 14 2005 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }.
Welcome to the ROOT tutorials
Type ".x demos.C" to get a toolbar from which to execute the demos
Type ".x demoshelp.C" to see the help window
root [0] TFile f("tree1.root")
root [1] f->GetListOfKeys()->Print()
TKey Name = t1, Title = a simple Tree with simple variables, Cycle = 3
TKey Name = t1, Title = a simple Tree with simple variables, Cycle = 2
root [2] t2 = (TTree*)f->Get("t1;2")
(class TTree*)0xb32af98
root [3] t3 = (TTree*)f->Get("t1;3")
(class TTree*)0xb3e3778
root [4] t2->GetEntries()
(const Long64_t)181667083577196544
root [5] t3->GetEntries()
(const Long64_t)10000000
root [6]
Received on Fri Mar 31 2006 - 12:14:27 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET