Fork me on GitHub

Changeset d108fdc in git


Ignore:
Timestamp:
Apr 24, 2017, 4:11:48 PM (8 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
88c03bc
Parents:
78d1846
Message:

replace echo with sed in validation.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • validation/validation.sh

    r78d1846 rd108fdc  
    5757  cmnd=$cardsdir/configParticleGun_$name.cmnd
    5858  outputroot=particleGun_${name}_${cardlabel}.root
    59   sed "/Main:spareMode1/s/=[[:space:]]*[0-9]*/= $pid/; /Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= $nEvents/" examples/Pythia8/configParticleGun.cmnd > $cmnd
     59  sed "/Main:spareMode1/s|=[[:space:]]*[0-9]*|= $pid|; /Main:numberOfEvents/s|=[[:space:]]*[0-9]*|= $nEvents|" examples/Pythia8/configParticleGun.cmnd > $cmnd
    6060  ./DelphesPythia8 $validationcard $cmnd $outputrootdir/$outputroot
    6161
     
    6666  name=$1
    6767  pid=$2
    68   cmnd=$cardsdir/configLHE_$pid.cmnd
    69   inputroot=$samplesdir/$pid.root
     68  lhe=$samplesdir/events_$name.lhe
     69  cmnd=$cardsdir/configLHE_$name.cmnd
     70  inputroot=$samplesdir/$name.root
    7071  outputroot=particleGun_${name}_${cardlabel}.root
    7172
    7273  if [ ! -f $inputroot ]
    7374  then
    74     python validation/FlatGunLHEventProducer.py --pdg $pid --ptmin 1 --ptmax 50000 --etamin -6 --etamax 6 --size $nEvents --seed 1 --output $samplesdir/events_$pid.lhe --log --ecm 100000
     75    python validation/FlatGunLHEventProducer.py --pdg $pid --ptmin 1 --ptmax 50000 --etamin -6 --etamax 6 --size $nEvents --seed 1 --output $lhe --log --ecm 100000
    7576
    76     cp examples/Pythia8/configLHE.cmnd $cmnd
    77     echo "Beams:LHEF = $samplesdir/events_$pid.lhe" >> $cmnd
    78     echo "Main:numberOfEvents = $nEvents" >> $cmnd
     77    sed "/Beams:LHEF/s|=[[:space:]].*|= $lhe|; /Main:numberOfEvents/s/=[[:space:]]*[0-9]*/= $nEvents/" examples/Pythia8/configLHE.cmnd > $cmnd
    7978
    8079    ./DelphesPythia8 cards/gen_card.tcl $cmnd $inputroot
Note: See TracChangeset for help on using the changeset viewer.