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 75c16f0 commit f6a2f1a
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 @@ -257,6 +257,8 @@ endif()
if(MSVC)
#---Multiproc is not supported on Windows
set(imt_veto ${imt_veto} analysis/mp*.C io/tree/mp*.C legacy/multicore/mp*.C multicore/mp*.C ./analysis/mtbb_parallelHistoFill.C)
#---XRootD is not supported on Windows
set(imt_veto ${imt_veto} io/tree/imt_parTreeProcessing.C)
endif()

if(ROOT_CLASSIC_BUILD)
Expand Down
2 changes: 1 addition & 1 deletion tutorials/io/tree/imt_parTreeProcessing.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int imt_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/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 f6a2f1a

Please sign in to comment.