29 constexpr static auto fMainFile{
"df037_TTreeEventMatching_C_main.root"};
30 constexpr static auto fAuxFile1{
"df037_TTreeEventMatching_C_aux_1.root"};
31 constexpr static auto fAuxFile2{
"df037_TTreeEventMatching_C_aux_2.root"};
43 mainTree.Branch(
"idx", &idx,
"idx/I");
64 auxTree.Branch(
"idx", &idx,
"idx/I");
82 auxTree.Branch(
"idx", &idx,
"idx/I");
104void df037_TTreeEventMatching()
113 dataset.fMainTreeName};
116 dataset.fAuxTreeName1);
120 dataset.fAuxTreeName2);
132 const std::string dataset.fAuxTreeName1) +
".idx";
133 const std::string dataset.fAuxTreeName1) +
".y";
134 const std::string dataset.fAuxTreeName2) +
".idx";
135 const std::string dataset.fAuxTreeName2) +
".z";
137 constexpr static auto defaultValue = std::numeric_limits<int>::min();
161 std::cout <<
"Example 1: provide default values for all columns\n";
163 std::cout <<
"Example 2: skip the entry only when the first auxiliary tree does not match\n";
165 std::cout <<
"Example 3: keep entries from the main tree for which there is no match in the auxiliary tree\n";
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
A chain is a collection of files containing TTree objects.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TTree represents a columnar dataset.