# Use of ROOT macro based on RDF on CERN LXBATCH: data access issue when MT is enabled but inhibited by Condor

**URL:** <https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601>\
**Category:** ROOT\
**Tags:** rdataframe\
**Created:** [January 20, 2026, 4:42pm UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601 "2026-01-20T16:42:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.celentano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/58f4c7/32.png) [@andrea.celentano](https://root-forum.cern.ch/u/andrea.celentano)\
**Post date:** [January 20, 2026, 4:42pm UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601/1 "2026-01-20T16:42:28Z")

</div>

Dear colleagues,  
I’d like to report on an unexpected issue that I observed using the LXBATCH system at CERN to execute a job in which a root macro, based on `RDF` , is executed on a ROOT File.  
The macro contains the following line at the beginning:

```auto
ROOT::EnableImplicitMT();

```

Since I submit a single-core, single-host job, correctly I observe in the log the following:

```auto
Warning in <RTaskArenaWrapper>: CPU Bandwith Control Active. Proceeding with 1 threads accordingly

```

This is absolutely expected due to my job settings.

However, after this an error is reported:

```auto
Error in <TTreeReaderValue::Get()>: Value reader for branch isSignalBox not properly initialized, did you call TTreeReader::Set(Next)Entry() or TTreeReader::Next()?
RDataFrame::Run: event loop was interrupted
Error in <TRint::HandleTermInput()>: std::out_of_range caught: RDataFrame: Filter could not retrieve value for column 'isSignalBox' for entry 0. You can use the DefaultValueFor operation to provide a default value, or FilterAvailable/FilterMissing to discard/keep entries with missing values instead.

```

Indeed, the branch `isSignalBox` is properly stored in the `TFile`, and I can read if I open root terminal (even inside the host where the job is running, via `condor_ssh_to_job`).  
If, inside the same terminal, I load the macro and I execute it, I get the same error.

I observed that, if I remove the MT instruction, the macro runs fine, suggesting some kind of conflict.

I suspect this is a bug - the expected behavior was to force (correctly!) the macro to run with a single thread, but without any data-access issue.

_ROOT Version:_ 6.36.02  
_Platform:_ Rocky Linux 9  
_Compiler:_ gcc15

* * *

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [January 22, 2026, 7:47am UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601/2 "2026-01-22T07:47:34Z")

</div>

Hello @andrea.celentano, thanks for the report. Probably @vpadulan will be able to help you with this.  
Meanwhile, are you able to share the code or a smaller reproducer that leads to the crash?

---

<div class="post-metadata">

**Author:** ![andrea.celentano](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/58f4c7/32.png) [@andrea.celentano](https://root-forum.cern.ch/u/andrea.celentano)\
**Post date:** [January 22, 2026, 8:25am UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601/3 "2026-01-22T08:25:33Z")

</div>

Hi @silverweed - sure, the code is attached. I also attach a small ROOT file on which it can be executed.

[ana\_hadrons.cpp](https://root-forum.cern.ch/uploads/short-url/kzEdiL1SePTj9fIPBU11iNERZN9.cpp) (18.9 KB)  
[electron-2025A.root](https://root-forum.cern.ch/uploads/short-url/t7U7MOLNUrUJV44QQ52cPAkMyGe.root) (845.2 KB)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 5, 2026, 8:25am UTC](https://root-forum.cern.ch/t/use-of-root-macro-based-on-rdf-on-cern-lxbatch-data-access-issue-when-mt-is-enabled-but-inhibited-by-condor/64601/4 "2026-02-05T08:25:34Z")

</div>

Closed on February 5, 2026, 8:25am UTC

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