26 std::string responseFile =
"$(O2_ROOT)/share/Detectors/ITSMFT/data/AlpideResponseData/AlpideResponseData.root";
27 auto file = TFile::Open(responseFile.data());
30 float vCol = 1.e-4, vRow = 1.e-4, vDepth = 10.e-4;
31 LOG(info) <<
"Checking response from vRow:" << vCol <<
" vCol:" << vCol
32 <<
" Depth:" << vDepth;
33 bool flipCol, flipRow;
36 respMat->print(flipRow, flipCol);
38 int pixCen = respMat->getNPix() / 2;
39 LOG(info) <<
"Response at central pixel " << pixCen <<
":" << pixCen
40 <<
" is " << respMat->getValue(pixCen, pixCen, flipRow, flipCol);
41 BOOST_CHECK(respMat->getValue(pixCen, pixCen, flipRow, flipCol) > 1e-6);
45 for (
int ir = respMat->getNPix();
ir--;) {
46 for (
int ic = respMat->getNPix(); ic--;) {
47 norm += respMat->getValue(
ir, ic, flipRow, flipCol);
50 LOG(info) <<
"Total response to 1 electron: " << norm;