Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:54

0001 #!/bin/bash
0002 set -e
0003 set -x
0004 
0005 #sleep randomly up to 120s to stagger job start times
0006 #sleep $((RANDOM % 120))
0007 
0008 #seed must be greater than 0
0009 SAMPLE=$1
0010 SEED=$2
0011 N=$3
0012 
0013 #examples:
0014 #SAMPLE=TTbar_14TeV_TuneCUETP8M1_cfi
0015 #SEED=1
0016 #N=5
0017 
0018 PILEUP=Run3_Flat55To75_PoissonOOTPU
0019 #PILEUP=NoPileUp
0020 
0021 #in case of locally downloaded minbias files, use the following
0022 #PILEUP_INPUT=filelist:/storage/user/jpata/particleflow/test/pu_files.txt
0023 PILEUP_INPUT=dbs:/MinBias_TuneCP5_13TeV-pythia8/RunIIFall18GS-102X_upgrade2018_realistic_v9-v1/GEN-SIM
0024 #and add this line to cmsDriver for step2
0025 #--pileup_input $PILEUP_INPUT \
0026 
0027 #Generate the MC
0028 cmsDriver.py $SAMPLE \
0029   --conditions auto:phase1_2022_realistic \
0030   -n $N \
0031   --era Run3 \
0032   --eventcontent FEVTDEBUGHLT \
0033   -s GEN,SIM,DIGI,L1,DIGI2RAW,HLT \
0034   --datatier GEN-SIM \
0035   --geometry DB:Extended \
0036   --pileup $PILEUP \
0037   --pileup_input $PILEUP_INPUT \
0038   --no_exec \
0039   --fileout step2_phase1_new.root \
0040   --customise Validation/RecoParticleFlow/customize_pfanalysis.customize_step2 \
0041   --python_filename=step2_phase1_new.py
0042 
0043 #Run the reco sequences
0044 cmsDriver.py step3 \
0045   --conditions auto:phase1_2022_realistic \
0046   --era Run3 \
0047   -n -1 \
0048   --eventcontent FEVTDEBUGHLT \
0049   --runUnscheduled \
0050   -s RAW2DIGI,L1Reco,RECO,RECOSIM \
0051   --datatier GEN-SIM-RECO \
0052   --geometry DB:Extended \
0053   --no_exec \
0054   --filein file:step2_phase1_new.root \
0055   --fileout step3_phase1_new.root \
0056   --customise Validation/RecoParticleFlow/customize_pfanalysis.customize_step3 \
0057   --python_filename=step3_phase1_new.py
0058 
0059 pwd
0060 ls -lrt
0061 
0062 echo "process.RandomNumberGeneratorService.generator.initialSeed = $SEED" >> step2_phase1_new.py
0063 cmsRun step2_phase1_new.py
0064 cmsRun step3_phase1_new.py
0065 cmsRun $CMSSW_BASE/src/Validation/RecoParticleFlow/test/pfanalysis_ntuple.py
0066 
0067 mv pfntuple.root pfntuple_${SEED}.root