Skip to content

Commit

Permalink
[TEST DO NOT MERGE] Reroute reads from the web to the test WebEOS ins…
Browse files Browse the repository at this point in the history
…tance
  • Loading branch information
dpiparo committed Jan 28, 2025
1 parent 6767a8a commit 411dd29
Show file tree
Hide file tree
Showing 121 changed files with 178 additions and 178 deletions.
2 changes: 1 addition & 1 deletion README/ReleaseNotes/v626/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ root (cont'ed, cancel with .@) [1]<< "ROOT\n";

- `rootls` now follows the same logic of `TFile::ls()` to print the key cycle number and its tag when listing contents of a file with the `-l` option (PR [#7878](https://github.com/root-project/root/pull/7878)):
```
$: rootls -l https://root.cern/files/ttree_read_imt.root
$: rootls -l https://root-test.web.cern.ch/files/ttree_read_imt.root
TTree Mar 13 17:17 2019 TreeIMT;2 "TTree for IMT test" [current cycle]
TTree Mar 13 17:17 2019 TreeIMT;1 "TTree for IMT test" [backup cycle]
```
Expand Down
2 changes: 1 addition & 1 deletion README/ReleaseNotes/v632/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ a bug.
Added correct treatment of extended term in asymptotically correct method for uncertainty determination in the presence of weights.
This improvement will allow for extended unbinned maximum likelihood fits to use the asymptotically correct method when using the `RooFit::AsymptoticError()` command argument in [RooAbsPdf::fitTo()](https://root.cern.ch/doc/master/classRooAbsPdf.html#ab0721374836c343a710f5ff92a326ff5).
See also this [writeup on extended weighted fits](https://root.cern/files/extended_weighted_fits.pdf) that is also linked from the reference guide.
See also this [writeup on extended weighted fits](https://root-test.web.cern.ch/files/extended_weighted_fits.pdf) that is also linked from the reference guide.
The [pull request](https://github.com/root-project/root/pull/14751) that introduced this feature might also be a good reference.
### Compile your code with memory safe interfaces
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/SearchInstalledSoftware.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ macro(ROOT_CHECK_CONNECTION option)
# Do something only if connection check is not already done
if(NOT DEFINED NO_CONNECTION)
message(STATUS "Checking internet connectivity")
file(DOWNLOAD https://root.cern/files/cmake_connectivity_test.txt ${CMAKE_CURRENT_BINARY_DIR}/cmake_connectivity_test.txt
file(DOWNLOAD https://root-test.web.cern.ch/files/cmake_connectivity_test.txt ${CMAKE_CURRENT_BINARY_DIR}/cmake_connectivity_test.txt
TIMEOUT 10 STATUS DOWNLOAD_STATUS
)
# Get the status code from the download status
Expand Down
2 changes: 1 addition & 1 deletion core/base/src/TRef.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ will automatically invoke a script GetWebHistogram.C via the interpreter.
An example of a GetWebHistogram.C script is shown below
~~~ {.cpp}
void GetWebHistogram() {
TFile *f= TFile::Open("http://root.cern/files/pippa.root");
TFile *f= TFile::Open("http://root-test.web.cern.ch/files/pippa.root");
f->cd("DM/CJ");
TH1 *h6 = (TH1*)gDirectory->Get("h6");
h6->SetDirectory(0);
Expand Down
34 changes: 17 additions & 17 deletions documentation/JSROOT/JSROOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ One and two dimensional draw expressions can be resulted into TGraph object, usi

For any integer value one can accumulate histogram with value bits distribution, specifying as output ">>bits(16)" or ">>bits":

- [opt=event.fTracks.fBits>>bits](https://root.cern/js/latest/?file=https://root.cern/files/Event100000.root&item=T;2&opt=event.fTracks.fBits>>bits)
- [opt=event.fTracks.fBits>>bits](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/Event100000.root&item=T;2&opt=event.fTracks.fBits>>bits)

There is special handling of TBits objects:

- [opt=event.fTriggerBits](https://root.cern/js/latest/?file=https://root.cern/files/event/event_0.root&item=EventTree&opt=event.fTriggerBits)
- [opt=event.fTriggerBits](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/event/event_0.root&item=EventTree&opt=event.fTriggerBits)

It is allowed to use different expressions with branch values:

Expand Down Expand Up @@ -309,11 +309,11 @@ Or one could dump values produced with draw expression (also first 10 entries by
Working with array indexes is supported. By default, all elements in array are used for the drawing.
One could specify index for any array dimension (-1 means last element in the array). For instance, dump last element from `event.fTracks` array:

- [opt=event.fTracks[-1].fBits>>dump](https://root.cern/js/latest/?file=https://root.cern/files/event/event_0.root&item=EventTree&opt=event.fTracks[-1].fBits>>dump)
- [opt=event.fTracks[-1].fBits>>dump](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/event/event_0.root&item=EventTree&opt=event.fTracks[-1].fBits>>dump)

For any array or collection kind one could extract its size with expression:

- [opt=event.fTracks.@size](https://root.cern/js/latest/?file=https://root.cern/files/event/event_0.root&item=EventTree&opt=event.fTracks.@size;num:3000)
- [opt=event.fTracks.@size](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/event/event_0.root&item=EventTree&opt=event.fTracks.@size;num:3000)

At the end of expression one can add several parameters with the syntax:

Expand All @@ -330,7 +330,7 @@ Following parameters are supported:
- "drawopt" - drawing option for produced histogram
- "graph" - draw into TGraph object

Example - [opt=event.fTracks[].fTriggerBits;entries:1000;first:200;maxrange:25](https://root.cern/js/latest/?file=https://root.cern/files/event/event_0.root&item=EventTree&opt=event.fTracks[].fTriggerBits;entries:1000;first:200;maxrange:25)
Example - [opt=event.fTracks[].fTriggerBits;entries:1000;first:200;maxrange:25](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/event/event_0.root&item=EventTree&opt=event.fTracks[].fTriggerBits;entries:1000;first:200;maxrange:25)


## Geometry viewer
Expand Down Expand Up @@ -406,7 +406,7 @@ Another way to configure visibility flags is usage of ROOT macros, which typical

```cpp
{
TGeoManager::Import("http://root.cern/files/alice2.root");
TGeoManager::Import("http://root-test.web.cern.ch/files/alice2.root");
gGeoManager->DefaultColors();
// gGeoManager->SetVisLevel(4);
gGeoManager->GetVolume("HALL")->InvisibleAll();
Expand All @@ -432,19 +432,19 @@ All other will be ignored.


Example of major LHC detectors:
* ALICE: [full](https://root.cern/js/latest/?file=https://root.cern/files/alice2.root&item=Geometry;1&opt=macro:https://root.cern/js/files/geomAlice.C)
* ATLAS: [full](https://root.cern/js/latest/?file=https://root.cern/files/atlas.root&item=atlas;1&opt=clipxyz), [cryo](https://root.cern/js/latest/?file=https://root.cern/files/atlas.root&item=atlas;1&opt=macro:https://root.cern/files/atlas_cryo.C), [sctt](https://root.cern/js/latest/?file=https://root.cern/files/atlas.root&item=atlas;1&opt=macro:https://root.cern/files/atlas_sctt.C)
* CMS: [cmse](https://root.cern/js/latest/?file=https://root.cern/files/cms.root&item=cms;1&opt=macro:https://root.cern/files/cms_cmse.C;clipxyz), [calo](https://root.cern/js/latest/?file=https://root.cern/files/cms.root&item=cms;1&opt=macro:https://root.cern/files/cms_calo.C;clipxyz)
* LHCb: [full](https://root.cern/js/latest/?file=https://root.cern/files/lhcbfull.root&item=Geometry;1&opt=all;dflt)
* ALICE: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/alice2.root&item=Geometry;1&opt=macro:https://root.cern/js/files/geomAlice.C)
* ATLAS: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/atlas.root&item=atlas;1&opt=clipxyz), [cryo](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/atlas.root&item=atlas;1&opt=macro:https://root-test.web.cern.ch/files/atlas_cryo.C), [sctt](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/atlas.root&item=atlas;1&opt=macro:https://root-test.web.cern.ch/files/atlas_sctt.C)
* CMS: [cmse](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/cms.root&item=cms;1&opt=macro:https://root-test.web.cern.ch/files/cms_cmse.C;clipxyz), [calo](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/cms.root&item=cms;1&opt=macro:https://root-test.web.cern.ch/files/cms_calo.C;clipxyz)
* LHCb: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/lhcbfull.root&item=Geometry;1&opt=all;dflt)

Other detectors examples:
* HADES: [full](https://root.cern/js/latest/?file=https://root.cern/files/hades2.root&item=CBMGeom;1&opt=all;dflt), [preselected](https://root.cern/js/latest/?json=../files/geom/hades.json.gz)
* BABAR: [full](https://root.cern/js/latest/?file=https://root.cern/files/babar.root&item=babar;1&opt=macro:https://root.cern/files/babar_all.C), [emca](https://root.cern/js/latest/?file=https://root.cern/files/babar.root&item=babar;1&opt=macro:https://root.cern/files/babar_emca.C)
* STAR: [full](https://root.cern/js/latest/?file=https://root.cern/files/star.root&item=star;1&opt=macro:https://root.cern/files/star_all.C;clipxyz), [svtt](https://root.cern/js/latest/?file=https://root.cern/files/star.root&item=star;1&opt=macro:https://root.cern/files/star_svtt.C)
* D0: [full](https://root.cern/js/latest/?file=https://root.cern/files/d0.root&item=d0;1&opt=clipxyz)
* NA47: [full](https://root.cern/js/latest/?file=https://root.cern/files/na47.root&item=na47;1&opt=dflt)
* BRAHMS: [full](https://root.cern/js/latest/?file=https://root.cern/files/brahms.root&item=brahms;1&opt=dflt)
* SLD: [full](https://root.cern/js/latest/?file=https://root.cern/files/sld.root&item=sld;1&opt=dflt;clipxyz)
* HADES: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/hades2.root&item=CBMGeom;1&opt=all;dflt), [preselected](https://root.cern/js/latest/?json=../files/geom/hades.json.gz)
* BABAR: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/babar.root&item=babar;1&opt=macro:https://root-test.web.cern.ch/files/babar_all.C), [emca](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/babar.root&item=babar;1&opt=macro:https://root-test.web.cern.ch/files/babar_emca.C)
* STAR: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/star.root&item=star;1&opt=macro:https://root-test.web.cern.ch/files/star_all.C;clipxyz), [svtt](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/star.root&item=star;1&opt=macro:https://root-test.web.cern.ch/files/star_svtt.C)
* D0: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/d0.root&item=d0;1&opt=clipxyz)
* NA47: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/na47.root&item=na47;1&opt=dflt)
* BRAHMS: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/brahms.root&item=brahms;1&opt=dflt)
* SLD: [full](https://root.cern/js/latest/?file=https://root-test.web.cern.ch/files/sld.root&item=sld;1&opt=dflt;clipxyz)

Together with geometry one could display tracks (TEveTrack) and hits (TEvePointSet, TPolyMarker3D) objects.
Either one do it interactively by drag and drop, or superimpose drawing with `+` sign like:
Expand Down
2 changes: 1 addition & 1 deletion documentation/tmva/UsersGuide/UsingTMVAQuickStart.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ \subsection{Running the example}

The macros automatically fetch the data file from
the web using the corresponding \code{TFile} constructor, \eg,
\code{TFile::Open("http://root.cern/files/tmva_class_example.root")} (\code{tmva_reg_example.root} for regression). The example %ToDo: insert this code into our example execs and macros.
\code{TFile::Open("http://root-test.web.cern.ch/files/tmva_class_example.root")} (\code{tmva_reg_example.root} for regression). The example %ToDo: insert this code into our example execs and macros.
ROOT macros can be run directly in the \TmvaTutorialDir directory,
or from anywhere after adding the macro directory
to ROOT's macro search path:
Expand Down
2 changes: 1 addition & 1 deletion hist/histpainter/src/THistPainter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2429,7 +2429,7 @@ Begin_Macro(source)
auto p = new TH2Poly("USA","USA Population",lon1,lon2,lat1,lat2);

TFile::SetCacheFileDir(".");
auto f = TFile::Open("http://root.cern/files/usa.root", "CACHEREAD");
auto f = TFile::Open("http://root-test.web.cern.ch/files/usa.root", "CACHEREAD");

TMultiGraph *mg;
TKey *key;
Expand Down
2 changes: 1 addition & 1 deletion io/doc/v528/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ <h4>TFile::MakeProject</h4>
</ul>
<h4>Misc.</h4>
<ul>
<li><tt>TFile::Open</tt> now does variable expansion so that you can include the protocol in the variable (for example: <pre style="border:gray 1px solid;padding:0.5em 2em;background:#ffe">export H1="http://root.cern/files/h1"
<li><tt>TFile::Open</tt> now does variable expansion so that you can include the protocol in the variable (for example: <pre style="border:gray 1px solid;padding:0.5em 2em;background:#ffe">export H1="http://root-test.web.cern.ch/files/h1"
...
TFile::Open("$H1/dstarmb.root");</pre></li>
<li>Added warning if the file does contain any StreamerInfo objects and was written with a different version of ROOT.</li>
Expand Down
4 changes: 2 additions & 2 deletions io/doc/v532/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h4>TFile::MakeProject</h4>
For example, the following generates a PAR package equivalent to
tutorials/proof/event.par:
<pre style="border:gray 1px solid;padding:0.5em 2em;background:#ffe">
root [] TFile *f = TFile::Open("http://root.cern/files/data/event_1.root")
root [] TFile *f = TFile::Open("http://root-test.web.cern.ch/files/data/event_1.root")
root [] f->MakeProject("packages/myevent.par", "*", "par");
</pre>
Note that, because a PAR file is a tarball, for the time being, on Windows
Expand Down Expand Up @@ -151,7 +151,7 @@ <h4>TParallelMergingFile</h4>
<pre style="border:gray 1px solid;padding:0.5em 2em;background:#ffe">
TFile::Open("mergedClient.root?pmerge","RECREATE"); // For now contact localhost:1095
TFile::Open("mergedClient.root?pmerge=localhost:1095","RECREATE");
TFile::Open("rootd://root.cern/files/output.root?pmerger=pcanal:password@locahost:1095","NEW")
TFile::Open("rootd://root-test.web.cern.ch/files/output.root?pmerger=pcanal:password@locahost:1095","NEW")
</pre>
<tt>tutorials/net/treeClient.C</tt> and <tt>fastMergeServer.C</tt>: update to follow the change in interfaces
Introduce the tutorials <tt>parallelMergerClient.C</tt> and the temporary tutorials <tt>parallelMergerServer.C</tt>
Expand Down
4 changes: 2 additions & 2 deletions io/io/test/RRawFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ TEST(RRawFile, Basic)
TEST(RRawFile, Remote)
{
#ifdef R__HAS_DAVIX
auto f = RRawFile::Create("http://root.cern/files/davix.test");
auto f = RRawFile::Create("http://root-test.web.cern.ch/files/davix.test");
std::string line;
EXPECT_TRUE(f->Readln(line));
EXPECT_STREQ("Hello, World", line.c_str());
#else
EXPECT_THROW(RRawFile::Create("http://root.cern/files/davix.test"), std::runtime_error);
EXPECT_THROW(RRawFile::Create("http://root-test.web.cern.ch/files/davix.test"), std::runtime_error);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion io/io/test/TFileTests.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void TestReadWithoutGlobalRegistrationIfPossible(const char *fname)
// https://github.com/root-project/root/issues/10742
TEST(TFile, ReadWithoutGlobalRegistrationWeb)
{
const auto webFile = "http://root.cern/files/h1/dstarmb.root";
const auto webFile = "http://root-test.web.cern.ch/files/h1/dstarmb.root";
TestReadWithoutGlobalRegistrationIfPossible(webFile);
}
TEST(TFile, ReadWithoutGlobalRegistrationNet)
Expand Down
2 changes: 1 addition & 1 deletion main/python/cmdLineUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def _rootLsPrintLongLs(keyList, indent, treeListing, recursiveListing):
An example:
```
$ rootls -l https://root.cern/files/tutorials/hsimple.root
$ rootls -l https://root-test.web.cern.ch/files/tutorials/hsimple.root
TProfile Jun 30 23:59 2018 hprof;1 "Profile of pz versus px"
TH1F Jun 30 23:59 2018 hpx;1 "This is the px distribution"
TH2F Jun 30 23:59 2018 hpxpy;1 "py vs px"
Expand Down
10 changes: 5 additions & 5 deletions net/davix/test/RRawFileDavix.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ TEST(RRawFileDavix, Idle)
{
// Test construction and destruction if the URL is never opened
RRawFile::ROptions options;
RRawFileDavix("http://root.cern/files/davix.test", options);
RRawFileDavix("http://root-test.web.cern.ch/files/davix.test", options);
}

TEST(RRawFileDavix, Basics)
{
std::string line;
RRawFile::ROptions options;
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root.cern/files/davix.test", options));
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root-test.web.cern.ch/files/davix.test", options));
f->Readln(line);
EXPECT_STREQ("Hello, World", line.c_str());
EXPECT_EQ(13u, f->GetSize());

std::unique_ptr<RRawFileDavix> f2(new RRawFileDavix("http://root.cern/files/davix.test.404", options));
std::unique_ptr<RRawFileDavix> f2(new RRawFileDavix("http://root-test.web.cern.ch/files/davix.test.404", options));
EXPECT_THROW(f2->Readln(line), std::runtime_error);
}

Expand All @@ -34,7 +34,7 @@ TEST(RRawFileDavix, Eof)
char tail[4];
tail[3] = '\0';
RRawFile::ROptions options;
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root.cern/files/davix.test", options));
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root-test.web.cern.ch/files/davix.test", options));
auto nbytes = f->ReadAt(tail, 10, f->GetSize() - 3);
EXPECT_EQ(3u, nbytes);
EXPECT_STREQ("ld\n", tail);
Expand All @@ -45,7 +45,7 @@ TEST(RRawFileDavix, ReadV)
{
RRawFile::ROptions options;
options.fBlockSize = 0;
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root.cern/files/davix.test", options));
std::unique_ptr<RRawFileDavix> f(new RRawFileDavix("http://root-test.web.cern.ch/files/davix.test", options));

char buffer[2];
buffer[0] = buffer[1] = 0;
Expand Down
2 changes: 1 addition & 1 deletion roofit/roofitcore/src/RooAbsPdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ std::unique_ptr<RooAbsReal> RooAbsPdf::createNLLImpl(RooAbsData &data, const Roo
* <tr><td> `AsymptoticError()` <td> Use the asymptotically correct approach to estimate errors in the presence of weights.
* This is slower but more accurate than `SumW2Error`. See also https://arxiv.org/abs/1911.01303).
This option even correctly implements the case of extended likelihood fits
(see this [writeup on extended weighted fits](https://root.cern/files/extended_weighted_fits.pdf) that complements the paper linked before).
(see this [writeup on extended weighted fits](https://root-test.web.cern.ch/files/extended_weighted_fits.pdf) that complements the paper linked before).
* <tr><td> `PrefitDataFraction(double fraction)`
* <td> Runs a prefit on a small dataset of size fraction*(actual data size). This can speed up fits
* by finding good starting values for the parameters for the actual fit.
Expand Down
2 changes: 1 addition & 1 deletion roofit/roostats/test/stressRooStats.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ int main(int argc, const char *argv[])
bool doTreeStore = false;
auto backend = RooFit::EvalBackend::Legacy();

// string refFileName = "http://root.cern/files/stressRooStats_v534_ref.root" ;
// string refFileName = "http://root-test.web.cern.ch/files/stressRooStats_v534_ref.root" ;
string refFileName = "stressRooStats_ref.root";
string minimizerName = "Minuit";

Expand Down
2 changes: 1 addition & 1 deletion test/GetWebHistogram.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ void GetWebHistogram()
// example of script called from an Action on Demand when a TRef object
// is dereferenced. See Event.h, member fWebHistogram

const char *URL = "http://root.cern/files/pippa.root";
const char *URL = "http://root-test.web.cern.ch/files/pippa.root";
printf("GetWebHistogram from URL: %s\n",URL);
TFile *f= TFile::Open(URL);
f->cd("DM/CJ");
Expand Down
2 changes: 1 addition & 1 deletion test/rootDownloadData.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(NOT DST)
set(DST .)
endif()

set(rootsite http://root.cern/files)
set(rootsite http://root-test.web.cern.ch/files)
set(timeout 100)

if(NOT EXISTS ${DST}/h1)
Expand Down
Loading

0 comments on commit 411dd29

Please sign in to comment.