File indexing completed on 2024-04-06 12:19:27
0001
0002
0003
0004
0005
0006
0007 NR_ARG=1
0008
0009 if [[ $1 == "-help" || $1 == "--help" || $
0010 echo
0011 echo "Run the L1 GT emulator starting from a RAW file, with input from unpacked GCT and GMT products"
0012
0013 echo
0014 echo "Usage: "
0015 echo " cmsrel CMSSW_4_X_Y"
0016 echo " cd CMSSW_4_X_Y/src"
0017 echo " cmsenv"
0018 echo " addpkg L1Trigger/Configuration"
0019 echo " cd L1Trigger/Configuration/test"
0020 echo " ./L1GtEmulatorFromRaw.sh EventSampleType Global_Tag"
0021 echo
0022
0023 echo "Event sample type follow the cmsDriver convention: "
0024 echo " data"
0025 echo " mc"
0026 echo
0027
0028 echo "Global tag must be given in one of the following formats: "
0029 echo " auto:mc"
0030 echo " auto:startup"
0031 echo " auto:com10"
0032 echo " MC_42_V13"
0033 echo " START42_V13"
0034 echo " GR_R_42_V18"
0035 echo
0036 echo "Default:"
0037 echo " data: auto:com10"
0038 echo " mc: auto:mc"
0039 echo
0040
0041
0042 if [[ $
0043 echo -e "\n $# arguments available, while ${NR_ARG} are required. \n Check command again."
0044 fi
0045
0046 exit 1
0047 fi
0048
0049 EventSampleType=$1
0050 GlobalTag=$2
0051
0052
0053
0054 if [[ ${EventSampleType} == "data" ]]; then
0055
0056 if [[ ${GlobalTag} == '' ]]; then
0057 GlobalTag='auto:com10'
0058 echo "No global tag given. Using by default: ${GlobalTag}"
0059 fi
0060
0061 if [[ `echo ${GlobalTag} | grep auto` ]]; then
0062 gTag=${GlobalTag}
0063 else
0064 gTag=FrontierConditions_GlobalTag,${GlobalTag}::All
0065 fi
0066
0067 cmsDriver.py l1GtEmulatorFromRaw -s RAW2DIGI,L1 -n 100 \
0068 --conditions ${gTag} \
0069 --datatier 'DIGI-RECO' \
0070 --eventcontent FEVTDEBUGHLT \
0071 --data \
0072 --filein /store/data/Run2011A/MinimumBias/RAW/v1/000/165/514/28C65E11-E584-E011-AED9-0030487CD700.root,/store/data/Run2011A/MinimumBias/RAW/v1/000/165/514/44C0FC26-EE84-E011-B657-003048F1C424.root \
0073 --customise=L1Trigger/Configuration/customise_l1GtEmulatorFromRaw \
0074 --processName='L1EmulRaw' \
0075 --no_exec
0076
0077 exit 0
0078
0079 elif [[ ${EventSampleType} == "mc" ]]; then
0080
0081 if [[ ${GlobalTag} == '' ]]; then
0082 GlobalTag='auto:mc'
0083 echo "No global tag given. Using by default: ${GlobalTag}"
0084 fi
0085
0086 if [[ `echo ${GlobalTag} | grep auto` ]]; then
0087 gTag=${GlobalTag}
0088 else
0089 gTag=FrontierConditions_GlobalTag,${GlobalTag}::All
0090 fi
0091
0092
0093 cmsDriver.py l1GtEmulatorFromRaw -s RAW2DIGI,L1 -n 100 \
0094 --conditions ${gTag} \
0095 --datatier 'DIGI-RECO' \
0096 --eventcontent FEVTDEBUGHLT \
0097 --filein /store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START42_V12-v2/0068/BC61B16D-647C-E011-9972-0030486791BA.root,/store/relval/CMSSW_4_2_3/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START42_V12-v2/0063/FE440F3F-847B-E011-8E8F-0018F3D096CA.root \
0098 --customise=L1Trigger/Configuration/customise_l1GtEmulatorFromRaw \
0099 --processName='L1EmulRaw' \
0100 --no_exec
0101
0102 exit 0
0103
0104 else
0105 echo "Option for sample type ${EventSampleType} not valid."
0106 echo "Valid options:"
0107 echo " data"
0108 echo " mc"
0109
0110 exit 1
0111
0112 fi
0113
0114
0115
0116