72 std::string_view source) {
73 if (!name.starts_with(source))
return false;
74 name.remove_prefix(source.size());
75 return name.starts_with(
"_BTG_") || name.starts_with(
"_AABTAG_");
78inline bool isFinite(
float value) {
return std::isfinite(value); }
79inline bool isFinite(
double value) {
return std::isfinite(value); }
82 return isFinite(value) && value > 0.f;
86 return isFinite(value) && value >= 0.f;
98 return value == 0 || value == 1;
103 return value >= 0 && value <=
kMaxJets;
108 return value >= 0 && value <= 2;
113 const auto wide =
static_cast<std::int64_t
>(value);
114 return (wide < 0 ? -wide : wide) <=
static_cast<std::int64_t
>(
kMaxInsv);
123 case -99:
case -98:
case -90:
case 10:
124 case 99:
case 200:
case 300:
case 400:
132inline bool isUnitSign(
float value) {
return value == 1.f || value == -1.f; }
138 return std::isnan(phivDist) == std::isnan(distj);
144 const auto wide =
static_cast<std::int64_t
>(value);
145 const auto magnitude = wide < 0 ? -wide : wide;
146 return magnitude <= static_cast<std::int64_t>(maximum);
bool isValidAttachedFlag(std::int32_t value)
constexpr int kPrimaryVertexAlgorithmType
bool isValidHemisphere(std::int32_t value)
constexpr std::int32_t kMaxVdLayers
constexpr int kMaxPrimaryVertexNdf
constexpr std::int32_t kMaxInsv
bool isSelectedPayloadName(std::string_view name, std::string_view source)
bool isNonnegativeFinite(float value)
bool isValidSignedCount(std::int32_t value, std::int32_t maximum)
constexpr std::int32_t kMaxVdHits
constexpr std::int32_t kMaxJets
constexpr std::int32_t kMaxSvHypotheses
bool isValidJetIndex(std::int32_t value)
bool isConsistentPlaceholder(float phivDist, float distj)
bool isUnitSign(float value)
bool isValidUsedForTag(std::int32_t value)
bool isValidInsv(std::int32_t value)
bool isValidTrackStatus(std::int32_t value)
bool isFinite(float value)
bool isSensiblePrimaryVertexNdf(int value)
@ kTrInsv
INSV SV hypothesis using the track (+100 flags)
@ kTrIthr
ITHR thrust hemisphere (1 or 2)
@ kTrProbZ
TRPRZ the same, using z
@ kTrIsrt
ISRT 0 if the track was not used by the tag
@ kTrErrtj
ERRTJ error on kTrDistj, mm; NaN on the same rows
@ kTrAttached
1 if AABTAG attached the track to its primary vertex
@ kTrChi2Tr
CHI2TR track-to-vertex chi2; NaN unless kTrAttached
@ kTrProb
TRPR lifetime probability
@ kTrCount
number of slots; the expected parameters size
@ kTrNLayz
NLAYZ of which carry z
@ kTrIjsv
IJSV jet after the SV redefinition
@ kTrChi2Vd
CHI2VD chi2 of the VD hits on the track
@ kTrIst
IST track-quality code (AASTRK / AASLCT / AAIMPC)
@ kTrNLay
NLAY VD layers touched
@ kTrRpdt
RPDT track rapidity with respect to its jet
@ kTrDistj
DISTJ 3-D track-jet distance, mm; NaN if not computed
@ kTrMomentum
PMOM track momentum, GeV
@ kTrNVdpz
NVDPZ of which carry z
@ kTrIjet
IJET AABTAG_CombinedTagRow row, 1-based
bool isPositiveFinite(float value)