Changeset eb3be06 in git for examples/validation.sh
- Timestamp:
- Apr 12, 2017, 5:20:15 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- c4e18da
- Parents:
- 2871513
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/validation.sh
r2871513 reb3be06 1 #!/bin/sh 1 2 ############################################################################################## 2 3 # … … 20 21 ############################################################################################ 21 22 22 #! /bin/sh23 24 23 EXPECTED_ARGS=2 25 24 E_BADARGS=65 … … 42 41 version=$(cat VERSION) 43 42 outpdf=$mainoutputdir/${output%.*}.pdf 43 qcdPgLocation="/home/fynu/mselvaggi/storage/DelphesValidationSamples" 44 44 45 45 mkdir -p $outputroot … … 47 47 48 48 sed 's/delphes_card_CMS.tcl/'$cardbase'/g' cards/validation_card.tcl > $validationCard 49 sed -i "1i set MaxEvents ${nEvents}" "$validationCard" 49 50 50 51 function runParticleGun { … … 59 60 } 60 61 61 runParticleGun pion 211 62 runParticleGun electron 11 63 runParticleGun muon 13 64 runParticleGun photon 22 65 runParticleGun neutron 2112 66 runParticleGun jet 1 67 runParticleGun bjet 5 68 runParticleGun cjet 4 69 runParticleGun taujet 15 62 63 function runJetsGun { 64 name=$1 65 pid=$2 66 inputroot="${qcdPgLocation}/${pid}.root" 67 rootfile="particleGun_${name}_${cardlabel}.root" 68 ./DelphesROOT $validationCard $outputroot/$rootfile $inputroot 69 echo "./DelphesROOT $validationCard $outputroot/$rootfile $inputroot" 70 } 71 72 73 runParticleGun pion 211 74 runParticleGun electron 11 75 runParticleGun muon 13 76 runParticleGun photon 22 77 runParticleGun neutron 2112 78 runParticleGun taujet 15 79 runJetsGun jet 1 & 80 runJetsGun bjet 5 & 81 runJetsGun cjet 4 & 82 83 wait 84 echo all particle guns complete ... 85 70 86 71 87 ./Validation $outputroot/particleGun_pion_$cardlabel.root $outputroot/particleGun_electron_$cardlabel.root $outputroot/particleGun_muon_$cardlabel.root $outputroot/particleGun_photon_$cardlabel.root $outputroot/particleGun_neutron_$cardlabel.root $outputroot/particleGun_jet_$cardlabel.root $outputroot/particleGun_bjet_$cardlabel.root $outputroot/particleGun_cjet_$cardlabel.root $outputroot/particleGun_taujet_$cardlabel.root $mainoutputdir/$output $version
Note:
See TracChangeset
for help on using the changeset viewer.