]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/testMC/submitMC.sh
AliComparisonEff.cxx - Protection against 0 pointer
[u/mrichter/AliRoot.git] / TPC / testMC / submitMC.sh
CommitLineData
75c56124 1#!/bin/sh
2
3# 1 argument - the path to the environment setup
4# 2 argument - the job ID
5# 3 argument - path to Config.C file
6# 4 argument - path to TPC database files
7# 5 argument - number of events in the file
8# 6 argument - output path
9# 7 argument - reco type
10# 8 argument - working directory
11
12
13# EXAMPLE
14# 1.
15# $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 2 $ALICE_ROOT/TPC/testMC/ConfigHPT.C 0 2 hpt 0 `pwd`
16
17# $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 2 $ALICE_ROOT/TPC/testMC/ConfigPP.C 0 2 pp 0 `pwd`
18
19
20
21
22
23# 1.b
24# $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0 $ALICE_ROOT/TPC/testMC/ConfigHPT1.C 0 10 hpt1 0 `pwd`
25# 2.
26# $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0 $ALICE_ROOT/TPC/testMC/Config_AliGenCosmicsParam.C 0 2 cosmic 2
27# 3. $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0 $ALICE_ROOT/TPC/testMC/ConfigHM.C 0 1 hm 0
28# $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0 $ALICE_ROOT/TPC/testMC/ConfigLM.C 0 1 lm 0
29
30
31
32#
33# 1 /u/miranov/.balice64v4-06-Release # setup aliroot -root
34# 2 0 # local directory path
35# 3 \$ALICE_ROOT/macros/ConfigHPT.C # path to the Config file
36# 4 0 # path to particular TPC calib files
37# 5 2 # number of events per file
38# 6 hpt # path where wi will write the output
39
40
41cd $8
42mkdir $6
43cd $6
44echo PWD `pwd`
45
46echo HOSTNAME $HOSTNAME
47# 1 SETUP given ROOT and ALIROOT
48echo $1
49source $1
50echo $ROOTSYS
51which root.exe
52which aliroot
53
54mkdir $2
55cd $2
56cp ~/rootlogon.C .
57echo Job ID $2
58echo
59echo PWD `pwd`
60
61#
62#
63#####################################################################
64echo SUBMITING MACRO
65echo "$ALICE_ROOT/TPC/testMC/sim.C(\"$3\",\"$4\",$5)"
66echo
67command aliroot -q -b "$ALICE_ROOT/TPC/testMC/sim.C(\"$3\",\"$4\",$5)"
68echo
69echo
70#
71#
72#
73rm *.Hits*root
74rm *.SDi*root
75#####################################################################
76echo
77echo SUBMITING RECONSTRUCTION MACRO
78echo "$ALICE_ROOT/TPC/testMC/recMC.C"
79rm AliESD*
80command aliroot -q -b "$ALICE_ROOT/TPC/testMC/recMC.C"
81
82
83command aliroot -q -b "$ALICE_ROOT/TPC/testMC/compGen.C"
84command aliroot -q -b "$ALICE_ROOT/TPC/testMC/compRec.C"