delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
BeamSpotStatus.cpp
Go to the documentation of this file.
1// BeamSpotStatus — implementation of the database check.
2
4
5#include "phdst/phciii.hpp"
6#include "skelana/pscbsp.hpp"
7
8#include <stdexcept>
9#include <string>
10
12
14 namespace sk = skelana;
15 if (sk::IERRBS == kOwnEntry && sk::DXYZBS(1) == 0.f &&
16 sk::DXYZBS(2) == 0.f && sk::DXYZBS(3) == 0.f) {
17 throw std::runtime_error(
18 "beam-spot database was not read: error code 0 with zero widths (run " +
19 std::to_string(phdst::IIIRUN) + ", event " +
20 std::to_string(phdst::IIIEVT) + ')');
21 }
22}
23
24} // namespace delphi_edm4hep::beamspot