[3436] | 1 | ====== SOPHYA/piapp demo scripts and programs ======
|
---|
| 2 | ===============================================================
|
---|
| 3 | (C) LAL-IN2P3/CNRS 1998-2007
|
---|
| 4 | (C) DAPNIA/CEA 1998-2007
|
---|
| 5 | ===============================================================
|
---|
| 6 |
|
---|
| 7 | See http://www.sophya.org and the SOPHYA overview manual and piapp
|
---|
| 8 | user's guide for more information.
|
---|
| 9 |
|
---|
| 10 | 1/ script demo.pic and associated demo.ppf data file
|
---|
| 11 | demo script showing general piapp features
|
---|
| 12 | csh> spiapp -exec demo
|
---|
| 13 | OR
|
---|
| 14 | csh> spiapp
|
---|
| 15 | # Execute the piapp command :
|
---|
| 16 | piapp> exec demo.pic
|
---|
| 17 |
|
---|
| 18 | 2/ script tarc.pic
|
---|
| 19 | Drawing text, arcs and arrows ...
|
---|
| 20 | piapp> exec demo.pic
|
---|
| 21 |
|
---|
| 22 | 3/ fft2d.pic and fft2.cc
|
---|
| 23 | c++ execution in piapp
|
---|
| 24 | piapp> exec fft2d.pic
|
---|
| 25 |
|
---|
| 26 | 4/ multicurve.pic
|
---|
| 27 | Drawing example, superposition of several functions
|
---|
| 28 | piapp> exec multicurve
|
---|
| 29 | OR exec multicurve.pic
|
---|
| 30 |
|
---|
| 31 | 5/ axel.pic : Some options for axes
|
---|
| 32 |
|
---|
| 33 | 6/ addelts.pic : How to add some graphic objects (circles, rectangles, text)
|
---|
| 34 | to a plot, in this case a function plot
|
---|
| 35 |
|
---|
| 36 | 7/ pnbpays.pic : How to make and draw a bargraph
|
---|
| 37 |
|
---|
| 38 | 8/ resonance.pic : How to make complex plots/drawings , in this case
|
---|
| 39 | the resonance curve of an harmonic oscillator, using the piapp
|
---|
| 40 | scripting capabilities
|
---|
| 41 |
|
---|
| 42 | 9/ oh_xva_spring.pic : An other example of complex drawing ...
|
---|
| 43 |
|
---|
| 44 | 10/ user.cc : example of function which can be called from piapp
|
---|
| 45 | 10.a/ Create the shared/loadable object user.so
|
---|
| 46 | csh> make user.so
|
---|
| 47 | 10.b/ in piapp, link the module and call the function
|
---|
| 48 | piapp> link user.so user
|
---|
| 49 | piapp> call user
|
---|
| 50 | # --> creates NTuple usernt
|
---|
| 51 | # Can be called again [with different arguments]
|
---|
| 52 | piapp> call user aaa 1 2 bbb
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | Loadable modules
|
---|
| 57 | ----------------
|
---|
| 58 | piapp capabilities can be extended using loadable modules
|
---|
| 59 |
|
---|
| 60 | 11/ exmod.pic , exmodule.cc
|
---|
| 61 | 11.a/ Create the loadable module exmodule.so
|
---|
| 62 | csh> make exmodule.so
|
---|
| 63 | 11.b/ Execute the script exmod.pic
|
---|
| 64 | ---> new commands are added to piapp
|
---|
| 65 |
|
---|
| 66 | 12/ exmoddrw.pic exmoddrw.cc
|
---|
| 67 | csh> make exmoddrw.so
|
---|
| 68 | in piapp> exec exmoddrw.pic
|
---|
| 69 | ---> extends piapp graphic capability by a new drawer
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 |
|
---|