Imagemagic local adaptive threshold:
convert -density 300 %~1 -colorspace gray -lat 20x20-10%% -rotate 90 %~n1_lat.pdf
Exctract some variables to a new ntuple
Ncurses examples
FLTK example
RegEx example
Zamenjaj sumnike v imenih vseh doc fajlov v csz
Perl
Simple loops in ROOT
rootpage.cxx page with header
hfunc.cxx how to assoiciate function with the histogram
write.cxx write binary file
read.cxx read binary file
readascii.cxx read ascii file
test1.ascii input for readascii
test.out
fft.C Fast Fourier transform of the real array (CERNLIB)
greek.cxx how to use the national accents, sub and superscript
pallete.cxx set the color palette
Clue jobs
WriteRvertex.cxx writes Rvertex structure to the file
ReadRvertex.cxx reads Rvertex structure from the file
Rvertex.h Rvertex structure
effi_fake.cxx Kaon separation efficiency in RICH .cxx
TGeo root geometry example rgeo.C
TGeo gdml read readgeom.C
kumac
Difference in Cherenkov angles as a function of momentum
ARTE hints
write_raw_data.C DAQ1 output
daq1.kumac Example kumac (no reconstruction included) just looping over already filled tables
daq1.ll How to submit a job to hera-b
script.sh Script for submission of ARTE jobs
MPI and parallel programming
distribute.c Master/Slave scheme
FAQ:
BASH find
If you have GNU find, you can do this:
find -newermt "2011-03-17 04:00" ! -newermt "2011-03-17 07:40"
With other versions of find, you can do something like this:
touch -d "2011-03-17 04:00" start
touch -d "2011-03-17 07:40" end
find -newer start ! -newer end
rm start end
Perl iz bash skripte: prestej vse pojavitve NEEDLE v datoteki FILENAME:
#!/bin/bash
# find all occurences of needles in the file
#scripts/serial_ana.sh "s_*.txt"
for fname in $*
do
export NEEDLE="FC 60"
perl -ne ' $c+=scalar(()=m/$ENV{NEEDLE}/g);END{print "$c\t"} ' $fname
done
Ce mas fajl z dvema stolpcema stevilk, pa hoces sestet te stolpce
inzracunat povprecje, a mi napises tisto vrstico, ki to nardi?
#!/usr/sue/bin/perl -n
($a,$b) = split(); $sum += $a + $b; $n++;
printf("%f # %f = %f\n",$a, $b, $sum/$n);
INPUT
1 2
3 4
OUTPUT
1.000000 # 2.000000 = 3.000000
3.000000 # 4.000000 = 5.000000
RITER version 2.0 8 Feb 2000 ,
RITER version 2.1 10 Feb 2000 ,
RITER version 2.1 doc++ documentation ,
RITER version 2.1 source code ,