Fork me on GitHub

Changeset 6387aea in git


Ignore:
Timestamp:
Sep 23, 2016, 1:34:39 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
6934875
Parents:
92237ca
Message:

added input card and nevents as parameters in validation script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/validation.sh

    r92237ca r6387aea  
    3535validationCard=cards/validation_$card
    3636output=validation_${card%.*}.root
     37mainoutputdir=report_${card%.*}
     38outputroot=report_${card%.*}/root
    3739cardlabel=${card%.*}
     40
     41mkdir -p $outputroot
     42mkdir -p $mainoutputdir/www/fig
    3843
    3944sed 's/delphes_card_CMS.tcl/'$card'/g' cards/validation_card.tcl  > $validationCard
     
    4651  sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > examples/Pythia8/tmp.cmnd
    4752  sed '/Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= '$nEvents'/' examples/Pythia8/tmp.cmnd  > $cmnd
    48   ./DelphesPythia8 $validationCard $cmnd $rootfile
     53  ./DelphesPythia8 $validationCard $cmnd $outputroot/$rootfile
    4954 
    5055}
    5156
     57runParticleGun pion 211
    5258runParticleGun electron 11
    5359runParticleGun muon 13
    5460runParticleGun photon 22
     61runParticleGun neutron 2112
    5562runParticleGun jet 1
    5663runParticleGun bjet 5
     64runParticleGun cjet 4
    5765runParticleGun taujet 15
    5866
    59 ./Validation particleGun_electron_$cardlabel.root particleGun_muon_$cardlabel.root particleGun_photon_$cardlabel.root particleGun_jet_$cardlabel.root particleGun_bjet_$cardlabel.root particleGun_taujet_$cardlabel.root $output
     67./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
Note: See TracChangeset for help on using the changeset viewer.