Erroneous Error messages from TTree::Draw


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.26.00
Platform: Ubuntu 20
Compiler: GCC 10.3


I am getting following error messages when I run the Draw command of TTree.
fProfileData id std::vector<std::vector<UShort_t>> with dimension 31*1088.
fHitPattern is std::vector<UInt_t> with length 1088.
Interestingly, I am getting results and they seem to be okay.

tr -> Draw("Iteration$","(Max$(HighGainData.fProfileData[][133]) == HighGainData.fProfileData[][133]) && HighGainData.fHitPattern[133]")
Error in <TArrayI::At>: index 133 out of bounds (size: 31, this: 0x5568209768a0)
Error in <TArrayI::At>: index 133 out of bounds (size: 31, this: 0x5568209768a0)

Yes, that’s weird. I guess @pcanal might know what’s going on.

Okay.
Making fProfileData to be a std::vector<std::vector<UShort_t>> with dimenison 1088*31 solved the problem

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.