Please find below more details and a test program and associated ntuple.
In the mean time, I have “cloned” my ntuple suppressing the UInt variables
and can read the “cloned” files.
The macro + input ntuple is available at /afs/cern.ch/user/i/isabelle/public/testUInt .
I have tried to run on my MacBook and got error number 1 (see below and my post of yesterday) and
on lxplus and got error number 2 (see below).
root [0]
Processing testUInt.C…
==> entering
===> file HG opened LArRamp_00281325_EB-EMBA_StripsXtalkCorr_OFC.root
==> done
Error in TTreeReaderValueBase::CreateProxy(): The branch DACIndex contains data of type unsigned int. It cannot be accessed by a TTreeReaderValue
root [0]
Processing testUInt.C…
==> entering
Error in TFile::ReadBuffer: error reading all requested bytes from file LArRamp_00281325_EB-EMBA_StripsXtalkCorr_OFC.root, got 0 of 300
Error in TFile::Init: LArRamp_00281325_EB-EMBA_StripsXtalkCorr_OFC.root failed to read the file type data.
===> file HG opened LArRamp_00281325_EB-EMBA_StripsXtalkCorr_OFC.root
==> done
root [1]
thank you very much for your reply.
I have just put back the file (and also the one I created to overcome the problem with _copy in the filename).
Please excuse me for giving you an empty file… I must have made a wrong manipulation at some stage.
Hi Axel. I am experiencing the same problem as Isabelle. The progress tracker indicates that the case was transferred to Philippe Canal some time ago. Do you know if any progress has been made since? Thanks, Oliver
Updating ROOT to support unsigned int for array size is not trivial and we have not found the resource to do this work so far. Note that in most case, you can replace the C-style array (and its size variable) by an std::vector (Solving this problem and simplify your code in general)
Thanks for the quick reply. I solved the problem by implementing my own tree reader. Fixing the tree is not really an option (the format of the tree is determined by some other software which I cannot easily change). I will make sure to use vectors instead of arrays in future projects! Cheers, Oliver