#include "CsvReader.h" #include "FileHandler.h" #include using namespace std; int main() { int n; string run; FileHandler *FH; CsvReader cR("config2.csv"); cR.readData(); n = cR.rows(); FH = new FileHandler[n - 1]; for (int i = 1; i < n; i++) { if (DEBUG) run = "1250"; else run = cR(i, 0); FH[i - 1] = FileHandler("2016Q3D/root/raw/201609Q3D" + run + ".root", 5); FH[i - 1].pX = stoi(cR(i, 5)); FH[i - 1].solve(); if (!DEBUG) FH[i - 1].save("result/adc/201609Q3D" + run + ".csv"); if (DEBUG) break; } return 0; }