Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-02 05:09:29

0001 #!/bin/bash
0002 
0003 ############################################################################################################
0004 ### GEN-SIM-RAW-DIGI
0005 
0006 release=$1 
0007 conditions=$2
0008 era=$3
0009 beamspot=$4
0010 
0011 echo '> Running GEN,SIM + DIGI,L1,DIGI2RAW steps in ' $release
0012 
0013 cmsDriver.py TTbar_14TeV_TuneCP5_cfi --python_filename gen_sim.py \
0014 --eventcontent RAWSIM --customise Configuration/DataProcessing/Utils.addMonitoring \
0015 --datatier GEN-SIM --fileout file:step1.root --conditions $conditions --beamspot $beamspot \
0016 --step GEN,SIM --geometry DB:Extended --era $era --mc -n 10 --no_exec
0017 
0018 if [ $? -ne 0 ]; then
0019     echo " !!!! Error in building the config for GEN-SIM with cmsDriver !!!!! "
0020     exit 1;
0021 fi
0022 
0023 cmsRun gen_sim.py
0024 
0025 if [ $? -ne 0 ]; then
0026     echo " !!!! Error in running the config for GEN-SIM !!!!! "
0027     exit 1;
0028 fi
0029 
0030 cmsDriver.py  --python_filename raw_digi.py --eventcontent RAWSIM \
0031 --customise Configuration/DataProcessing/Utils.addMonitoring \
0032 --datatier GEN-SIM-RAW --filein file:step1.root \
0033 --fileout file:step2.root --conditions $conditions --step DIGI,L1,DIGI2RAW \
0034 --geometry DB:Extended --era $era --mc -n -1 --no_exec
0035 
0036 if [ $? -ne 0 ]; then
0037     echo " !!!! Error in building the config for RAW-DIGI with cmsDriver !!!!! "
0038     exit 1;
0039 fi
0040 
0041 cmsRun raw_digi.py
0042 
0043 if [ $? -ne 0 ]; then
0044     echo " !!!! Error in running the config for RAW-DIGI !!!!! "
0045     exit 1;
0046 fi
0047 ############################################################################################################