# \#io

**URL:** https://root-forum.cern.ch/tag/io/4.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Share RNTupleReader field addresses across multiple files](https://root-forum.cern.ch/t/share-rntuplereader-field-addresses-across-multiple-files/64927)

<div class="topic-metadata">

**Author:** [@tomeichlersmith](https://root-forum.cern.ch/u/tomeichlersmith)\
**Replies:** 6\
**Last updated:** [July 3, 2026, 3:22pm UTC](https://root-forum.cern.ch/t/share-rntuplereader-field-addresses-across-multiple-files/64927 "2026-07-03T15:22:22Z")

</div>

I am interested in sharing the field addresses (std::shared\_ptr\<T\>) used by RNTupleReader across multiple instances of RNTupleReader. This would enable the framework I’m developing to read multiple files in sequence with…

---

## [Ignore fields when reading an RNTuple](https://root-forum.cern.ch/t/ignore-fields-when-reading-an-rntuple/64916)

<div class="topic-metadata">

**Author:** [@tomeichlersmith](https://root-forum.cern.ch/u/tomeichlersmith)\
**Replies:** 4\
**Last updated:** [June 25, 2026, 9:06pm UTC](https://root-forum.cern.ch/t/ignore-fields-when-reading-an-rntuple/64916 "2026-06-25T21:06:04Z")

</div>

I am trying to ignore (i.e. don’t bother loading the data into memory) specific fields of an RNTuple when reading a file. I can do this if I already know the type of all the fields I want by creating my own RNTupleModel …

---

## [Quiet writing failure when applying schema evolution while slow cloning](https://root-forum.cern.ch/t/quiet-writing-failure-when-applying-schema-evolution-while-slow-cloning/64350)

<div class="topic-metadata">

**Author:** [@tomeichlersmith](https://root-forum.cern.ch/u/tomeichlersmith)\
**Replies:** 10\
**Last updated:** [October 31, 2025, 6:22pm UTC](https://root-forum.cern.ch/t/quiet-writing-failure-when-applying-schema-evolution-while-slow-cloning/64350 "2025-10-31T18:22:12Z")

</div>

ROOT Version: 6.34.04 Platform: linuxx8664gcc Compiler: GCC 13.3.0 Specifically, I am using the container image ldmx/pro:v4.4.0 on DockerHub. ▶ Boilerplate Intro Copied from Previous Post The source code for this ex…

---

## [Schema Evolution: Renaming a \`std::map\` Member Variable](https://root-forum.cern.ch/t/schema-evolution-renaming-a-std-map-member-variable/64310)

<div class="topic-metadata">

**Author:** [@tomeichlersmith](https://root-forum.cern.ch/u/tomeichlersmith)\
**Replies:** 4\
**Last updated:** [October 21, 2025, 7:26am UTC](https://root-forum.cern.ch/t/schema-evolution-renaming-a-std-map-member-variable/64310 "2025-10-21T07:26:45Z")

</div>

ROOT Version: 6.34.04 Platform: linuxx8664gcc Compiler: GCC 13.3.0 Specifically, I am using the container image ldmx/pro:v4.4.0 on DockerHub. Look there for all the messy details. I am working in a project where we…

---

## [Manual schema evolution with I/O rules and branches containing vector\<T\>](https://root-forum.cern.ch/t/manual-schema-evolution-with-i-o-rules-and-branches-containing-vector-t/64026)

<div class="topic-metadata">

**Author:** [@tmadlener](https://root-forum.cern.ch/u/tmadlener)\
**Replies:** 4\
**Last updated:** [August 15, 2025, 10:03am UTC](https://root-forum.cern.ch/t/manual-schema-evolution-with-i-o-rules-and-branches-containing-vector-t/64026 "2025-08-15T10:03:34Z")

</div>

Dear experts, (The code below is abbreviated for keeping the post readable. I have attached a simple CMake project that has a working and a failing example below) I am trying to do some non-trivial schema evolution via…

---

## [Appending an object of vector\<double\> to an existing TBranch](https://root-forum.cern.ch/t/appending-an-object-of-vector-double-to-an-existing-tbranch/58085)

<div class="topic-metadata">

**Author:** [@samuelb91](https://root-forum.cern.ch/u/samuelb91)\
**Replies:** 3\
**Last updated:** [February 7, 2024, 7:31am UTC](https://root-forum.cern.ch/t/appending-an-object-of-vector-double-to-an-existing-tbranch/58085 "2024-02-07T07:31:32Z")

</div>

Hi there, I’m having a bit of an issue with a rather large executable. I run a set of calculations that, while not costly to compute, take up a fair bit of memory with the current IO scheme I have. Basically, I create …

---

## [Writing Streamer for I/O of a custom class](https://root-forum.cern.ch/t/writing-streamer-for-i-o-of-a-custom-class/57153)

<div class="topic-metadata">

**Author:** [@Giorgio\_Del\_Castello](https://root-forum.cern.ch/u/Giorgio_Del_Castello)\
**Replies:** 14\
**Last updated:** [December 21, 2023, 11:45pm UTC](https://root-forum.cern.ch/t/writing-streamer-for-i-o-of-a-custom-class/57153 "2023-12-21T23:45:06Z")

</div>

I am finding myself in need of writing a custom streamer in order to keep backward compatibility of a custom class of which i need to do I/O. But i am struggling to gather the data for such a class, I am implementing th…

---

## [Use RDataFrame with nested vectors (like vector\<vector\<float\>\>) without creating additional dictionaries](https://root-forum.cern.ch/t/use-rdataframe-with-nested-vectors-like-vector-vector-float-without-creating-additional-dictionaries/57356)

<div class="topic-metadata">

**Author:** [@CuriousPeter](https://root-forum.cern.ch/u/CuriousPeter)\
**Replies:** 3\
**Last updated:** [December 1, 2023, 2:13pm UTC](https://root-forum.cern.ch/t/use-rdataframe-with-nested-vectors-like-vector-vector-float-without-creating-additional-dictionaries/57356 "2023-12-01T14:13:20Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.26/02, 6.28/06 \_Platform: GNU/Linux (CentOS Linux release 7.9.2009) \_Compiler: GCC 11.2.0, GCC 13.2.0 Hi, My question is quit…

---

## [Saving TTree as class member leads to I/O error](https://root-forum.cern.ch/t/saving-ttree-as-class-member-leads-to-i-o-error/56590)

<div class="topic-metadata">

**Author:** [@werthm](https://root-forum.cern.ch/u/werthm)\
**Replies:** 5\
**Last updated:** [October 18, 2023, 9:11am UTC](https://root-forum.cern.ch/t/saving-ttree-as-class-member-leads-to-i-o-error/56590 "2023-10-18T09:11:44Z")

</div>

Hi there I’m getting I/O errors and invalid data when I try saving the clone of a tree as a class member to a new ROOT file. I have a DAQ system where I fill a tree stored in a temporary file (don’t want to store it in…

---

## [Manual schema evolution when adding a data member leads to a crash when reading an old file](https://root-forum.cern.ch/t/manual-schema-evolution-when-adding-a-data-member-leads-to-a-crash-when-reading-an-old-file/56104)

<div class="topic-metadata">

**Author:** [@sghinesc](https://root-forum.cern.ch/u/sghinesc)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 10:36am UTC](https://root-forum.cern.ch/t/manual-schema-evolution-when-adding-a-data-member-leads-to-a-crash-when-reading-an-old-file/56104 "2023-08-22T10:36:18Z")

</div>

ROOT Version: 6.28/04 Platform: Ubuntu 20.04.6 Compiler: conda-forge gcc 12.3.0-0 I’ll try to attach a MWE (I’m not allowed here…) I wrote a TTree with a class Foo that has only 1 data member Int\_t fA to a file. Whe…

---

## [Error reading std::vectors of custom classes interactively with the ROOT console](https://root-forum.cern.ch/t/error-reading-std-vectors-of-custom-classes-interactively-with-the-root-console/52627)

<div class="topic-metadata">

**Author:** [@jasot](https://root-forum.cern.ch/u/jasot)\
**Replies:** 13\
**Last updated:** [December 16, 2022, 1:04am UTC](https://root-forum.cern.ch/t/error-reading-std-vectors-of-custom-classes-interactively-with-the-root-console/52627 "2022-12-16T01:04:30Z")

</div>

Dear colleagues, I have a CMake-compiled code that creates a tree of some custom classes and saves it in a ROOT file. The code works well, and the problem appears when I try to access some compiled functions interactive…

---

## [Automatic Schema Evolution and moving a member from a Base class to a Derived class](https://root-forum.cern.ch/t/automatic-schema-evolution-and-moving-a-member-from-a-base-class-to-a-derived-class/51004)

<div class="topic-metadata">

**Author:** [@\_cozzyd](https://root-forum.cern.ch/u/_cozzyd)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 5:11pm UTC](https://root-forum.cern.ch/t/automatic-schema-evolution-and-moving-a-member-from-a-base-class-to-a-derived-class/51004 "2022-08-11T17:11:54Z")

</div>

ROOT Version: 6.26/04 Platform: Fedora 35 Compiler: gcc 11.3 At one point, we were producing something like: class Foo : public TObject { int metadata; int more\_metadata; int even\_more\_metadata; short…

---

## [\[ACAT-2021\] ROOT Files Improved with Extreme Compression: use of software patents?](https://root-forum.cern.ch/t/acat-2021-root-files-improved-with-extreme-compression-use-of-software-patents/47922)

<div class="topic-metadata">

**Author:** [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 8:08pm UTC](https://root-forum.cern.ch/t/acat-2021-root-files-improved-with-extreme-compression-use-of-software-patents/47922 "2021-12-03T20:08:13Z")

</div>

hi, very impressed by the numbers from this ACAT-2021 presentation: one thing (p10) worried me a bit though: it isn’t clear to me how non-ROOT/C++ implementations are supposed to be able to read/write files using this…

---

## [Root Crashes When Using Ofstream](https://root-forum.cern.ch/t/root-crashes-when-using-ofstream/47356)

<div class="topic-metadata">

**Author:** [@spencer-ercanbrack](https://root-forum.cern.ch/u/spencer-ercanbrack)\
**Replies:** 4\
**Last updated:** [October 27, 2021, 10:18am UTC](https://root-forum.cern.ch/t/root-crashes-when-using-ofstream/47356 "2021-10-27T10:18:11Z")

</div>

ROOT Version: 6.24.02 Platform: Windows OS (Windows 10) Compiler: MSVC 19.23.28107.0 I am trying to get my code to output some data to a spreadsheet (e.g. I want all of the “time” data points in one one column or row …

---

## [Snapshot of RVec\<RVec\<T\>\> produces broken ROOT file](https://root-forum.cern.ch/t/snapshot-of-rvec-rvec-t-produces-broken-root-file/43960)

<div class="topic-metadata">

**Author:** [@clementhelsens](https://root-forum.cern.ch/u/clementhelsens)\
**Replies:** 14\
**Last updated:** [April 13, 2021, 6:39pm UTC](https://root-forum.cern.ch/t/snapshot-of-rvec-rvec-t-produces-broken-root-file/43960 "2021-04-13T18:39:33Z")

</div>

Hello @eguiraud , if I may ask on this topic, somehow related question, I managed to store a ROOT::VecOps::RVec\<ROOT::VecOps::RVec\<\>\> in my output files, but even with properly generating the specific dictionary in my L…

---

## [Long time to close ROOT file with O(500k) histograms](https://root-forum.cern.ch/t/long-time-to-close-root-file-with-o-500k-histograms/44229)

<div class="topic-metadata">

**Author:** [@rustem](https://root-forum.cern.ch/u/rustem)\
**Replies:** 3\
**Last updated:** [March 31, 2021, 2:38pm UTC](https://root-forum.cern.ch/t/long-time-to-close-root-file-with-o-500k-histograms/44229 "2021-03-31T14:38:11Z")

</div>

Hello, I am trying to write an output ROOT file using the attached macro that contains O(500k) histograms. I see that TFile.Close() function takes a very long time even after the file is written. You can reproduce this …

---

## [Corrupted uid in TRefArray::fUIDs\[0\] after adding object already referenced from another process](https://root-forum.cern.ch/t/corrupted-uid-in-trefarray-fuids-0-after-adding-object-already-referenced-from-another-process/43978)

<div class="topic-metadata">

**Author:** [@profile4me](https://root-forum.cern.ch/u/profile4me)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 10:26pm UTC](https://root-forum.cern.ch/t/corrupted-uid-in-trefarray-fuids-0-after-adding-object-already-referenced-from-another-process/43978 "2021-03-15T22:26:50Z")

</div>

ROOT Version: 6.22 Platform: x86 Linux v5.11 Compiler: gcc 10.2.0 Hi, rooters! Implementing idea to optimally organize experiment data, noticed wrong behaviour of TRefArray. Task outline: to do some pre-analysis, na…

---

## [Serious degradation of I/O performance from 6.20/04 to 6.22/06](https://root-forum.cern.ch/t/serious-degradation-of-i-o-performance-from-6-20-04-to-6-22-06/43584)

<div class="topic-metadata">

**Author:** [@tmadlener](https://root-forum.cern.ch/u/tmadlener)\
**Replies:** 13\
**Last updated:** [February 22, 2021, 9:25am UTC](https://root-forum.cern.ch/t/serious-degradation-of-i-o-performance-from-6-20-04-to-6-22-06/43584 "2021-02-22T09:25:52Z")

</div>

Dear ROOT team, We have experienced a quite serious I/O performance degradation, both in reading and writing, when switching from v6.20/04 to v6.22/06 for podio. You can see the degradation in this benchmark report. It …

---

## [Std::bitset streamer: endianness issue?](https://root-forum.cern.ch/t/std-bitset-streamer-endianness-issue/41529)

<div class="topic-metadata">

**Author:** [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 9:12pm UTC](https://root-forum.cern.ch/t/std-bitset-streamer-endianness-issue/41529 "2020-09-25T21:12:27Z")

</div>

hi there, I was adding support for reading/writing std::bitset\<N\> to groot when I noticed the following behaviour: $\> cat ./Event.h #ifndef MYEVT\_H #define MYEVT\_H 1 #include \<bitset\> struct Event { std::bitset\<16\> …

---

## [XML parsing for I/O](https://root-forum.cern.ch/t/xml-parsing-for-i-o/41514)

<div class="topic-metadata">

**Author:** [@Andrea\_Falzetti](https://root-forum.cern.ch/u/Andrea_Falzetti)\
**Replies:** 1\
**Last updated:** [September 20, 2020, 8:02pm UTC](https://root-forum.cern.ch/t/xml-parsing-for-i-o/41514 "2020-09-20T20:02:09Z")

</div>

Hi, First of all i apologize in advance if this question wastes anybody’s time but i am a total newbie. I need to parse an XML file and i am having issues using the TXMLEngine class in order to do that. I am trying to…

---

## [ReadStreamerInfo illegal uid with newer ROOT versions](https://root-forum.cern.ch/t/readstreamerinfo-illegal-uid-with-newer-root-versions/41073)

<div class="topic-metadata">

**Author:** [@tadej](https://root-forum.cern.ch/u/tadej)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 2:15pm UTC](https://root-forum.cern.ch/t/readstreamerinfo-illegal-uid-with-newer-root-versions/41073 "2020-08-20T14:15:45Z")

</div>

When opening a file created with ROOT v6.18/04 (LCG\_96bpython3) using ROOT v6.22/00 (LCG\_98python3) we get the following print-out: ReadStreamerInfo, class:string, illegal uid=-2 Should we be worried by that? Note that…

---

## [ROOT objects can no longer be pickled for shelve](https://root-forum.cern.ch/t/root-objects-can-no-longer-be-pickled-for-shelve/38924)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 6\
**Last updated:** [April 30, 2020, 7:40am UTC](https://root-forum.cern.ch/t/root-objects-can-no-longer-be-pickled-for-shelve/38924 "2020-04-30T07:40:05Z")

</div>

When I try to save a ROOT object using shelve, it panics and fails. This started happening after I brought my local build up-to-date with the master branch–I am not sure what changes caused the problem. Reproducer follow…

---

## [Segmentation violation while writing histogram](https://root-forum.cern.ch/t/segmentation-violation-while-writing-histogram/37828)

<div class="topic-metadata">

**Author:** [@jsuseche](https://root-forum.cern.ch/u/jsuseche)\
**Replies:** 4\
**Last updated:** [February 3, 2020, 3:54pm UTC](https://root-forum.cern.ch/t/segmentation-violation-while-writing-histogram/37828 "2020-02-03T15:54:50Z")

</div>

Hi, I’m reading some histograms in different files and adding them. When I’m trying to save the final histogram it shows a segmentation violation. I’ve tried changing the directory of this final histogram for the TFile …

---

## [Segfaults when using RooAbsData.Tree Storange and handling multiple TFiles](https://root-forum.cern.ch/t/segfaults-when-using-rooabsdata-tree-storange-and-handling-multiple-tfiles/37069)

<div class="topic-metadata">

**Author:** [@bixel](https://root-forum.cern.ch/u/bixel)\
**Replies:** 4\
**Last updated:** [December 10, 2019, 2:19pm UTC](https://root-forum.cern.ch/t/segfaults-when-using-rooabsdata-tree-storange-and-handling-multiple-tfiles/37069 "2019-12-10T14:19:56Z")

</div>

While working with RooDataSets and RooWorkspaces, I need to use a RooTreeDataStore as described in the RooDataSet docs due to the memory limitation of RooVectorDataStore. I am using python 2.7 (it does not feel good, bu…

---

## [Hadd performance question followup](https://root-forum.cern.ch/t/hadd-performance-question-followup/35474)

<div class="topic-metadata">

**Author:** [@rustem](https://root-forum.cern.ch/u/rustem)\
**Replies:** 13\
**Last updated:** [October 24, 2019, 2:10pm UTC](https://root-forum.cern.ch/t/hadd-performance-question-followup/35474 "2019-10-24T14:10:52Z")

</div>

Hello, I would like to ask about the status of this question: This topic was closed but it seems without the resolution. Just to explain that waiting for hadd can take hours, which has direct negative impact on effi…

---

## [TFile::Write() vs. Flush() -- which makes file more usable?](https://root-forum.cern.ch/t/tfile-write-vs-flush-which-makes-file-more-usable/35356)

<div class="topic-metadata">

**Author:** [@Michael\_Kelsey](https://root-forum.cern.ch/u/Michael_Kelsey)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 2:12pm UTC](https://root-forum.cern.ch/t/tfile-write-vs-flush-which-makes-file-more-usable/35356 "2019-07-26T14:12:52Z")

</div>

We write out fairly large ROOT files from simulation jobs. If the jobs end successfully, there’s no problem (obviously), but if a job crashes or is aborted early, quite often the ROOT file is unusable. I thought that I…

---

## [Segfault when reading nonexistent histogram from TFile](https://root-forum.cern.ch/t/segfault-when-reading-nonexistent-histogram-from-tfile/32877)

<div class="topic-metadata">

**Author:** [@beojan](https://root-forum.cern.ch/u/beojan)\
**Replies:** 5\
**Last updated:** [February 24, 2019, 10:07pm UTC](https://root-forum.cern.ch/t/segfault-when-reading-nonexistent-histogram-from-tfile/32877 "2019-02-24T22:07:00Z")

</div>

EDIT: See my comment below. Nothing to do with RDF or XRootD. Stacktrace is what it is though, so that’s still useful. When I try and read from the grid with RDataFrame using xrootd, I get a segfault Thread 6 (Thread 0…

---

## [How to Rename a Class in Output with Backwards Compatibility](https://root-forum.cern.ch/t/how-to-rename-a-class-in-output-with-backwards-compatibility/32810)

<div class="topic-metadata">

**Author:** [@bleu65](https://root-forum.cern.ch/u/bleu65)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 1:04pm UTC](https://root-forum.cern.ch/t/how-to-rename-a-class-in-output-with-backwards-compatibility/32810 "2019-02-20T13:04:55Z")

</div>

Please can someone help me as how to change the class in name in a schema. I have a shared library with my own classes in it that I store to the output. I want to rename a class for a new version of the output and shar…

---

## [Parallel canvas generation and saving](https://root-forum.cern.ch/t/parallel-canvas-generation-and-saving/32658)

<div class="topic-metadata">

**Author:** [@ahesam](https://root-forum.cern.ch/u/ahesam)\
**Replies:** 5\
**Last updated:** [February 9, 2019, 3:32pm UTC](https://root-forum.cern.ch/t/parallel-canvas-generation-and-saving/32658 "2019-02-09T15:32:14Z")

</div>

\_ROOT Version:\_6.13/08 \_Platform:\_Ubuntu 16.04 \_Compiler:\_gcc-5.5.0 Hello, I have a bunch of histograms that I want to draw on a canvas (one histogram per canvas) and save to an image file on disk. At the moment I do…

---

## [June in-person ROOT I/O Workshop (June 20th, 2018)](https://root-forum.cern.ch/t/june-in-person-root-i-o-workshop-june-20th-2018/28405)

<div class="topic-metadata">

**Author:** [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Replies:** 0\
**Last updated:** [March 22, 2018, 3:24pm UTC](https://root-forum.cern.ch/t/june-in-person-root-i-o-workshop-june-20th-2018/28405 "2018-03-22T15:24:17Z")

</div>

We are pleased to announce that we will hold the next ‘in-person’ ROOT I/O workshop on Wednesday June 20th, 2018 at CERN and surround it with a ROOT I/O developer week: Please register by 2018-04-20 at https://indico.…

[Next page](https://root-forum.cern.ch/tag/io/4.md?match_all_tags=true&page=1&tags%5B%5D=io)
