Skip to content

Link .root to JSROOT interface #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "jsroot"]
path = jsroot
url = [email protected]:linev/jsroot.git
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ It is tailored to people working in High Energy Physics that use ROOT (http://ro

cd <my-path>

1. Clone this repository
1. Clone this repository (and its submodule jsroot)

git clone https://github.com/musella/php-plots.git .
git clone --recursive https://github.com/simonepigazzini/php-plots.git

1. Copy the example/htaccess file into .htaccess and edit its content to suit your needs.

cp -p example/htaccess .htaccess
$EDITOR .htacces

1. Copy res/ jsroot/ and index.php into your web page top directory.

cp -r res/ /path/to/www/
cp -r jsroot/ /path/to/www/
cp index.php /path/to/www/

1. Open the web folder into your browser.

1. Enjoy.
Expand All @@ -41,6 +47,7 @@ It is tailored to people working in High Energy Physics that use ROOT (http://ro

1. Overlay content of .txt version on mouse hover.

# Example
1. Display root files using [JSROOT](https://root.cern.ch/js/)

1. Display html interactive plots generated with [plotly](https://plotly.com/)

https://musella.web.cern.ch/musella/php-plots
71 changes: 52 additions & 19 deletions example/htaccess
Original file line number Diff line number Diff line change
@@ -1,23 +1,56 @@
## CERN Signle sign-on
## Uncomment if you want to restrict the access to your files
# *** This htaccess file has been modified automatically on November 16, 2020 ***
# Due to the end-of-life of SLC6 and Apache 2.2, web sites get migrated to a new infrastructure running
# CC7 and Apache 2.4. There are incompatible differences in web site configuration between these two versions.
# Because this htaccess file contained such incompatibilities, it has been modified in a way that works on both
# old and new infrastructures during the transition period (October-November 2020).
# See https://cern.service-now.com/service-portal/?id=outage&n=OTG0059516
#
# ShibRequireAll On
# ShibRequireSession On
# ShibExportAssertion On
# SSLRequireSSL
# AuthType Shibboleth
#
# SSLVerifyClient optional
# SSLVerifyDepth 5
# SSLOptions +StrictRequire
#
# # Authorized group
# Require adfs-group "cms-private"

## END CERN SSO
# *** If you need to modify this file during the transition period, make sure to apply your changes to both sections
# below. The site owner received an email with instructions to validate the web site configuration in the new
# infrastructure. ***

<IfVersion >= 2.3>
# This section contains the Apache configuration directives used in the new webeos infrastructure running
# Apache 2.4 on CC7

Options +Indexes

AuthType openid-connect
Require claim cern_roles:view-site-root

## Tell Apache this is the web index
##
DirectoryIndex index.php index.html index.htm /spigazzi/index.php


</IfVersion>

<IfVersion < 2.3>
# This section contains the Apache configuration directives used in the legacy webeos infrastructure running
# Apache 2.2 on SLC6
# It can be removed after December 2020 when https://cern.service-now.com/service-portal/?id=outage&n=OTG0059516 is complete.

Options +Indexes



ShibRequireAll On

ShibRequireSession On

ShibExportAssertion On

SSLRequireSSL # The modules only work using HTTPS

AuthType Shibboleth



Require adfs-group "cms-physics"

## Tell Apache this is the web index
##
# Put below the path to your index.php (starting from the server root)
# eg /musella/higgs/index.php
DirectoryIndex index.php index.html index.htm /<me>/<my-project>/index.php
DirectoryIndex index.php index.html index.htm /spigazzi/index.php


</IfVersion>
Loading