File indexing completed on 2024-07-26 17:54:12
0001
0002
0003 eval `scram runtime -csh`
0004
0005 set rawLHC = L1RePack
0006 set rawSIM = DigiL1Raw
0007
0008 echo
0009 date +%F\ %a\ %T
0010 echo Starting $0 $1 $2
0011
0012 if ( $2 == "" ) then
0013 set tables = ( GRun )
0014 else if ( ($2 == all) || ($2 == ALL) ) then
0015 set tables = ( GRun HIon PIon PRef 2024v14 Fake Fake1 Fake2 Special)
0016 else if ( ($2 == ib) || ($2 == IB) ) then
0017 set tables = ( GRun HIon PIon PRef Special)
0018 else if ( ($2 == dev) || ($2 == DEV) ) then
0019 set tables = ( GRun HIon PIon PRef Special)
0020 else if ( ($2 == full) || ($2 == FULL) ) then
0021 set tables = ( FULL )
0022 else if ( ($2 == fake) || ($2 == FAKE) ) then
0023 set tables = ( Fake Fake1 Fake2 )
0024 else if ( ($2 == frozen) || ($2 == FROZEN) ) then
0025 set tables = ( 2024v14 )
0026 else
0027 set tables = ( $2 )
0028 endif
0029
0030 foreach gtag ( $1 )
0031
0032 foreach table ( $tables )
0033
0034 if ($gtag == DATA) then
0035 set realData = True
0036 set base = RelVal_${rawLHC}
0037 else
0038 set realData = False
0039 set base = RelVal_${rawSIM}
0040 endif
0041
0042
0043
0044 set base = ( $base OnLine_HLT RelVal_HLT RelVal_HLT2 )
0045
0046 foreach task ( $base )
0047
0048 echo
0049 set name = ${task}_${table}_${gtag}
0050 rm -f $name.{log,root}
0051
0052 if ( $task == OnLine_HLT ) then
0053 set short = ${task}_${table}
0054 echo "`date +%T` cmsRun $short.py realData=${realData} globalTag="@" inputFiles="@" >& $name.log"
0055
0056 time cmsRun $short.py realData=${realData} globalTag="@" inputFiles="@" >& $name.log
0057 echo "`date +%T` exit status: $?"
0058 else
0059 echo "`date +%T` cmsRun $name.py >& $name.log"
0060
0061 time cmsRun $name.py >& $name.log
0062 echo "`date +%T` exit status: $?"
0063 endif
0064
0065 if ( ( $task == RelVal_${rawLHC} ) || ( $task == RelVal_${rawSIM} ) ) then
0066
0067 rm -f RelVal_Raw_${table}_${gtag}.root
0068 ln -s ${name}.root RelVal_Raw_${table}_${gtag}.root
0069 endif
0070
0071 end
0072
0073 end
0074
0075 end
0076
0077
0078
0079 foreach gtag ( $1 )
0080
0081 foreach table ( $tables )
0082
0083 if ($gtag == DATA) then
0084 set base = ( RelVal_HLT_Reco RelVal_RECO )
0085 else
0086 set base = ( RelVal_HLT_Reco RelVal_DigiL1RawHLT RelVal_RECO )
0087 endif
0088
0089 foreach task ( $base )
0090
0091 echo
0092 set name = ${task}_${table}_${gtag}
0093 rm -f $name.{log,root}
0094 echo "`date +%T` cmsRun $name.py >& $name.log"
0095
0096 time cmsRun $name.py >& $name.log
0097 echo "`date +%T` exit status: $?"
0098
0099 end
0100
0101 end
0102
0103 end
0104
0105
0106
0107 if ( ($2 != all) && ($2 != ib) && ($2 != dev) && ($2 != full) && ($2 != fake) && ($2 != frozen) ) then
0108 ./runIntegration.csh $1 $2
0109 endif
0110
0111 echo
0112 echo Finished $0 $1 $2
0113 date +%F\ %a\ %T
0114