Hi
I am trying to loop over all histrograms in a directory,
I use the following commands
TFile *_file0 = TFile::Open(“mc12_8TeV.110101.AcerMCPythia_P2011CCTEQ6L1_singletop_tchan_l.RIVET.v1.root”);
TDirectoryFile d=(TDirectoryFile)_file0->Get(“MC_Zt_Truth”)
TIter next(d->GetListOfKeys());
and I keep recieving this error mesage
ROOT_prompt_2:1:7: error: redefinition of ‘next’ as different kind of symbol
TIter next(d->GetListOfKeys());
^
/afs/cern.ch/sw/lcg/contrib/gcc/4.8.1/x86_64-slc6-gcc48-opt/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/…/…/…/…/include/c++/4.8.1/bits/stl_iterator_base_funcs.h:184:5: note: previous definition is here
next(_ForwardIterator __x, typename
^
I use ROOT 6.02/01 on lxplus.