15 if (!
ifile.is_open()) {
16 throw std::runtime_error(
"Unable to open file: " +
filename);
19 while (!
ifile.eof()) {
25 ifile.read(reinterpret_cast<char*>(&drdz),
sizeof(drdz));
26 ifile.read(reinterpret_cast<char*>(&dxdy),
sizeof(dxdy));
34 throw std::runtime_error(
"Failed to read Tilted Geometry binary data.");
42 return res == drdzs_.end() ? 0.f :
res->second;
47 return res == dxdys_.end() ? 0.f :
res->second;
void load(std::string const &)
float getDrDz(unsigned int detid) const
float getDxDy(unsigned int detid) const