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
5
namespace
delphi_edm4hep::aabtag
{
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.
11
struct
EventStatus
{
12
int
badEventCode
;
13
bool
algorithmInvoked
;
14
bool
valid
;
15
};
16
17
constexpr
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
delphi_edm4hep::aabtag
Definition
AabtagCommons.h:29
delphi_edm4hep::aabtag::eventStatus
constexpr EventStatus eventStatus(int beamSpotErrorCode, int rawBadEventCode)
Definition
AabtagStatus.h:17
delphi_edm4hep::aabtag::EventStatus
Definition
AabtagStatus.h:11
delphi_edm4hep::aabtag::EventStatus::valid
bool valid
Definition
AabtagStatus.h:14
delphi_edm4hep::aabtag::EventStatus::badEventCode
int badEventCode
Definition
AabtagStatus.h:12
delphi_edm4hep::aabtag::EventStatus::algorithmInvoked
bool algorithmInvoked
Definition
AabtagStatus.h:13
delphi_edm4hep
include
delphi_edm4hep
internal
AabtagStatus.h
Generated by
1.15.0