====== SOPHYA/piapp demo scripts and programs ====== =============================================================== (C) LAL-IN2P3/CNRS 1998-2007 (C) DAPNIA/CEA 1998-2007 =============================================================== 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/ resonance.pic : How to make complex plots/drawings , in this case the resonance curve of an harmonic oscillator, using the piapp scripting capabilities 9/ oh_xva_spring.pic : An other example of complex drawing ... 10/ user.cc : example of function which can be called from piapp 10.a/ Create the shared/loadable object user.so csh> make user.so 10.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 11/ exmod.pic , exmodule.cc 11.a/ Create the loadable module exmodule.so csh> make exmodule.so 11.b/ Execute the script exmod.pic ---> new commands are added to piapp 12/ exmoddrw.pic exmoddrw.cc csh> make exmoddrw.so in piapp> exec exmoddrw.pic ---> extends piapp graphic capability by a new drawer