Skip to content
Snippets Groups Projects
Commit 2a4eca2e authored by Hernán Asorey's avatar Hernán Asorey
Browse files

More usage help added in README.md

parent 51b6b8fe
No related branches found
No related tags found
No related merge requests found
...@@ -35,18 +35,18 @@ all: $(TESTS) ...@@ -35,18 +35,18 @@ all: $(TESTS)
.PHONY: clean .PHONY: clean
clean:
rm -f bin/*
$(MAKE) -C $(CODE_DIR) clean
run: run:
$(MAKE) -C $(SIM_DIR) $(MAKE) -C $(SIM_DIR)
fullclean: clean:
rm -f bin/* rm -f bin/*
$(MAKE) -C $(CODE_DIR) clean $(MAKE) -C $(CODE_DIR) clean
simclean:
$(MAKE) -C $(SIM_DIR) clean $(MAKE) -C $(SIM_DIR) clean
fullclean: clean simclean
check-lago: check-lago:
ifndef LAGO_EASY ifndef LAGO_EASY
$(info LAGO_EASY is not set.) $(info LAGO_EASY is not set.)
......
...@@ -80,6 +80,26 @@ make run ...@@ -80,6 +80,26 @@ make run
in the parent directory. It will provide a <kbd>.root</kbd> file with a specific name depending on the parameters defined in the <kbd>default.inp</kbd> file. It is then converted into ASCII, extracting the FADC traces, producing a <kbd>.dat</kbd> ASCII file. in the parent directory. It will provide a <kbd>.root</kbd> file with a specific name depending on the parameters defined in the <kbd>default.inp</kbd> file. It is then converted into ASCII, extracting the FADC traces, producing a <kbd>.dat</kbd> ASCII file.
#### Data analysis
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
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
```
producing a file containing a two column file: <kbd>charge counts</kbd>.
#### Housekeeping
We include three leves of data and binary cleaning:
```bash
make clean # clean binaries and libraries
make simclean # erase simulated data from previous runs
make fullclean # executes clean and simclean directives
```
### Additional package ### Additional package
An additional tool, <kbd>Trace</kbd> is included. It can be used to calculate the trace lenght distribution of muons going thought the detector. To configure it, two blocks inside the main code should be modified. So: An additional tool, <kbd>Trace</kbd> is included. It can be used to calculate the trace lenght distribution of muons going thought the detector. To configure it, two blocks inside the main code should be modified. So:
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
################################################ ################################################
# #
# number of events (Number of particles injected in station) # number of events (Number of particles injected in station)
NEvents 10000 NEvents 100000
# runnumber (Used for File naming, can be any string) # runnumber (Used for File naming, can be any string)
RunNumber 01 RunNumber 01
# partmode (VEM| FIXEDTHETA| RANDOM| SCINTILLATOR| HORIZONTAL) # partmode (VEM| FIXEDTHETA| RANDOM| SCINTILLATOR| HORIZONTAL)
...@@ -57,10 +57,10 @@ PartTheta 0 ...@@ -57,10 +57,10 @@ PartTheta 0
# #
# simmode (FAST | DETAILED | SAMPLE) # simmode (FAST | DETAILED | SAMPLE)
# recommended: DETAILED # recommended: DETAILED
#SimMode DETAILED SimMode DETAILED
# muemmode (DEFAULT | MUEM) (if MUEM, mu and em traces) # muemmode (DEFAULT | MUEM) (if MUEM, mu and em traces)
# recommended: DEFAULT # recommended: DEFAULT
#MuEmMode DEFAULT MuEmMode DEFAULT
# elecmode (DEFAULT | FULL | PM | SHOWSAT)(if FULL intermediate elecsim written) # elecmode (DEFAULT | FULL | PM | SHOWSAT)(if FULL intermediate elecsim written)
# recommended: PM # recommended: PM
#ElecMode PM ElecMode PM
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment