You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CTFWriter skips detector storage if an empty CTF container is passed
In case of direct ctf filtering as
o2-ctf-reader-workflow ... --onlyDet <dets> --allow-missing-detectors | o2-ctf-writer-workflow ... --onlyDet <dets>
the writer would get an empty CTF pointer if the requested detector was missing in the original CTF. With this patch,
the writing of new CTF for such detector will be skipped, provided this detector did not send non-empty data for
previous events.
Otherwise an exception will be thrown to avoid misalignment between different CTF branches.
The same happens if non-empty CTF data is supplied after null data in the previous TF.
throwstd::runtime_error(fmt::format("Non-empty input was seen at {}-th TF after empty one for {}, this will lead misalignment of detectors in CTF", mNCTF, det.getName()));
throwstd::runtime_error(fmt::format("Empty input was seen at {}-th TF after non-empty one for {}, this will lead misalignment of detectors in CTF", mNCTF, det.getName()));
345
+
}
346
+
LOGP(important, "Empty CTF provided for {}, skipping and will not report anymore", det.getName());
0 commit comments