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:// monet
  • cd monet

  • edit and add "filelock" to the "install_requires" list

  • export http_proxy=
  • export https_proxy=
  • export MONET_CONFIG=`pwd`/configs/

  • 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/ configs/

  • edit configs/ and replace your email address

  • cp /nfs/sw/om/Monet/presenter/blueprints/dq/ presenter/blueprints/dq/
  • cp /nfs/sw/om/Money/presenter/blueprints/dq/render/ presenter/blueprints/dq/render/
  • cp /nfs/sw/om/Money/presenter/blueprints/dq/render/ presenter/blueprints/dq/render/

You can then start Monet with

* python -m

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 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2017-10-10 - MarcoAdinolfi
    • 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