Example Macro doesn't run

Dear Rooters,

I want to run an Example macro taken from the AliRoot web page but it produces an following error,

Error in TBufferFile::ReadObject: trying to read an emulated class (AliESDEvent) to store in a compiled pointer (TObject)
OBJ: TTree esdTree Tree with ESD objects : 0 at: 0x932fb40
Error: Symbol AliESDTZERO is not defined in current scope readESD.C:32:
Error: Symbol AliESDTZERO is not defined in current scope readESD.C:32:
Error: type AliESDTZERO not defined FILE:/home/myroot/Desktop/deneme/deneme/./readESD.C LINE:32
Warning: Automatic variable AliESDTZEROfesdT0 is allocated readESD.C:32:
Error: Undeclared variable AliESDTZERO
fesdT0 readESD.C:32:
*** Interpreter error recovered ***

I would be grateful if you could help me to solve this problem.

I’ve attached the root file and the example macro.

Thank you,

Kind regards,

Ayben
readESD.C (2.72 KB)
AliESDs.root (413 KB)

Hi,

you are probably missing the dictionary for AliESDEvent. Did you run the example macro with aliroot or root? aliroot should load the dictionaries, bare root might not.

Cheers, Axel.

Dear Axel,

Thank you for the reply. Macro is working with Aliroot.

Thank you so much again.

Kind regards,
Ayben