[Rivet] Rivet 1.2.0 validation and release plan

David Grellscheid david.grellscheid at durham.ac.uk
Tue Jan 5 09:49:41 GMT 2010


> ---
> #! /usr/bin/env bash
> ## In CDF_1990_S123456-Pythia6.sh
> NEVT=10000
> if [[ "$1" ]]; then
>    let NEVT="$NEVT*$1"
> fi
> agile-runmc Pythia:6421 -p MSEL=2 -n $NEVT -o hepmc.fifo
> ---

Hi Andy,

If rather than a scaling factor, you can supply the desired number of events on the command line, why not simply use

#! /usr/bin/env bash
## In CDF_1990_S123456-Pythia6.sh
agile-runmc Pythia:6421 -p MSEL=2 -n ${1:-10000} -o hepmc.fifo

This will use $1 if it exists, otherwise will use 10000 as the default value.




More information about the Rivet mailing list