Skip to content

Commit 145c793

Browse files
committed
added in Random triggers from 2016 and enhanced the searching
1 parent 0775804 commit 145c793

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

MCwrapper/MakeMC.csh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,19 @@ set bkgloc_pre=`echo $BKGFOLDSTR | cut -c 1-4`
366366
if ( "$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

MCwrapper/MakeMC.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,21 @@ bkgloc_pre=`echo $BKGFOLDSTR | cut -c 1-4`
365365
if [[ "$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

MCwrapper/gluex_MC.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)