Skip to content

Specifying which variables to take from a specific friend-tree path

TRExFitter Version and Commit Hash

TRExFitter version: TRExFitter v4.24-dev Commit Hash: 92d7c4e1

Description

For space reasons, I had to use friend-trees in my current configuration; I recently attempted to use X variables coming only from Friend-tree 1 and Y variables coming only from Friend-tree 2 that construct a single region selection. These Friend-trees come from different teams and merging them before is not convenient. This is currently not possible, and I end with the following:

Error in <TTreeFormula::Compile>:  Bad numerical expression : "Variable_Y"

Reproducer Configuration

I have created a folder with samples-config-replacment files on eos: https://cernbox.cern.ch/files/spaces/eos/user/a/acarnell/Analysis/TreX_issue_template

Config:/eos/user/a/acarnell/Analysis/TreX_issue_template/Test_two_FriendTree.config

Replacement: /eos/user/a/acarnell/Analysis/TreX_issue_template/replacement_test_two_FriendTree.txt

Samples: /eos/user/a/acarnell/Analysis/TreX_issue_template/samples_srink

Ideas to Resolve

I am unsure if the following implementation makes it easy to include the possibility of specifying which variables to take from a specific path.

Edited by Alberto Carnelli