Skip to content

Import files requested by Thomas

Ben Couturier requested to merge PanoramixNoGui into master

-------- Forwarded Message -------- Subject: WG: AW: Export picture from Panoramix Date: Thu, 6 Oct 2016 12:29:10 +0200 From: Thomas Ruf Thomas.Ruf@cern.ch To: Ben Couturier Ben.Couturier@cern.ch

Hi Ben,

would it be possible to import the two files below into Panoramix? I don’t had yet any success with LHCb GIT.

Thanks thomas

~truf/public/Panoramix/PanoramixNoGui.py Vis/Panoramix/options/ cp ~truf/public/Panoramix/PanoramixNoGui.onx Vis/Panoramix/scripts/OnX//PanoramixNoGui.onx

Von: Thomas Ruf Gesendet: Donnerstag, 6. Oktober 2016 12:27 An: Christopher Rob Jones jonesc@hep.phy.cam.ac.uk; Ana Trisovic ana.trisovic@cern.ch; lhcb-panoramix (LHCb PANORAMIX) lhcb-panoramix@cern.ch Betreff: RE: AW: Export picture from Panoramix

Here comes the solution (with a very good suggestion from Guy Barrand):

you need to copy the following files from ~truf/public/Panoramix (did not had time to learn the GIT LHCb flavour, and SVN is closed, sorry)

cp ~truf/public/Panoramix/PanoramixNoGui.py Vis/Panoramix/options/ cp ~truf/public/Panoramix/PanoramixNoGui.onx Vis/Panoramix/scripts/OnX//PanoramixNoGui.onx in ~truf/public/Panoramix/example.py I put some instructions how to make a nice plot:

Panoramix without graphics

on lxplus

Xvnc :0 &

setenv DISPLAY :0 or the equivalent export command for bash

setup panoramix environment

start panoramix with: python $myPanoramix -u

Vis/Panoramix/options/PanoramixNoGui.py

#example how to make an eventdisplay picture: import next_event,PR_Viewer,PRplot

next_event.execute() PR_Viewer.execute(version='single') PRplot.wprint('test.jpg')

let me know if it fits your needs. There are several predefined views which can be set with python.

cheers Thomas

Merge request reports