Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-18 22:51:00

0001 #!/bin/tcsh
0002 
0003 cmsenv
0004 rehash
0005 
0006 echo
0007 date +%F\ %a\ %T
0008 echo Starting $0 $1 $2
0009 
0010 if ( $2 == "" ) then
0011   set tables = ( GRun )
0012 else if ( $2 == ALL ) then
0013   set tables = ( GRun HIon PIon PRef 2022v14 Fake Fake1 Fake2 )
0014 else if ( $2 == IB ) then
0015   set tables = ( GRun HIon PIon PRef )
0016 else if ( $2 == DEV ) then
0017   set tables = ( GRun HIon PIon PRef )
0018 else if ( $2 == FULL ) then
0019   set tables = ( FULL )
0020 else if ( $2 == FAKE ) then
0021   set tables = ( Fake Fake1 Fake2 )
0022 else if ( $2 == FROZEN ) then
0023   set tables = ( 2022v14 )
0024 else
0025   set tables = ( $2 )
0026 endif
0027 
0028 foreach gtag ( $1 )
0029 
0030   if ( $gtag == DATA ) then
0031     set flags  = ""
0032     set infix  = hlt
0033   else
0034     set flags  = --mc
0035     set infix  = mc
0036   endif
0037 
0038   foreach table ( $tables )
0039 
0040     echo
0041     set name = HLT_Integration_${table}_${gtag}
0042     touch  ${name}
0043     rm -rf ${name}*
0044 
0045     set config = `grep tableName OnLine_HLT_${table}.py | cut -f2 -d "'"`
0046     if ($table == Fake) then
0047       set basegt = auto:run1_${infix}_${table}
0048     else if ( ($table == Fake1) || ($table == Fake2) || ($table == 2018) ) then
0049       set basegt = auto:run2_${infix}_${table}
0050     else
0051       set basegt = auto:run3_${infix}_${table}
0052     endif
0053     set autogt = "--globaltag=${basegt}"
0054     set infile = file:../RelVal_Raw_${table}_${gtag}.root
0055 
0056 #   -x "--l1-emulator" -x "--l1 L1GtTriggerMenu_L1Menu_Collisions2012_v1_mc" 
0057 
0058     echo "`date +%T` hltIntegrationTests $config -d $name -i $infile -n 100 -j 4 $flags -x ${autogt} -x --type=$table >& $name.log"
0059     time  hltIntegrationTests $config -d $name -i $infile -n 100 -j 4 $flags -x ${autogt} -x --type=$table >& $name.log
0060     set STATUS = $?
0061     echo "`date +%T` exit status: $STATUS"
0062     rm -f  ${name}/*.root
0063 
0064     if ($STATUS != 0) then
0065       touch ${name}/issues.txt
0066       foreach line ("`cat ${name}/issues.txt`")
0067         cp ${name}/${line}.py   ${name}_${line}.py
0068         cp ${name}/${line}.log  ${name}_${line}.log
0069       end
0070     endif
0071 
0072   end
0073 
0074 end
0075 
0076 echo
0077 echo Finish $0 $1 $2
0078 date +%F\ %a\ %T
0079 #