Problem with TChain::MakeClass

I don’t know what I am doing wrong, but I can’t seem to get any sense out of the code generated from MakeClass.

I’m running on Windows Vista, with ROOT 5.18/00. Here is what happens:

  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.18/00   16 January 2008   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *            *
  *                                         *

ROOT 5.18/00 (trunk@21744, Jan 17 2008, 15:00:00 on win32)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TChain *c = new TChain("EGAMMA");
root [1] c->Add("R:/root/eg05_Hgg_IVBfusion_m140_1.root");
root [2] c->MakeClass("EGAMMA");
Warning in <TClass::TClass>: no dictionary for class IntVec is available
Info in <TTreePlayer::MakeClass>: Files: EGAMMA.h and EGAMMA.C generated from TTree: EGAMMA
root [3] .L EGAMMA.C
root [4] EGAMMA t
root [5] t.Loop()
Error: C++ exception caught F:\EGAMMA.C(40)
*** Interpreter error recovered ***
root [6]

Line 40 in the generated EGAMMA.C: “nb = fChain->GetEntry(jentry); nbytes += nb;”

Any suggestions most welcome. :blush:

Hi Julian,

Could you post your file somewhere in a public area?


Hi Rene,

I put it temporarily at: … 140_1.root

It’s about 30MB.



This file does not exist.


It was there, but I needed to configure IIS to support the root mime type :astonished:

Please try again.

let me know once the file is available


[quote=“brun”]let me know once the file is available


Sorry, Rene: the file should be there now.