Passing arguments to a macro

Either will work within the script:

root -l “compRates.C+($BINW,$RATE1,$RATE2)”

root -l ‘compRates.C+(’$BINW,$RATE1,$RATE2’)’

also, args on the script’s command line must be separated by blank spaces (not commas)