Fork me on GitHub

Changeset db8be5f in git for examples


Ignore:
Timestamp:
Sep 6, 2016, 12:38:23 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8ab29e1
Parents:
e9971a7
Message:

associate to particlegun rootfiles name of the card

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/validation.sh

    re9971a7 rdb8be5f  
    3535validationCard=cards/validation_$card
    3636output=validation_${card%.*}.root
     37cardlabel=${card%.*}
    3738
    3839sed 's/delphes_card_CMS.tcl/'$card'/g' cards/validation_card.tcl  > $validationCard
     
    4243  pid=$2
    4344  cmnd="examples/Pythia8/configParticleGun_$name.cmnd"
     45  rootfile="particleGun_${name}_${cardlabel}.root"
    4446  sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > examples/Pythia8/tmp.cmnd
    4547  sed '/Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= '$nEvents'/' examples/Pythia8/tmp.cmnd  > $cmnd
    46   ./DelphesPythia8 $validationCard $cmnd delphes_ParticleGun_$name.root
     48  ./DelphesPythia8 $validationCard $cmnd $rootfile
     49 
    4750}
    4851
     
    5457runParticleGun taujet 15
    5558
    56 ./Validation delphes_ParticleGun_electron.root delphes_ParticleGun_muon.root delphes_ParticleGun_photon.root delphes_ParticleGun_jet.root delphes_ParticleGun_bjet.root delphes_ParticleGun_taujet.root $output
     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
Note: See TracChangeset for help on using the changeset viewer.