doanal.sh 776 Bytes
Newer Older
positron cool guys's avatar
positron cool guys committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

#daq parameters
export DAQEXE="" #to be set
export DAQDIR=""
export DAQOUTDIR="/home/positron/LymanAlpha/MuMass/data"

#reconstruction
export RECOMULTEXE="/home/positron/LymanAlpha/MuMass/mumass-mm-analysis/map_multiplex" #to be set
export RECOEXE="/home/positron/LymanAlpha/MuMass/mumass-mm-analysis/analyze_PositionData"
export RECODIR=$DAQOUTDIR"/reconstructed"

#plotting and fitting
export ANALEXE="/home/positron/LymanAlpha/MuMass/mumass-mm-analysis/reconstructAndPlot"
export ANALDIR=$DAQOUTDIR"/analysed"


make $ANALEXE

for file in $RECODIR/*root
do
    
    #analysed data
    export analfileout=$DAQOUTDIR/"analysed/Analysed_"$(basename $file)
    #run the reco
    echo "running reco for $file"
    $ANALEXE $file $analfileout

done

echo "ALL DONE"