Web Plotting - artus-analysis/Artus GitHub Wiki
HarryPlotter can publish plots in a web gallery.
First you need to make sure to have access to CERNBox. Before you can create the website you should follow these steps on how to set up the required directory called www
.
If you currently have an AFS website, you first need to set up a new www
folder using CERNBox as described above. You don't need to perform actions from "Web-site access" chapter. To copy the contents that are already hosted in your AFS webspace, use (while connected to lxplus):
rsync -av /afs/cern.ch/user/<initial>/<username>/www/* /eos/user/<initial>/<username>/www/
The command will not copy the hidden files! So manually copy the .htaccess
file too or create a new one as written in first paragraph of "Web-site access".
If you first want to make sure if everything will work fine on the new EOS website, go here and create a new EOS test site.
If your test site works fine and you're ready to turn your AFS website into EOS, go here and select your AFS website. In the toolbox on the left, you are given the option to Move to EOS
.
Check again that the path is set to your /eos/user/<initial>/<username>/www/
.
If you also want people (including yourself) to be able to browse the directory within the browser without using CernBox (so, as it was before with afs), create a file called .htaccess
and put it in your www
folder. This file should contain one line Options +Indexes
. Now, you can create your website.
CERN users can, for example, create a CERN web site here (choose EOS folder as Site type). Supply the link of your www
folder for creating your website.
This functionality is configured by a set of environment variables or via the --www-...
arguments of HarryPlotter. The defaults defined in ini_harry_cmssw.sh should already work for most users.
The functionality is used via the --www
argument of HarryPlotter. The link to the created gallery is printed after all files are copied.
Note 1: If your CERN username is different from the username in your working environment (NAF, RWTH, EKP...), then you need to set the variable HARRY_REMOTE_USER
to be your CERN user name:
export HARRY_REMOTE_USER=your-cern-username
Do it before running the ini_KITHiggsToTauTauAnalysis.sh script to set up your working environment.
Don't forget for each shell to call:
web_plotting_no_passwd
and enter the CERN password.