File tree Expand file tree Collapse file tree 3 files changed +22
-9
lines changed
Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -366,13 +366,19 @@ set bkgloc_pre=`echo $BKGFOLDSTR | cut -c 1-4`
366366if ( " $BKGFOLDSTR " == " DEFAULT" || " $bkgloc_pre " == " loc:" || " $BKGFOLDSTR " == " Random" ) then
367367 # find file and run:1
368368 echo " Finding the right file to fold in during MCsmear step"
369- set runperiod=" RunPeriod-2017 -01"
369+ set runperiod=" RunPeriod-2018 -01"
370370
371- if ( $RUN_NUMBER > 40000 ) then
371+ if ( $RUN_NUMBER > = 40000 ) then
372372 set runperiod=" RunPeriod-2018-01"
373+ else if ( $RUN_NUMBER > = 30000 ) then
374+ set runperiod=" RunPeriod-2017-01"
375+ else if ( $RUN_NUMBER > = 20000 ) then
376+ set runperiod=" RunPeriod-2016-10"
377+ else if ( $RUN_NUMBER > = 10000 ) then
378+ set runperiod=" RunPeriod-2016-02"
373379 endif
374380
375- if ( $RUN_NUMBER < 30000 ) then
381+ if ( $RUN_NUMBER < 10000 ) then
376382 echo " Warning: random triggers do not exist for this run"
377383 exit
378384 endif
Original file line number Diff line number Diff line change @@ -365,14 +365,21 @@ bkgloc_pre=`echo $BKGFOLDSTR | cut -c 1-4`
365365if [[ " $BKGFOLDSTR " == " DEFAULT" || " $bkgloc_pre " == " loc:" || " $BKGFOLDSTR " == " Random" ]]; then
366366 # find file and run:1
367367 echo " Finding the right file to fold in during MCsmear step"
368- runperiod=" RunPeriod-2017-01"
369-
370- if [[ $RUN_NUMBER > 40000 ]]; then
371- set runperiod=" RunPeriod-2018-01"
368+
369+ runperiod=" RunPeriod-2017-01"
370+
371+ if [[ $RUN_NUMBER >= 40000 ]]; then
372+ runperiod=" RunPeriod-2018-01"
373+ elif [[ $RUN_NUMBER >= 30000 ]]; then
374+ runperiod=" RunPeriod-2017-01"
375+ elif [[ $RUN_NUMBER >= 20000 ]]; then
376+ runperiod=" RunPeriod-2016-10"
377+ elif [[ $RUN_NUMBER >= 10000 ]]; then
378+ runperiod=" RunPeriod-2016-02"
372379 fi
373380
374381 if [[ $RUN_NUMBER < 30000 ]]; then
375- echo " Warning: random triggers do not exist for this run"
382+ echo " Warning: random triggers do not exist for this run number "
376383 exit
377384 fi
378385
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def main(argv):
196196
197197 print "*********************************"
198198 print "Welcome to v1.11 of the MCwrapper"
199- print "Thomas Britton 12/4 /17"
199+ print "Thomas Britton 12/5 /17"
200200 print "*********************************"
201201
202202 #load all argument passed in and set default options
You can’t perform that action at this time.
0 commit comments