#include using namespace ROOT::Experimental; void uuidFile() { auto file = TFile::Open("testUUID.root","recreate"); auto tree = new TTree("cal","cal"); TUUID run_info; tree->Branch("info_run",&run_info); for(int i=0;i<10;i++) { run_info=TUUID(); tree->Fill(); } tree->Write(); file->Close(); delete file; } void uuidFileWithValues() { auto file = TFile::Open("testUUIDWithValues.root","recreate"); auto tree = new TTree("cal","cal"); TUUID run_info; int cal_edep; tree->Branch("info_run",&run_info); tree->Branch("cal_edep",&cal_edep); for(int i=0;i<10;i++) { run_info=TUUID(); cal_edep=i; tree->Fill(); } tree->Write(); file->Close(); delete file; } int test_warnings() { ROOT::EnableImplicitMT(); // write two files with different branch content { uuidFile(); uuidFileWithValues(); } // read the common branch from both files TDataFrame d("cal", { "testUUIDWithValues.root","testUUID.root"}); d.Snapshot("cal", "out.root", "info_run"); return 0; }