Skip to content

Commit 359dde1

Browse files
committed
Remove unnecessary http accesses
preferring local generation of test files or EOS via xrootd
1 parent 98721cd commit 359dde1

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

python/distrdf/backends/check_inv_mass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def build_distrdf_graph(self, connection):
1616
"""
1717

1818
treename = "data"
19-
files = ["http://root.cern/files/teaching/CMS_Open_Dataset.root", ]
19+
files = ["root://eospublic.cern.ch//eos/root-eos/testfiles/CMS_Open_Dataset.root", ]
2020
rdf = ROOT.RDataFrame(treename, files, executor=connection, npartitions=5)
2121

2222
# Define the analysis cuts
@@ -47,7 +47,7 @@ def build_distrdf_graph(self, connection):
4747
def build_rootrdf_graph(self):
4848
"""Create an RDF graph with a fixed set of operations and return it."""
4949
treename = "data"
50-
files = ["http://root.cern/files/teaching/CMS_Open_Dataset.root", ]
50+
files = ["root://eospublic.cern.ch//eos/root-eos/testfiles/CMS_Open_Dataset.root", ]
5151
rdf = ROOT.RDataFrame(treename, files)
5252

5353
# Define the analysis cuts

root/multicore/tProcessExecutorH1Test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
static std::string logfile = "tProcessExecutorH1Test-pool.log";
2323
static RedirectHandle_t gRH;
2424

25-
const char *fh1[] = {"http://root.cern.ch/files/h1/dstarmb.root",
26-
"http://root.cern.ch/files/h1/dstarp1a.root",
27-
"http://root.cern.ch/files/h1/dstarp1b.root",
28-
"http://root.cern.ch/files/h1/dstarp2.root"};
25+
const char *fh1[] = {"root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root",
26+
"root://eospublic.cern.ch//eos/root-eos/h1/dstarp1a.root",
27+
"root://eospublic.cern.ch//eos/root-eos/h1/dstarp1b.root",
28+
"root://eospublic.cern.ch//eos/root-eos/h1/dstarp2.root"};
2929

3030
int main() {
3131

root/multicore/ttree_read_imt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <iostream>
1010

1111

12-
const std::string kDefaultFileName("http://root.cern/files/ttree_read_imt.root");
12+
const std::string kDefaultFileName("./ttree_read_imt.root");
1313

1414
void printHelp(const char* iName, int nThreads, int nEntries)
1515
{

root/multicore/ttree_read_imt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
TESTNAME=ttree_read_imt
44
NTHREADS=4
55
NENTRIES=500
6-
INPUTFILE=http://root.cern/files/ttree_read_imt.root
6+
INPUTFILE="root://eospublic.cern.ch//eos/root-eos/testfiles/ttree_read_imt.root"
77

88
#ROOTDEBUG=1 ./$TESTNAME $NTHREADS $NENTRIES $INPUTFILE 1>${TESTNAME}.out 2>${TESTNAME}.err
99

root/multicore/ttree_read_imt_allpar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void printHelp(const char* iName, int nThreads, int nEntries)
1717
<< "If no arguments are given " << nThreads << " threads, " << nEntries << " entries will be used." << std::endl;
1818
}
1919

20-
const std::string kDefaultFileName("http://root.cern/files/ttree_read_imt.root");
20+
const std::string kDefaultFileName("./ttree_read_imt.root");
2121

2222
std::tuple<int,int,std::string> parseOptions(int argc, char** argv)
2323
{

root/multicore/ttree_read_imt_allpar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
TESTNAME=ttree_read_imt_allpar
44
NTHREADS=4
55
NENTRIES=500
6-
INPUTFILE=http://root.cern/files/ttree_read_imt.root
6+
INPUTFILE=./ttree_read_imt.root
77

88
if ROOTDEBUG=1 ./$TESTNAME $NTHREADS $NENTRIES $INPUTFILE 1>${TESTNAME}.out 2>${TESTNAME}.err ; then
99
:

root/tree/reader/assertIntroTut.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
int assertIntroTut()
1212
{
1313
// open the file
14-
TFile *f = TFile::Open("http://root.cern/files/introtutorials/eventdata.root");
14+
const auto fname = "root://eospublic.cern.ch//eos/root-eos/testfiles/eventdata.root";
15+
TFile *f= TFile::Open(fname);
1516
if (f == 0) {
1617
// if we cannot open the file, print an error message and return immediatly
17-
printf("Error: cannot open http://root.cern/files/introtutorials/eventdata.root!\n");
18+
printf("Error: cannot open %s!\n", fname);
1819
return 1;
1920
}
2021

root/tree/reader/execIntroTut.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ bool checkLeaf2(TFile* file) {
5858
int execIntroTut()
5959
{
6060
// open the file
61-
TFile *file = TFile::Open("http://root.cern/files/introtutorials/eventdata.root");
61+
const auto fname = "root://eospublic.cern.ch//eos/root-eos/testfiles/eventdata.root";
62+
TFile *file = TFile::Open(fname);
6263
if (file == 0) {
6364
// if we cannot open the file, print an error message and return immediatly
64-
printf("Error: cannot open http://root.cern/files/introtutorials/eventdata.root!\n");
65+
printf("Error: cannot open %s!\n", fname);
6566
return 42;
6667
}
6768

0 commit comments

Comments
 (0)