]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/TPCupgrade/macros/makeCurrentCorrection.sh
Fixing coverity defects 24797 and 24795
[u/mrichter/AliRoot.git] / TPC / TPCupgrade / macros / makeCurrentCorrection.sh
1 #  
2 # shell script to submit small jobs for the current makeCurrentCorrection.C root macro
3 # used for the TPC TDR studies 
4 #         
5 source $1 
6 aliroot -b -q $flucPath/NimStyle.C $ALICE_ROOT/TPC/Upgrade/macros/makeCurrentCorrection.C+\($2,$3,$4\)
7 exit;
8
9 #
10 # Example usage local jobs to be submitted form the lxb1001 or lxb1002
11 #(here we have 80 nodes and user disk)
12 #
13
14 makeEnvLocal(){
15 #
16 #
17 #
18     export baliceTPC=/u/miranov/.baliceTPC
19     export flucPath=$HOME/AliRoot/git/TPCdev/TPC/Upgrade/macros/
20     export batchCommand="qsub -cwd  -V "
21 }
22
23 submitCurrentExtractionJobs(){
24 #
25 # Action
26 # 1.) submit current extraction jobs
27 #
28     wdir=`pwd`
29     counter=0;
30     for a in `ls -d dir*`; do
31         cd $wdir/$a
32         rm localCurent.root current.log 
33         $batchCommand    -o  current.log  $flucPath/makeCurrentCorrection.sh $baliceTPC  0  20000 $counter
34         let counter=counter+1
35         cd $wdir
36     done;
37 }
38
39 submitSmoothingJobs(){
40 #
41 # Action:
42 # 2.) Submit smoothing jobs
43 #
44     for imap  in {0..40}; do
45         mkdir /hera/alice/miranov/SpaceCharge/Smoothing2D_2/test$imap
46         cd  /hera/alice/miranov/SpaceCharge/Smoothing2D_2/test$imap
47         ln -sf /hera/alice/wiechula/Upgrade/LUTs_fluctuation_eps20/MeasuredResidual2D/residualMap.$imap.root MeasureResidual.root
48         ln -sf /hera/alice/wiechula/Upgrade/LUTs_fluctuation_eps20/RealResidualScaled/residualMap.$imap.root RealResidualScaled.root
49         cd  /hera/alice/miranov/SpaceCharge/Smoothing2D_2/test$imap
50         $batchCommand    -o  smoothing.log  $flucPath/makeCurrentCorrection.sh $baliceTPC  1 2000 80 $imap
51     done;
52 }
53