Fork me on GitHub

Changeset ebf057e in git for examples/validation.sh


Ignore:
Timestamp:
Aug 26, 2016, 2:17:11 PM (8 years ago)
Author:
Alexandre Mertens <alexandre.mertens@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
058006a
Parents:
1160e4f (diff), 7da1826 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'dev_01' of https://github.com/delphes/delphes into ValidationWorkWithPavel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/validation.sh

    r1160e4f rebf057e  
    1 #!/bin/bash
     1#! /bin/sh
    22function runParticleGun {
    3     in=$1
    4     ID=$2
    5     outcmnd="examples/Pythia8/configParticleGun$in.cmnd"
    6     sed 's/ID/'$ID'/g' examples/Pythia8/configParticleGun.cmnd > $outcmnd
    7     ./DelphesPythia8 cards/delphes_card_CMS.tcl $outcmnd delphes_ParticleGun$in.root
     3  name=$1
     4  pid=$2
     5  cmnd="examples/Pythia8/configParticleGun_$name.cmnd"
     6  sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > $cmnd
     7  ./DelphesPythia8 cards/delphes_card_CMS.tcl $cmnd delphes_ParticleGun_$name.root
    88}
    9 runParticleGun el 11
    10 runParticleGun mu 13
    11 runParticleGun ph 22
    12 runParticleGun b 5
     9
     10runParticleGun electron 11
     11runParticleGun muon 13
     12runParticleGun photon 22
    1313runParticleGun jet 1
    14 runParticleGun tau 15
     14runParticleGun bjet 5
     15runParticleGun taujet 15
    1516
    16 ./Validation delphes_ParticleGunel.root delphes_ParticleGunmu.root delphes_ParticleGunph.root delphes_ParticleGunjet.root delphes_ParticleGunb.root delphes_ParticleGuntau.root validation.root
    17 
     17./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 delphes_validation.root
Note: See TracChangeset for help on using the changeset viewer.