Skip to content

Commit

Permalink
adding min check for count type
Browse files Browse the repository at this point in the history
  • Loading branch information
MRiganSUSX committed Feb 7, 2024
1 parent 1353c3b commit 9ea50f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema/trigger/timingtriggercandidatemaker.jsonnet
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
local moo = import "moo.jsonnet";
local ns = "dunedaq.trigger.timingtriggercandidatemaker";
local s = moo.oschema.schema(ns);
local nc = moo.oschema.numeric_constraints;

local types = {
time_t : s.number("time_t", "i8", doc="Time"),
signal_type_t : s.number("signal_type_t", "u4", doc="Signal type"),
hsi_tt_pt : s.boolean("hsi_tt_pt"),
count_t : s.number("count_t", "i8", doc="Counter"),
count_t : s.number("count_t", "i8", nc(minimum=1), doc="Counter"),
map_t : s.record("map_t", [
s.field("signal_type",
self.signal_type_t,
Expand Down

0 comments on commit 9ea50f4

Please sign in to comment.