Fork me on GitHub

Changeset e9971a7 in git for examples/validation.sh


Ignore:
Timestamp:
Sep 6, 2016, 11:55:09 AM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
db8be5f
Parents:
fa068d3
Message:

put full path for card parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/validation.sh

    rfa068d3 re9971a7  
    1313#  e.g.
    1414#
    15 # ./examples/validation.sh delphes_card_CMS.tcl 100000
     15# ./examples/validation.sh cards/delphes_card_CMS.tcl 100000
    1616#
    1717# Note that the more events you specify, the more accurate the controls plots will be ...
     
    2727then
    2828  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"
    3030  exit $E_BADARGS
    3131fi
    3232
    33 card=$1
     33card=$(basename $1)
    3434nEvents=$2
    3535validationCard=cards/validation_$card
     
    4242  pid=$2
    4343  cmnd="examples/Pythia8/configParticleGun_$name.cmnd"
    44   sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > $cmnd
    45   sed '/Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= '$nEvents'/' examples/Pythia8/configParticleGun.cmnd  > $cmnd
     44  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
    4646  ./DelphesPythia8 $validationCard $cmnd delphes_ParticleGun_$name.root
    4747}
Note: See TracChangeset for help on using the changeset viewer.