PAW Tricks
Error messages while writing NTUPLES
Message 1
If following error message appears while writing out ntuples:
RZOUT: current RZ file cannot support > 64K records
or individual directories > 64K
RZOUT: previous cycle(s) for this key ( 30) deleted,
have a look at this page
- increase the record length
- increase the maximum number of records
- increase the maximum number of records even more
Message 2
Something like:
***** ERROR in HFNT bad float : Quiet NaN
means you are trying to fill your ntuples with NaN (not a number), e.g. infinity.
- Check carefully if you initialize all variables properly.
- Check carefully if you declare your ntuple entries with the correct declaration type. The message also appears if you are trying to fill an ntuple that you declared as "Real" with an "Integer" number.
Passing shell arguments to a PAW script
You can use shell variables to pass arguments to PAW kumac scripts. Just export the variable in the shell (or your shell script calling PAW):
export MYVAR=blah
You can access the shell environment variables in the kumac script using the $ENV() command:
glob/create myvar $ENV(MYVAR)
Printing nice postscript characters
- Try #LT and #GT for < >
- \74! gives Fehler beim Parsen (Konvertierungsfehler. Der Server („https://wikimedia.org/api/rest_“) hat berichtet: „Cannot get mml. Server problem.“): {\displaystyle \left.<\right.} in the ps file
- \76! gives Fehler beim Parsen (MathML mit SVG- oder PNG-Rückgriff (empfohlen für moderne Browser und Barrierefreiheitswerkzeuge): Ungültige Antwort („Math extension cannot connect to Restbase.“) von Server „https://wikimedia.org/api/rest_v1/“:): {\displaystyle \left.>\right.} in the ps file
- \41 gives !
Overlapping Window
If your PAW HIGZ window is overwritten by an overlaying other window, try this:
/etc/X11/XF86Config Option "BackingStore" "On"
This can only be done by the sys admin of your computer.
For newer linux versions, you will have tyo make the change in
/etc/X11/xorg.conf
PAW meets LaTex
Tired of retyping your results into LaTex tables when the numbers changed? Here's the solution you have been searching for (vector1, vector2 and vector3 hold your asymmetry values and its statistical and systematic uncertainties in each kinematic bin):
In your PAW kumac:
prec=F5.4 file=myresults.txt ve/write vector1,vector2,vector3 [file] [prec],[prec],[prec] command=./pawmeetstex [file] shell [command]
pawmeetstex is a little shell script (give executable rights to it!) with the following contents:
awk '{print $1, "&", $2, "&", $3, "\\\\"}' $1 > $1.tex
In your tex-file:
\begin{tabular}{r_r_r}
asymmetry & stat. error & sys. error\\ \hline\hline
\multicolumn{3}{c}{Hydrogen}\\\hline
\input{[file].tex}
\hline
\end{tabular}