Skip to content

Web Plotting

Daniel Savoiu edited this page Aug 19, 2017 · 19 revisions

HarryPlotter can publish plots in a web gallery.

Setting up EOS website

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 also want people (including yourself) to be able to browse the directory within the browser, create a file called .htaccess and put it in your www folder. This file should contain the 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.

Moving from AFS to EOS

If you currently have an AFS website, you first need to set up a new www folder using CERNBox as described above. To copy the contents that are already hosted in your AFS webspace, use:

rsync -av /afs/cern.ch/user/<initial>/<username>/www/* /eos/user/<initial>/<username>/www/

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.

Once HarryPlotter is updated to upload plots into the EOS webspace, there will be instructions here on how to turn your current AFS website into EOS.

Using HarryPlotter's web-plotting

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.

Note 2: If you work in Aachen, also set the variable HARRY_USERPC manually:

export HARRY_USERPC=your-machine.rwth-aachen.de

As for the HARRY_REMOTE_USER, do it before running the ini_KITHiggsToTauTauAnalysis.sh script.

Don't forget for each shell to call

web_plotting_no_passwd

and enter the CERN password.