/*
 * Main executable:
 * Compute the cross sections and print the results to separate output files.
 *
 */

#include <iostream>
#include "include/write_tables.h"

int main(int argc, char **argv) {

  std::string directory;

  if (argc == 1) {
    directory = '.';
  } else if (argc == 2) {
    directory = argv[1];
  } else {
    std::cout
        << "Too many arguments provided. Expected at most one argument: \n"
           "./phoxtrot PATH_TO_OUTPUT_DIRECTORY"
        << '\n';
    std::exit(0);
  }

  TwoToTwo_writing::write_Total_Xsec_PiRho_PiGamma(directory);
  TwoToTwo_writing::write_Diff_Xsec_PiRho_PiGamma(directory);
  TwoToTwo_writing::write_Total_Xsec_PiPi_RhoGamma(directory);
  TwoToTwo_writing::write_Diff_Xsec_PiPi_RhoGamma(directory);

  Brems_writing::write_Total_Xsec(directory);
  Brems_writing::write_dSigma_dk(directory);
  Brems_writing::write_dSigma_dTheta(directory);
}
