Q3D-Calibration/main.cpp

32 lines
597 B
C++
Raw Normal View History

#include "BindHandler.h"
#include "CsvReader.h"
#include "FileHandler.h"
#include "utils.h"
#include <iostream>
using namespace std;
2022-07-04 23:52:05 +08:00
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));
2022-07-06 23:42:52 +08:00
FH[i - 1].readData();
}
2022-07-04 23:52:05 +08:00
return 0;
}