TArrayI::GetAt() returns Double_t?


ROOT Version: 6.41.01
Platform: linuxx8664gcc
Compiler: c++ (GCC) 16.2.1 20260819 (Red Hat 16.2.1-2) std202002


Hi…

According to the reference guide for TArrayI which is “Array of integers”, GetAt(Int_t i) returns a Double_t, not an integer. Why?

Thanks.

The TArray base class declares (and it cannot be changed in a derived class):
Double_t TArray::GetAt (Int_t i)
void TArray::SetAt (Double_t v, Int_t i)

Note: you can use TArrayI specific methods:
Int_t TArrayI::At (Int_t i)
void TArrayI::AddAt (Int_t c, Int_t i)