@@ -7,9 +7,10 @@ usage(){
77
88 echo " -h|--help) "
99 echo " -s|--step) "
10+ echo " -d|--dryRun) "
1011}
1112# options may be followed by one colon to indicate they have a required argument
12- if ! options=$( getopt -u -o s:h -l help,step: -- " $@ " )
13+ if ! options=$( getopt -u -o s:h -l help,step:,dryRun -- " $@ " )
1314then
1415# something went wrong, getopt will put out an error message for us
1516exit 1
2021case $1 in
2122-h|--help) usage; exit 0;;
2223-s|--step) STEP=$2 ; shift ;;
24+ -d|--dryRun) DR=$2 ; shift ;;
2325(--) shift ; break ;;
2426(-* ) usage; echo " $0 : error - unrecognized option $1 " 1>&2 ; usage >> /dev/stderr; exit 1;;
2527(* ) break ;;
2628esac
2729shift
2830done
2931
32+ DROPT=" "
33+ if [[ $DR ]]; then
34+ DROPT=" --printOnly "
35+ fi
3036
3137if [[ $STEP == " yields" ]]; then
3238 # for mu-simple: exclude ALT processes
33- python RunYields.py --cats " VBFTag_1,VBFTag_3,VBFTag_5,VBFTag_6,VBFTag_7" --inputWSDirMap 2016 =cards/cards_current/signal_2016, 2017=cards/cards_current/signal_2017,2018=cards/cards_current/signal_2018 --procs " GG2H,TTH,VBF,VH " --mergeYears --doSystematics --ext ${ext} _xsec --batch condor --queue espresso
39+ python RunYields.py --cats " VBFTag_1,VBFTag_3,VBFTag_5,VBFTag_6,VBFTag_7" --inputWSDirMap 2016preVFP =cards/cards_current/signal_2016preVFP,2016postVFP=cards/cards_current/signal_2016postVFP, 2017=cards/cards_current/signal_2017,2018=cards/cards_current/signal_2018 --procs " GG2H,TTH,VBF,WH_WM,WH_WP,ZH " --mergeYears --doSystematics --ext ${ext} _xsec --batch condor --queue espresso ${DROPT}
3440
3541 # for the single fai fits: include one ALT sample at a time
36- for altproc in " VBF_ALTL1" " VBF_ALT0PH" " VBF_ALT0PM"
42+ for altproc in " ALT0L1" " ALT0L1Zg" " ALT0PH" " ALT0M"
43+ # to get the interference correctly need the SM (fa1=0), the pure BSM (fai=1) and the mixed one (fai=0.5)
44+ # temporary approx: only the VBF is BSM
3745 do
38- python RunYields.py --cats " VBFTag_1,VBFTag_3,VBFTag_5,VBFTag_6,VBFTag_7" --inputWSDirMap 2016=cards/cards_current/signal_2016,2017=cards/cards_current/signal_2017,2018=cards/cards_current/signal_2018 --procs " GG2H,TTH,VBF,VH,$altproc " --mergeYears --doSystematics --ext ${ext} _${altproc} --batch condor --queue espresso
46+ vbfsamples=" VBF,VBF_${altproc} ,VBF_${altproc} f05ph0"
47+ # whaltsamples="WH_ALT0L1f05ph0,WH_ALT0PH,WH_ALT0PHf05ph0" # not all are completed
48+ if [[ $altproc == " ALT0M" ]]; then
49+ zhsamples=" ZH" # ZH alternative samples have some missing systematics
50+ else
51+ zhsamples=" ZH,ZH_${altproc} ,ZH_${altproc} f05ph0"
52+ fi
53+ python RunYields.py --cats " VBFTag_1,VBFTag_3,VBFTag_5,VBFTag_6,VBFTag_7" --inputWSDirMap 2016preVFP=cards/cards_current/signal_2016preVFP,2016postVFP=cards/cards_current/signal_2016postVFP,2017=cards/cards_current/signal_2017,2018=cards/cards_current/signal_2018 --procs " GG2H,TTH,WH_WM,WH_WP,$vbfsamples ,$zhsamples " --mergeYears --doSystematics --ext ${ext} _${altproc} --batch condor --queue espresso ${DROPT}
3954 done
4055elif [[ $STEP == " datacards" ]]; then
41- for fit in " xsec" " VBF_ALTL1 " " VBF_ALT0PH " " VBF_ALT0PM "
56+ for fit in " xsec" " ALT0L1 " " ALT0L1Zg " " ALT0PH " " ALT0M "
4257 do
43- python makeDatacard.py --years 2016 ,2017,2018 --ext ${ext} _${fit} --prune --doSystematics --output " Datacard_${fit} "
58+ python makeDatacard.py --years 2016preVFP,2016postVFP ,2017,2018 --ext ${ext} _${fit} --prune --doSystematics --output " Datacard_${fit} "
4459 done
4560elif [[ $STEP == " links" ]]; then
4661 cd Models
4762 rm signal background
4863 echo " linking Models/signal to ../../Signal/outdir_packaged"
4964 ln -s ../../Signal/outdir_packaged signal
50- echo " linking Models/background to ../../Background/outdir_2022-08-01 "
51- ln -s ../../Background/outdir_2022-08-01 background
65+ echo " linking Models/background to ../../Background/outdir_2022-11-21 "
66+ ln -s ../../Background/outdir_2022-11-21 background
5267 cd -
5368else
5469 echo " Step $STEP is not one among yields,datacard,links. Exiting."
0 commit comments