====== SOPHYA/piapp demo scripts and programs ======
===============================================================
       (C) LAL / Univ. Paris Sud, CNRS/IN2P3   1998-2012 
       (C) IRFU-SPP/CEA                        1998-2012
===============================================================

See http://www.sophya.org and the SOPHYA overview manual and piapp 
user's guide for more information.

1/ script demo.pic and associated demo.ppf data file
   demo script showing general piapp features 
csh> spiapp -exec demo
OR 
csh> spiapp 
# Execute the piapp command :
piapp> exec demo.pic

2/ script tarc.pic 
  Drawing text, arcs and arrows ...
piapp> exec demo.pic

3/ fft2d.pic and fft2.cc 
  c++ execution in piapp 
piapp> exec fft2d.pic

4/ multicurve.pic
  Drawing example, superposition of several functions
piapp> exec multicurve  
 OR exec multicurve.pic

5/ axel.pic :  Some options for axes

6/ addelts.pic : How to add some graphic objects (circles, rectangles, text) 
   to a plot, in this case a function plot

7/ pnbpays.pic : How to make and draw a bargraph

8/ polarplot.pic : Example for creating and filling an NTuple 
  with suitable data for plot in polar coordinates using the interpreter 
  and examples of plot in polar coordinates
piapp> exec polarplot  

9/ resonance.pic : How to make complex plots/drawings , in this case
   the resonance curve of an harmonic oscillator, using the piapp 
   scripting capabilities

10/ oh_xva_spring.pic : An other example of complex drawing ...

11/ user.cc : example of function which can be called from piapp
11.a/ Create the shared/loadable object user.so
csh> make user.so
11.b/ in piapp, link the module and call the function
piapp> link user.so user
piapp> call user
#  --> creates NTuple usernt
# Can be called again [with different arguments]
piapp> call user aaa 1 2 bbb



Loadable modules 
----------------
piapp capabilities can be extended using loadable modules

12/ exmod.pic , exmodule.cc 
12.a/ Create the loadable module exmodule.so 
csh> make exmodule.so 
12.b/ Execute the script exmod.pic 
  ---> new commands are added to piapp

13/ exmoddrw.pic exmoddrw.cc 
csh> make exmoddrw.so 
 in piapp> exec exmoddrw.pic
  ---> extends piapp graphic capability by a new drawer



