#! /bin/sh

if [ $# -ne 2 ]
then
  echo " Usage: Analysis.sh input_file output_file."
  echo " input_file - file in ROOT format,"
  echo " output_file - file in ROOT format."
  exit 1
fi

root -l -b <<- EOF
  gSystem->Load("libPhysics");
  gSystem->Load("libEG");
  gSystem->Load("../lib/libExRootAnalysis.so");
  .include ..
  .X Analysis.C+("$1", "$2");
  .q
EOF

