ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
scripts
buildBin.sh
Go to the documentation of this file.
1
#!/bin/bash
2
3
export
bindir
=$1;
4
export
bin
=`
echo
$bindir | gawk -
F
"/"
'{ print $(NF) }'
`;
5
echo
"---- BIN-DIRECTORY: $bindir"
;
6
echo
"---- PROCESSING MASS BIN: $bin"
;
7
echo
"---- Starting time: "
;
8
date
;
9
if
[ -s $bindir/$bin.evt ]; then
10
test -s $bindir/
AMPS
|| mkdir $bindir/
AMPS
;
11
export
AMPDIR
=$bindir/
AMPS
;
12
export
FILE
=$bindir/$bin.evt;
13
echo
"---- input: $FILE"
;
14
./doamps.sh
$FILE
;
15
fi
;
16
17
# Do monte carlo
18
19
export
FILE
=$bindir/$bin.genbod.evt;
20
if
[ -s
$FILE
]; then
21
echo
"---- mc-input: $FILE"
;
22
test -s
"$bindir/PSPAMPS"
|| mkdir $bindir/
PSPAMPS
;
23
export
AMPDIR
=$bindir/
PSPAMPS
;
24
./doamps.sh
$FILE
;
25
26
# Do integration
27
# cd $AMPDIR
28
# int *.amp > norm.int;
29
# /bin/cp norm.int $bindir/AMPS;
30
# cd -;
31
fi
;
32
33
# Do accepted monte carlo
34
export
FILE
=$bindir/$bin.acc.evt;
35
if
[ -s
$FILE
]; then
36
echo
"---- mc-acc-input: $FILE"
;
37
test -s
"$bindir/ACCAMPS"
|| mkdir $bindir/
ACCAMPS
;
38
export
AMPDIR
=$bindir/
ACCAMPS
;
39
./doamps.sh
$FILE
;
40
41
# Do integration
42
# cd $AMPDIR
43
# int *.amp > accnorm.int;
44
# /bin/cp accnorm.int $bindir/AMPS;
45
# cd -;
46
fi
;
47
48
echo
;
Generated by
1.8.1.2