Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RNTupleBrowseUtils.cxx
Go to the documentation of this file.
1/// \file RNTupleBrowseUtils.cxx
2/// \ingroup NTuple
3/// \author Jakob Blomer <jblomer@cern.ch>
4/// \date 2025-07-25
5
6/*************************************************************************
7 * Copyright (C) 1995-2025, Rene Brun and Fons Rademakers. *
8 * All rights reserved. *
9 * *
10 * For the licensing terms see $ROOTSYS/LICENSE. *
11 * For the list of contributors see $ROOTSYS/README/CREDITS. *
12 *************************************************************************/
13
16
18{
19 const auto &fieldDesc = desc.GetFieldDescriptor(fieldId);
20 if (fieldDesc.GetLinkIds().empty())
21 return fieldId;
22
24 if (fieldDesc.GetStructure() == ENTupleStructure::kCollection) {
25 // Variable-length collection: vector, map, set, collection proxy etc.
26 result = fieldDesc.GetLinkIds()[0];
27 } else if (fieldDesc.GetNRepetitions() > 0) {
28 // Fixed-size array
29 result = fieldDesc.GetLinkIds()[0];
30 } else if (fieldDesc.GetTypeName().rfind("std::atomic<", 0) == 0) {
31 result = fieldDesc.GetLinkIds()[0];
32 }
33
34 return (result != fieldId) ? GetNextBrowsableField(result, desc) : fieldId;
35}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
The on-storage metadata of an RNTuple.
const RFieldDescriptor & GetFieldDescriptor(ROOT::DescriptorId_t fieldId) const
DescriptorId_t GetNextBrowsableField(DescriptorId_t fieldId, const RNTupleDescriptor &desc)
std::uint64_t DescriptorId_t
Distriniguishes elements of the same type within a descriptor, e.g. different fields.