Although a TTree consists of 48 entries, Print() just shows one entry in it

Dear All,

Why does it show just 1 entry ? it consists of 48 entries .
Rootfile is in the attachment.

To run the script ,please,try this one: root -l ‘Tree.C(2983)’


#include <iostream>

using namespace std;

void Tree(int runno) {

  char rootfile[100];
                                                        
  sprintf(rootfile,"%d_LEDNtuples.root",runno);
  TFile *f = new TFile(rootfile);

  TTree *tree = f->Get("HFLEDInfo");
  tree->Print(); 
  
  int nentries = tree->GetEntries();
  cout<<nentries<<endl;
  
  }

Thanks for your helps,
Cheers,
Ersel
2983_LEDNtuples.root (423 KB)

OK I understood the reason why that is so because it is TTree::Fill() out of the loop, so it was filled once!