Running Monet

As np04daq user on one of the np04 online machines run:
/nfs/sw/om/Monet/run_monet.sh

Note the server and port to connect and copy to your browser. Accessible from inside CERN only for now.

Installation

Instruction on how to get Monet from the git and modify it to make it work on one of the machines with minimal setup without all the LHCb depending parts.

Instructions for LHCb only are on LHCb Monet git they need to be modifed for DUNE purposes. Furthemore the code needs some hacks to work.

What below is still incomplete and only should allow to run the Monet without, at the moment, producing plots visible on the web. These instructions assume you have no superuser privileges and need to install python modules in your own area, in this example /nfs/home/np04daq If you do have su privileges you can modify accordingly the python installation.

Before getting Monet make sure to install ROOT (including PYTHON) on the machine as pip will not know about it.

  • git clone ssh://git@gitlab.cern.ch:7999/lhcb/Monet.git monet
  • cd monet

  • edit setup.py and add "filelock" to the "install_requires" list

  • export http_proxy=http://np04-webgw1.cern.ch:3128
  • export https_proxy=http://np04-webgw1.cern.ch:3128
  • export MONET_CONFIG=`pwd`/configs/monet.dev.cfg

  • pip install --user -e . # If you are superuser just do: pip install -e .

After the installation you need to set the PYTHONUSERBASE and PYTHONPATH variables depending on where pip installed the various librariles

  • export PYTHONUSERBASE=/nfs/home/np04daq/.local
  • export PYTHONPATH=$PYTHONPATH:/nfs/home/np04daq/.local/lib/python2.7/site-packages/

If you are getting Monet from git you need to replace some of the source code with the modified version in /nfs/sw/om/Monet

  • cp /nfs/home/adinolfi/monet/configs/monet.dev.cfg configs/

  • edit configs/monet.dev.cfg and replace your email address

  • cp /nfs/sw/om/Monet/presenter/blueprints/dq/views.py presenter/blueprints/dq/views.py
  • cp /nfs/sw/om/Money/presenter/blueprints/dq/render/data.py presenter/blueprints/dq/render/data.py
  • cp /nfs/sw/om/Money/presenter/blueprints/dq/render/views.py presenter/blueprints/dq/render/views.py

You can then start Monet with

* python -m presenter.app


In the current implementation on /nfs/sw/om/Monet you can add new pages to the Dune Test Folder. Each page can only contain one plot. There are 2 test files used to define the list of pages and what plots they contain

The first one "/nfs/sw/om/Monet/Dune_page_file" defines the available pages, one line per page, with the format "FolderName/PageName" for example

* Dune Test Folder/Dune Test Page 00:

To add a new page simply edit the file and add a new line with the format above

The second file "/nfs/sw/om/Monet/Dune_histo_file" defines which plot are shown in the pages, one line per plot, with the format "/FolderName/PageName %%% HistoPath" where PageName is the same as the name in the Dune_page_file (note the extra / compared to the page file in front of the folder name) and HistoPath is the full path of the plot in the ROOT file excluding the file name, for example

* /Dune Test Folder/Dune Test Page 00: %%% foo/bar/plot

The %%% is used as separator. Again to add the the plot which will be shown in the new page edit the file with this format.

Once you have updated the 2 files you need to hit the Reload button on top left of Monet to reload the folder structure.

Edit | Attach | Watch | Print version | History: r16 | r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2017-10-13 - KarolH
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CENF All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback