2022-07-05 19:02:59 +08:00
|
|
|
#include "CsvReader.h"
|
|
|
|
#include "FileHandler.h"
|
2022-07-05 01:35:54 +08:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
using namespace std;
|
2022-07-04 23:52:05 +08:00
|
|
|
|
|
|
|
int main() {
|
2022-07-05 19:02:59 +08:00
|
|
|
int n;
|
|
|
|
string run;
|
|
|
|
FileHandler *FH;
|
|
|
|
CsvReader cR("config2.csv");
|
2022-07-05 16:55:06 +08:00
|
|
|
|
|
|
|
cR.readData();
|
2022-07-05 19:02:59 +08:00
|
|
|
n = cR.rows();
|
|
|
|
FH = new FileHandler[n - 1];
|
|
|
|
|
|
|
|
for (int i = 1; i < n; i++) {
|
2022-07-06 23:33:12 +08:00
|
|
|
if (DEBUG)
|
|
|
|
run = "1250";
|
|
|
|
else
|
|
|
|
run = cR(i, 0);
|
|
|
|
FH[i - 1] = FileHandler("2016Q3D/root/raw/201609Q3D" + run + ".root", 5);
|
2022-07-05 19:02:59 +08:00
|
|
|
FH[i - 1].pX = stoi(cR(i, 5));
|
2022-07-06 23:42:52 +08:00
|
|
|
FH[i - 1].readData();
|
2022-07-05 19:02:59 +08:00
|
|
|
}
|
|
|
|
|
2022-07-04 23:52:05 +08:00
|
|
|
return 0;
|
|
|
|
}
|