Skip to content

Commit

Permalink
[tut] Avoid races caused by Davix 0.8.8
Browse files Browse the repository at this point in the history
by using xrootd and reading from EOS Opendata
  • Loading branch information
dpiparo committed Feb 6, 2025
1 parent a304112 commit 6257c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ endif()
if(MSVC)
#---Multiproc is not supported on Windows
set(imt_veto ${imt_veto} multicore/mp*.C multicore/mtbb201_parallelHistoFill.C)
#---XRootD is not supported on Windows
set(imt_veto ${imt_veto} multicore/imt101_parTreeProcessing.C)
if(CMAKE_SIZEOF_VOID_P EQUAL 4 AND NOT win_broken_tests)
# std::this_thread::sleep_for(std::chrono::duration<double, std::nano>(500));
# fails on Windows 32 bit and Visual Studio v17.9 with the following error:
Expand Down
2 changes: 1 addition & 1 deletion tutorials/multicore/imt101_parTreeProcessing.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int imt101_parTreeProcessing()
ROOT::TThreadedObject<TH2F> pxpyHist("px_py", "p_{X} vs p_{Y} Distribution;p_{X};p_{Y}", 100, -5., 5., 100, -5., 5.);

// Create a TTreeProcessorMT: specify the file and the tree in it
ROOT::TTreeProcessorMT tp("http://root.cern.ch/files/tp_process_imt.root", "events");
ROOT::TTreeProcessorMT tp("root://eospublic.cern.ch//eos/root-eos/testfiles/tp_process_imt.root", "events");

// Define the function that will process a subrange of the tree.
// The function must receive only one parameter, a TTreeReader,
Expand Down

0 comments on commit 6257c77

Please sign in to comment.