Skip to content

Commit 16bdad2

Browse files
authored
Merge pull request #241 from DUNE-DAQ/rma/WIB_fr_count_v2
Rma/wib fr count v2
2 parents 27f6644 + f3fb756 commit 16bdad2

File tree

1 file changed

+35
-33
lines changed

1 file changed

+35
-33
lines changed

schema/appmodel/trigger.schema.xml

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
<oks-schema>
8282

83-
<info name="" type="" num-of-items="47" oks-format="schema" oks-version="862f2957270" created-by="asztuc" created-on="np04-srv-019.cern.ch" creation-time="20231211T133151" last-modified-by="gjc" last-modified-on="latitude" last-modification-time="20250523T112537"/>
83+
<info name="" type="" num-of-items="54" oks-format="schema" oks-version="862f2957270" created-by="asztuc" created-on="np04-srv-019.cern.ch" creation-time="20231211T133151" last-modified-by="ramarine" last-modified-on="np04-srv-016.cern.ch" last-modification-time="20251001T133247"/>
8484

8585
<include>
8686
<file path="schema/confmodel/dunedaq.schema.xml"/>
@@ -194,13 +194,6 @@
194194
<relationship name="tc_readout" description="Configuration for the TC output type and the TC window size" class-type="TCReadoutMap" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
195195
</class>
196196

197-
<class name="TPCRawDataProcessor">
198-
<superclass name="RawDataProcessor"/>
199-
<relationship name="processing_steps" class-type="ProcessingStep" low-cc="one" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
200-
<relationship name="sot_minima" description="TP samples over threshold minimum requirement by plane." class-type="SamplesOverThresholdMinima" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
201-
<attribute name="metric_collect_opmon_rate" description="The rate at which processor metric is polled from processors for monitoring" type="u32" init-value="1"/>
202-
</class>
203-
204197
<class name="RandomTCMakerModule">
205198
<superclass name="StandaloneTCMakerModule"/>
206199
<relationship name="configuration" class-type="RandomTCMakerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
@@ -322,16 +315,12 @@
322315
<attribute name="buffer_timeout" description="Timeout (buffer) to wait for new overlapping TCs before sending TD, in ms" type="u32" init-value="100" is-not-null="yes"/>
323316
<attribute name="td_readout_limit" description="Maximum allowed time length (in ticks) for a readout window of a single TD" type="u32" init-value="1000000" is-not-null="yes"/>
324317
<attribute name="ignore_tc" description="Optional list of TC types to be ignored in MLT" type="u32" is-multi-value="yes"/>
325-
<relationship name="trigger_bitwords" description="Optional dictionary of bitwords to use when forming trigger decisions in MLT" class-type="TriggerBitword" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
318+
<relationship name="trigger_bitwords" description="Optional dictionary of bitwords to use when forming trigger decisions in MLT" class-type="TriggerBitword" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
326319
<relationship name="roi_group_conf" description="The configuration (table) for ROI readout (currently not used)" class-type="ROIGroupConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
327320
<relationship name="tc_readout_map" description="The readout windows assigned to TDs in MLT, based on TC type." class-type="TCReadoutMap" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
328321
<relationship name="mandatory_links" description="Source Ids that will always be included in a trigger decision." class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
329322
</class>
330323

331-
<class name="TriggerBitword">
332-
<attribute name="bitword" description="Trigger Bitword in string format" type="string" is-multi-value="yes"/>
333-
</class>
334-
335324
<class name="TCMakerADCSimpleWindowAlgorithm">
336325
<superclass name="TCAlgorithm"/>
337326
</class>
@@ -397,30 +386,32 @@
397386
<attribute name="time_after" description="Time, in ticks, after the HSI timestamp, for the TriggerCandidate end_time" type="u32" init-value="1001" is-not-null="yes"/>
398387
</class>
399388

389+
<class name="TPCRawDataProcessor">
390+
<superclass name="RawDataProcessor"/>
391+
<attribute name="frame_count_limit" description="When this number of frames is reached the TPs are sent to the sink. SELECT 0 if you want this condition not to be used. In this case, sending TPs will only rely on the number of TP." type="u32" init-value="100" is-not-null="yes"/>
392+
<attribute name="tp_count_limit" description="When this number of TPs is reached, the TPs are sent to the sink. SELECT 0 if you want this condition not to be used. In this case, sending TPs will only rely on the number of frames." type="u32" init-value="0" is-not-null="yes"/>
393+
<attribute name="metric_collect_opmon_rate" description="The rate at which processor metric is polled from processors for monitoring" type="u32" init-value="1"/>
394+
<relationship name="processing_steps" class-type="ProcessingStep" low-cc="one" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
395+
<relationship name="sot_minima" description="TP samples over threshold minimum requirement by plane." class-type="SamplesOverThresholdMinima" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
396+
</class>
397+
400398
<class name="TPDataProcessor">
401399
<superclass name="DataProcessor"/>
402400
<attribute name="print_tp_info" description="Whether to print TP information in the TA processor" type="bool" init-value="false"/>
403401
<relationship name="algorithms" class-type="TAAlgorithm" low-cc="one" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
404402
</class>
405403

406-
<class name="TriggerApplication">
404+
<class name="TPReplayApplication">
407405
<superclass name="SmartDaqApplication"/>
408-
<superclass name="Resource"/>
409406
<attribute name="application_name" type="string" init-value="daq_application" is-not-null="yes"/>
410-
<attribute name="tx_generation_disabled" description="Disable TA/TC generation as a post-processing task -- only to be done by the experts for e.g. TP performance studies" type="bool" init-value="false"/>
411-
<relationship name="data_subscriber" class-type="DataReaderConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
412-
<relationship name="trigger_inputs_handler" class-type="DataHandlerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
413-
<method name="generate_modules" description="Generate daq module dal objects for streams of thie TriggerApplication on the fly">
407+
<relationship name="tp_source_ids" class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
408+
<relationship name="tprm_conf" class-type="TPReplayModuleConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
409+
<relationship name="tp_handler" class-type="DataHandlerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
410+
<method name="generate_modules" description="Generate daq module dal objects for TPReplayApplication on the fly">
414411
<method-implementation language="c++" prototype="std::vector&lt;const dunedaq::confmodel::DaqModule*&gt; generate_modules(const confmodel::Session*) const override" body=""/>
415412
</method>
416413
</class>
417414

418-
<class name="TriggerDataHandlerModule">
419-
<superclass name="DataHandlerModule"/>
420-
<relationship name="enabled_source_ids" description="List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions." class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
421-
<relationship name="mandatory_source_ids" description="Source Ids that will always be included in a trigger decision." class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
422-
</class>
423-
424415
<class name="TPReplayModule">
425416
<superclass name="DaqModule"/>
426417
<relationship name="configuration" class-type="TPReplayModuleConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
@@ -432,24 +423,35 @@
432423
<attribute name="maximum_wait_time_us" type="u32" init-value="1000" is-not-null="yes"/>
433424
<attribute name="channel_map" type="string" init-value="PD2HDTPCChannelMap" is-not-null="yes"/>
434425
<attribute name="total_planes" type="u32" init-value="0" is-not-null="yes"/>
435-
<attribute name="filter_out_plane" type="u32" range="0..2" init-value="0" is-multi-value="yes"/>
426+
<attribute name="filter_out_plane" type="u32" range="0..2" is-multi-value="yes" init-value="0"/>
436427
<relationship name="tp_streams" class-type="TPStreamConf" low-cc="one" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
437-
</class>
428+
</class>
438429

439430
<class name="TPStreamConf">
440431
<attribute name="filename" type="string" init-value="1" is-not-null="yes"/>
441432
<attribute name="index" type="u32" init-value="0" is-not-null="yes"/>
442433
</class>
443434

444-
<class name="TPReplayApplication">
435+
<class name="TriggerApplication">
445436
<superclass name="SmartDaqApplication"/>
437+
<superclass name="Resource"/>
446438
<attribute name="application_name" type="string" init-value="daq_application" is-not-null="yes"/>
447-
<relationship name="tp_source_ids" class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
448-
<relationship name="tprm_conf" class-type="TPReplayModuleConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
449-
<relationship name="tp_handler" class-type="DataHandlerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
450-
<method name="generate_modules" description="Generate daq module dal objects for TPReplayApplication on the fly">
451-
<method-implementation language="c++" prototype="std::vector&lt;const dunedaq::confmodel::DaqModule*&gt; generate_modules(const confmodel::Session*) const override" body=""/>
439+
<attribute name="tx_generation_disabled" description="Disable TA/TC generation as a post-processing task -- only to be done by the experts for e.g. TP performance studies" type="bool" init-value="false"/>
440+
<relationship name="data_subscriber" class-type="DataReaderConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
441+
<relationship name="trigger_inputs_handler" class-type="DataHandlerConf" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
442+
<method name="generate_modules" description="Generate daq module dal objects for streams of thie TriggerApplication on the fly">
443+
<method-implementation language="c++" prototype="std::vector&lt;const dunedaq::confmodel::DaqModule*&gt; generate_modules(const confmodel::Session*) const override" body=""/>
452444
</method>
453445
</class>
454446

447+
<class name="TriggerBitword">
448+
<attribute name="bitword" description="Trigger Bitword in string format" type="string" is-multi-value="yes"/>
449+
</class>
450+
451+
<class name="TriggerDataHandlerModule">
452+
<superclass name="DataHandlerModule"/>
453+
<relationship name="enabled_source_ids" description="List of source IDs enabled in this session: used by trigger to define the readout window for trigger decisions." class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
454+
<relationship name="mandatory_source_ids" description="Source Ids that will always be included in a trigger decision." class-type="SourceIDConf" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
455+
</class>
456+
455457
</oks-schema>

0 commit comments

Comments
 (0)