delphi-edm4hep
DELPHI SDST/FDST -> EDM4hep converter
Loading...
Searching...
No Matches
AabtagStatus.h
Go to the documentation of this file.
1// AabtagStatus.h -- pure current-event validity contract for AABTAG output.
2
3#pragma once
4
6
7// PSFBTG calls AABTGS only when IERRBS == 0. If it skips the call, the
8// AAFLAG/IBAD common retains a snapshot from an earlier event and therefore
9// cannot by itself establish validity for the current event. Keep that raw
10// value for diagnostics, but carry invocation and combined validity separately.
16
17constexpr EventStatus eventStatus(int beamSpotErrorCode, int rawBadEventCode) {
18 const bool invoked = beamSpotErrorCode == 0;
19 return {rawBadEventCode, invoked, invoked && rawBadEventCode == 0};
20}
21
22} // namespace delphi_edm4hep::aabtag
constexpr EventStatus eventStatus(int beamSpotErrorCode, int rawBadEventCode)