#!/usr/bin/env perl use strict; my $cfgfile = $ARGV[0]; my $sqs = $ARGV[1]; my $mode = $ARGV[2]; if (!defined $ARGV[0]) { print "USAGE:\n"; print "create_decfiles.pl [sqrt(s)] [mode]\n\n"; print " : file containing decay infos (default: decays.txt)\n"; print " [sqrt(s)] : modes accessible up to sqrt(s) [optional]\n"; print " [mode] : modes beginning with 'mode' [optional]\n\n"; exit(0); } if (!defined($sqs)) {$sqs=6.;} open(TEMPLATE, "<$cfgfile"); my(@lines) =