Revision: | 1.1 |
Committed: | Thu Aug 11 18:54:33 2011 UTC (13 years, 9 months ago) by bortigno |
Content type: | application/x-sh |
Branch: | MAIN |
CVS Tags: | EDMV42_Step2_V8, EDMV42_Step2_V7, EDMV42_Step2_V6, EDMV42_Step2_V5a, EDMV42_Step2_V5, tauCandV42, hbbsubstructDev_11, hbbsubstructDev_10, hbbsubstructDev_9, hbbsubstructDev_8, hbbsubstructDev_7, hbbsubstructDev_6, hbbsubstructDev_5, hbbsubstructDev_4, hbbsubstructDev_3, hbbsubstructDev_2, hbbsubstructDev_1, hbbsubstructDev, V21TauCand_0, EDMV42_Step2_V4a, EDMV42_Step2_V4, EDMV42_Step2_V3, EDMV42_Step2_V2, EDMV42_Step2_V1, EdmV42, EdmV41alpha1, EdmV40alpha1, EdmV40alpha, V21emuCand, EdmV33Jun12v2_consistent, Step2ForV33_v2, Step2ForV33_v1, EdmV33Jun12v2, EdmV33Jun12v1, EdmV33Jun12v0, Step2ForV32_v2, Step2ForV32_v1, Step2ForV32_v0, Step2ForV31_v0, EdmV32May24v0, EdmV31May21v1, EdmV31May17v0, EdmV30Apr10, EdmV21Apr10v2, EdmV22May9, EdmV21Apr06, EdmV21Apr10, EdmV21Apr04, EdmV21Apr03, EdmV21Apr2, EdmV21Mar30, EdmV20Mar12, AR_Nov10Ntuple, AR_step2_Oct25, AR_step2_oct19, EdmV11Oct2011, AR_Step2_Oct13, AR_Oct9Ntuple, AR_Oct7_step2ntuple, AR_Oct5Ntuple, EdmV10Oct2011, EdmV9Sept2011, Sept19th2011_2, Sept19th2011, Sept19th, VHNtupleV9_AR1, VHSept15_AR1, Sept14th2011_2, Sept14th2011_AR1, Sept14th2011, Sept13th2011, AR_Sep8_LightNtuple, VHBB_EDMNtupleV3, HEAD |
Branch point for: | V42TauCandidate, hbbsubstructDevPostHCP, V21TauCand, V21emuCandidate |
Log Message: | to run tree_maker and/or the training |
# | User | Rev | Content |
---|---|---|---|
1 | bortigno | 1.1 | #!/bin/sh |
2 | |||
3 | echo "Do you want to train the MVA?" | ||
4 | read mva | ||
5 | |||
6 | echo "Do you want to redo all the trees" | ||
7 | read trees | ||
8 | |||
9 | if [ "$trees" == "yes" ]; | ||
10 | then | ||
11 | for i in MC_files/*.txt ; do | ||
12 | NAME=`echo $i | perl -pe 's/.txt//'` | ||
13 | echo $NAME | ||
14 | make_tree $i $NAME >& $NAME.log & | ||
15 | |||
16 | done | ||
17 | |||
18 | for i in Data_files/*.txt ; do | ||
19 | NAME=`echo $i | perl -pe 's/.txt//'` | ||
20 | echo $NAME | ||
21 | make_tree $i $NAME >& $NAME.log & | ||
22 | |||
23 | done | ||
24 | fi | ||
25 | |||
26 | if [ "$mva" == "yes" ]; | ||
27 | then | ||
28 | |||
29 | JOBRUNNING=`ps -ef | grep make_BDT | grep -v grep | wc -l` | ||
30 | echo $JOBRUNNING | ||
31 | while [ $JOBRUNNING -gt 0 ] | ||
32 | do | ||
33 | echo "$JOBWORKING still running" | ||
34 | echo "please wait..." | ||
35 | sleep 60 | ||
36 | JOBRUNNING=`ps -ef | grep make_BDT | grep -v grep | wc -l` | ||
37 | done | ||
38 | |||
39 | echo "Which channel do you want to train? You can specify more than one. (Zmm, Zee, Znn, Wm, Wn, all)" | ||
40 | read CHANNEL1 CHANNEL2 CHANNEL3 CHANNEL4 CHANNEL5 | ||
41 | |||
42 | if [ "$CHANNEL1" == "all" ] | ||
43 | then | ||
44 | echo "Running training for channel Zmm" | ||
45 | TMVAClassification Zmm | ||
46 | echo "Running training for channel Zee" | ||
47 | TMVAClassification Zee | ||
48 | echo "Running training for channel Znn" | ||
49 | TMVAClassification Znn | ||
50 | echo "Running training for channel Wm" | ||
51 | TMVAClassification Wm | ||
52 | echo "Running training for channel We" | ||
53 | TMVAClassification We | ||
54 | fi | ||
55 | |||
56 | if [ "$CHANNEL1" ] | ||
57 | then | ||
58 | echo "Running training for channel $CHANNEL1" | ||
59 | TMVAClassification $CHANNEL1 | ||
60 | fi | ||
61 | if [ "$CHANNEL2" ] | ||
62 | then | ||
63 | echo "Running training for channel $CHANNEL2" | ||
64 | TMVAClassification $CHANNEL2 | ||
65 | fi | ||
66 | if [ "$CHANNEL3" ] | ||
67 | then | ||
68 | echo "Running training for channel $CHANNEL3" | ||
69 | TMVAClassification $CHANNEL3 | ||
70 | fi | ||
71 | if [ "$CHANNEL4" ] | ||
72 | then | ||
73 | echo "Running training for channel $CHANNEL4" | ||
74 | TMVAClassification $CHANNEL4 | ||
75 | fi | ||
76 | if [ "$CHANNEL5" ] | ||
77 | then | ||
78 | echo "Running training for channel $CHANNEL5" | ||
79 | TMVAClassification $CHANNEL5 | ||
80 | fi | ||
81 | fi |