update comment on api, move updaterxratecorrection to the right setexptime

This commit is contained in:
maliakal_d 2020-08-14 11:22:41 +02:00
parent f0d0e9ab1f
commit 28ffad223d
2 changed files with 3 additions and 1 deletions

View File

@ -173,6 +173,8 @@ class Detector {
void setNumberOfTriggers(int64_t value);
/** [Gotthard][Jungfrau][Eiger][CTB][Moench][Gotthard2] For Mythen3, use
* function with gate index **/
Result<ns> getExptime(Positions pos = {}) const;
void setExptime(ns t, Positions pos = {});

View File

@ -241,6 +241,7 @@ Result<ns> Detector::getExptime(Positions pos) const {
void Detector::setExptime(ns t, Positions pos) {
pimpl->Parallel(&Module::setExptime, pos, -1, t.count());
updateRxRateCorrections();
}
Result<ns> Detector::getPeriod(Positions pos) const {
@ -1432,7 +1433,6 @@ Result<ns> Detector::getExptime(int gateIndex, Positions pos) const {
void Detector::setExptime(int gateIndex, ns t, Positions pos) {
pimpl->Parallel(&Module::setExptime, pos, gateIndex, t.count());
updateRxRateCorrections();
}
Result<std::array<ns, 3>> Detector::getExptimeForAllGates(Positions pos) const {