From 03e57e26b3cc6e15ca107706b3c90199a3ea6239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Asorey?= <asoreyh@gmail.com> Date: Wed, 19 Jul 2017 16:49:18 -0300 Subject: [PATCH] More usage help added in README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 570a628..71b5fbe 100644 --- a/README.md +++ b/README.md @@ -84,10 +84,12 @@ in the parent directory. It will provide a <kbd>.root</kbd> file with a specific The output data is quite simple. In the resulting ASCII file, the expected ADC values for the first 100 temporal bins of the FADC traces (~2.5 us) are given for each injected particle. A simple awk script to produce a charge histogram could be: ```bash +cd ${LAGO_EASY}/sim for i in *.dat; do u=$(basename $i .dat) echo $i awk '{t[$1]+=$4}END{for (i in t) {print t[i] }}' $i | sort -n | uniq -c | awk '{if ($2) {print $2,$1}}' > $u.hst +done ``` producing a file containing a two column file: <kbd>charge counts</kbd>. -- GitLab