RTreeColumnReader specialization for TTree values read via TTreeReaderArrays.
TTreeReaderArrays are used whenever the RDF column type is RVec<T>.
Definition at line 56 of file RTreeColumnReader.hxx.
Public Member Functions | |
RTreeColumnReader (TTreeReader &r, const std::string &colName) | |
~RTreeColumnReader () override | |
See the other class template specializations for an explanation. | |
Public Member Functions inherited from ROOT::Detail::RDF::RColumnReaderBase | |
virtual | ~RColumnReaderBase ()=default |
template<typename T > | |
T & | Get (Long64_t entry) |
Return the column value for the given entry. | |
Private Types | |
enum class | EStorageType : char { kContiguous , kUnknown , kSparse } |
Enumerator for the memory layout of the branch. More... | |
Private Member Functions | |
void * | GetImpl (Long64_t entry) final |
Private Attributes | |
bool | fCopyWarningPrinted = false |
Whether we already printed a warning about performing a copy of the TTreeReaderArray contents. | |
Long64_t | fLastEntry = -1 |
RVec< T > | fRVec |
We return a reference to this RVec to clients, to guarantee a stable address and contiguous memory layout. | |
EStorageType | fStorageType = EStorageType::kUnknown |
Signal whether we ever checked that the branch we are reading with a TTreeReaderArray stores array elements in contiguous memory. | |
std::unique_ptr< TTreeReaderArray< T > > | fTreeArray |
#include <ROOT/RDF/RTreeColumnReader.hxx>
|
strongprivate |
Enumerator for the memory layout of the branch.
Enumerator | |
---|---|
kContiguous | |
kUnknown | |
kSparse |
Definition at line 60 of file RTreeColumnReader.hxx.
|
inline |
Definition at line 134 of file RTreeColumnReader.hxx.
|
inlineoverride |
See the other class template specializations for an explanation.
Definition at line 140 of file RTreeColumnReader.hxx.
|
inlinefinalprivatevirtual |
Implements ROOT::Detail::RDF::RColumnReaderBase.
Definition at line 73 of file RTreeColumnReader.hxx.
|
private |
Whether we already printed a warning about performing a copy of the TTreeReaderArray contents.
Definition at line 71 of file RTreeColumnReader.hxx.
|
private |
Definition at line 68 of file RTreeColumnReader.hxx.
|
private |
We return a reference to this RVec to clients, to guarantee a stable address and contiguous memory layout.
Definition at line 63 of file RTreeColumnReader.hxx.
|
private |
Signal whether we ever checked that the branch we are reading with a TTreeReaderArray stores array elements in contiguous memory.
Definition at line 67 of file RTreeColumnReader.hxx.
|
private |
Definition at line 57 of file RTreeColumnReader.hxx.