Changeset e9971a7 in git
- Timestamp:
- Sep 6, 2016, 11:55:09 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- db8be5f
- Parents:
- fa068d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/validation.sh
rfa068d3 re9971a7 13 13 # e.g. 14 14 # 15 # ./examples/validation.sh delphes_card_CMS.tcl 10000015 # ./examples/validation.sh cards/delphes_card_CMS.tcl 100000 16 16 # 17 17 # Note that the more events you specify, the more accurate the controls plots will be ... … … 27 27 then 28 28 echo "Usage: ./examples/validation.sh [detector_card] [number_of_events]" 29 echo "for instance: ./examples/validation.sh delphes_card_CMS.tcl 10000"29 echo "for instance: ./examples/validation.sh cards/delphes_card_CMS.tcl 10000" 30 30 exit $E_BADARGS 31 31 fi 32 32 33 card=$ 133 card=$(basename $1) 34 34 nEvents=$2 35 35 validationCard=cards/validation_$card … … 42 42 pid=$2 43 43 cmnd="examples/Pythia8/configParticleGun_$name.cmnd" 44 sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > $cmnd45 sed '/Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= '$nEvents'/' examples/Pythia8/ configParticleGun.cmnd > $cmnd44 sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > examples/Pythia8/tmp.cmnd 45 sed '/Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= '$nEvents'/' examples/Pythia8/tmp.cmnd > $cmnd 46 46 ./DelphesPythia8 $validationCard $cmnd delphes_ParticleGun_$name.root 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.