Fork me on GitHub

Changeset eb3be06 in git for examples/validation.sh


Ignore:
Timestamp:
Apr 12, 2017, 5:20:15 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
c4e18da
Parents:
2871513
Message:

updated range, and added runJetGun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/validation.sh

    r2871513 reb3be06  
     1#!/bin/sh
    12##############################################################################################
    23#
     
    2021############################################################################################
    2122
    22 #! /bin/sh
    23 
    2423EXPECTED_ARGS=2
    2524E_BADARGS=65
     
    4241version=$(cat VERSION)
    4342outpdf=$mainoutputdir/${output%.*}.pdf
     43qcdPgLocation="/home/fynu/mselvaggi/storage/DelphesValidationSamples"
    4444
    4545mkdir -p $outputroot
     
    4747
    4848sed 's/delphes_card_CMS.tcl/'$cardbase'/g' cards/validation_card.tcl  > $validationCard
     49sed -i "1i set MaxEvents ${nEvents}" "$validationCard"
    4950
    5051function runParticleGun {
     
    5960}
    6061
    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
     63function 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
     73runParticleGun pion 211
     74runParticleGun electron 11
     75runParticleGun muon 13
     76runParticleGun photon 22
     77runParticleGun neutron 2112
     78runParticleGun taujet 15
     79runJetsGun jet 1 &
     80runJetsGun bjet 5 &
     81runJetsGun cjet 4 &
     82
     83wait
     84echo all particle guns complete ...
     85
    7086
    7187./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.