37 lines
663 B
C++
37 lines
663 B
C++
#pragma once
|
|
|
|
#ifndef file_handler_h
|
|
#define file_handler_h
|
|
|
|
#include "utils.h"
|
|
|
|
using std::string;
|
|
using std::to_string;
|
|
|
|
class FileHandler {
|
|
public:
|
|
FileHandler() {};
|
|
FileHandler(string, int n_ = 6, int thMin_ = 800, int thMax_ = 4000);
|
|
~FileHandler() {};
|
|
|
|
public:
|
|
int n = 6, m = 8;
|
|
int thMin, thMax, pX;
|
|
string file;
|
|
std::vector<int> adcValue[6][8][2];
|
|
|
|
public:
|
|
void readData();
|
|
};
|
|
|
|
FileHandler::FileHandler(string file_, int n_, int thMin_, int thMax_) {
|
|
file = file_;
|
|
n = n_;
|
|
thMin = thMin_;
|
|
thMax = thMax_;
|
|
}
|
|
|
|
void FileHandler::readData() { readROOTData(file.c_str(), adcValue, n, m, thMin, thMax); }
|
|
|
|
#endif
|