Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:04

0001 #!/bin/sh
0002 #
0003 # V.M. Ghete 2011-02-10
0004 #
0005 
0006 # minimum number of required arguments
0007 NR_ARG=1
0008 
0009 if [[ $1 == "-help" || $1 == "--help" || $# == 0 ]]; then
0010     echo
0011     echo "Run the L1 GT pattern generatot starting from a RAW file"
0012 
0013     echo
0014     echo "Usage:              "
0015     echo "   cmsrel CMSSW_3_X_Y"
0016     echo "   cd CMSSW_3_X_Y/src"
0017     echo "   cmsenv"
0018     echo "   addpkg L1Trigger/Configuration"  
0019     echo "   addpkg L1Trigger/GlobalTriggerAnalyzer"  
0020     echo "   cd L1Trigger/GlobalTriggerAnalyzer/test"  
0021     echo "   ./L1GtPatternGeneratorFromRaw.sh Global_Tag EventSampleType"
0022 
0023     echo "Global tag must be given in one of the following formats: " 
0024     echo "   auto:mc"
0025     echo "   auto:startup"
0026     echo "   auto:com10"
0027     echo "   MC_3XY_V22" 
0028     echo "   START3X_V22" 
0029     echo "   GR10_P_V3" 
0030     echo
0031     echo "Default: auto:com10"
0032     echo
0033     
0034     echo "Event sample type follow the cmsDriver convention: " 
0035     echo "   data"
0036     echo "   mc"
0037     echo "   empty string default to mc"  
0038 
0039     if [[ $# < ${NR_ARG} ]]; then
0040       echo -e "\n $# arguments available, while ${NR_ARG} are required. \n Check command again."
0041     fi
0042 
0043     exit 1    
0044 fi
0045 
0046 GlobalTag=$1
0047 EventSampleType=$2
0048 
0049 # global tag manipulation
0050 if [[ ${GlobalTag} == '' ]]; then
0051     GlobalTag='auto:com10'
0052     echo "No global tag given. Using by default: ${GlobalTag}"
0053 fi
0054 
0055       
0056 if [[ `echo ${GlobalTag} | grep auto` ]]; then
0057     gTag=${GlobalTag}
0058 else
0059     gTag=FrontierConditions_GlobalTag,${GlobalTag}::All
0060 fi
0061 
0062 #
0063 
0064 if [[ ${EventSampleType} == "data" ]]; then
0065     cmsDriver.py l1PatternGeneratorFromRaw -s RAW2DIGI,L1 -n 3564 \
0066         --conditions ${gTag} \
0067         --datatier 'DIGI-RECO' \
0068         --eventcontent FEVTDEBUGHLT \
0069         --data \
0070         --filein '/store/data/Run2010A/MinimumBias/RAW/v1/000/143/657/00FB1636-91AE-DF11-B177-001D09F248F8.root', \
0071                  '/store/data/Run2010A/MinimumBias/RAW/v1/000/143/657/023EB128-51AE-DF11-96D3-001D09F24682.root' \
0072         --customise=L1Trigger/GlobalTriggerAnalyzer/customise_l1GtPatternGeneratorFromRaw \
0073         --processName='L1GtPatternGenerator' \
0074         --no_exec
0075 
0076         exit 0   
0077 else
0078     cmsDriver.py l1PatternGeneratorFromRaw -s RAW2DIGI,L1 -n 3564 \
0079         --conditions ${gTag} \
0080         --datatier 'DIGI-RECO' \
0081         --eventcontent FEVTDEBUGHLT \
0082         --filein '/store/relval/CMSSW_3_11_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START311_V1_highstats-v1/0004/FEC54C30-612B-E011-9836-00261894386E.root',\
0083                  '/store/relval/CMSSW_3_11_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START311_V1_highstats-v1/0004/FC3DBA1B-652B-E011-82F4-00261894392B.root',\
0084                  '/store/relval/CMSSW_3_11_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/START311_V1_highstats-v1/0004/FA15AF21-622B-E011-B577-0018F3D096F8.root' \
0085         --customise=L1Trigger/GlobalTriggerAnalyzer/customise_l1GtPatternGeneratorFromRaw \
0086         --processName='L1GtPatternGenerator' \
0087         --no_exec
0088 
0089         exit 0   
0090 fi
0091 
0092 
0093     
0094