#include <iostream>
#include <fstream>
#include <cstring>
#include <sys/stat.h>
int main(int argc, char* argv[])
{
if(argc < 3 || strcmp(argv[1], "--help") == 0)
{
std::cout << "\nInvalid Parameters:" << std::endl;
std::cout << "Syntax: ./Filter <path to raw-data folder> <path to processed data>\n" << std::endl;
exit(-10);
}
const std::string RawDataPath = std::string(argv[1]);
const std::string ProcessedDataPath = std::string(argv[2]);
mkdir(ProcessedDataPath.c_str(), ACCESSPERMS);
std::ofstream fout(ProcessedDataPath + "/datasets.yaml");
const bool pdferr = true;
fout << "E605:\n";
fout << "E288:\n";
fout << "STAR:\n";
fout << "CDF:\n";
fout << "D0:\n";
fout << "LHCb:\n";
fout << "CMS:\n";
fout << "ATLAS:\n";
fout << "HERMES:\n";
fout << "COMPASS:\n";
fout << "E537:\n";
fout << "E615:\n";
fout.close();
return 0;
}
std::string PreprocessLHCb7TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the LHCb dataset at 7 TeV.
std::string PreprocessD0RunII(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the D0 RunII dataset.
std::string PreprocessLHCb8TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the LHCb dataset at 8 TeV.
std::string PreprocessATLAS7TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the ATLAS dataset at 7 TeV.
std::string PreprocessE537(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E537 data.
std::string PreprocessCMS7TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the CMS dataset at 7 TeV.
std::string PreprocessD0RunIImu(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the D0 RunII dataset for muons.
std::string PreprocessLHCb13TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the LHCb dataset at 13 TeV.
std::string PreprocessE615(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E615 data.
std::string PreprocessCDFRunII(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the CDF RunII dataset.
std::string PreprocessCDFRunI(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the CDF RunI dataset.
std::string PreprocessD0RunI(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the D0 RunI dataset.
std::string PreprocessCMS8TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the CMS dataset at 8 TeV.
std::string PreprocessE537_xF(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E537 data.
std::string PreprocessE288(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E288 datasets.
std::string PreprocessCOMPASS(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the COMPASS multiplicities.
std::string PreprocessATLAS8TeV(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the ATLAS dataset at 8 TeV.
std::string PreprocessE605(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E605 datasets.
std::string PreprocessSTAR510(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the STAR dataset at 510 GeV.
std::string PreprocessHERMES(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the HERMES multiplicities.
std::string PreprocessE615_xF(std::string const &RawDataPath, std::string const &ProcessedDataPath, bool const &PDFError=true)
Preprocessing of the E615 data.