32 lines
597 B
C++
32 lines
597 B
C++
#include "BindHandler.h"
|
|
#include "CsvReader.h"
|
|
#include "FileHandler.h"
|
|
#include "utils.h"
|
|
|
|
#include <iostream>
|
|
|
|
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].readData();
|
|
}
|
|
|
|
return 0;
|
|
}
|