Skip to content

Commit ddd5581

Browse files
committed
added configurable TF/HB periods
1 parent 5414653 commit ddd5581

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ReadoutEquipmentCruEmulator.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ ReadoutEquipmentCruEmulator::ReadoutEquipmentCruEmulator(ConfigFile &cfg, std::s
5858
cfg.getOptionalValue<int>(cfgEntryPoint + ".numberOfLinks", cfgNumberOfLinks, (int)1);
5959
cfg.getOptionalValue<int>(cfgEntryPoint + ".feeId", cfgFeeId, (int)0);
6060
cfg.getOptionalValue<int>(cfgEntryPoint + ".linkId", cfgLinkId, (int)0);
61-
61+
cfg.getOptionalValue<int>(cfgEntryPoint + ".TFperiod", cfgTFperiod);
62+
cfg.getOptionalValue<int>(cfgEntryPoint + ".HBperiod", cfgHBperiod);
63+
6264
// log config summary
63-
theLog.log("Equipment %s: maxBlocksPerPage=%d cruBlockSize=%d numberOfLinks=%d feeId=%d linkId=%d",
64-
name.c_str(), cfgMaxBlocksPerPage, cruBlockSize, cfgNumberOfLinks, cfgFeeId, cfgLinkId);
65+
theLog.log("Equipment %s: maxBlocksPerPage=%d cruBlockSize=%d numberOfLinks=%d feeId=%d linkId=%d TFperiod=%d HBperiod=%d",
66+
name.c_str(), cfgMaxBlocksPerPage, cruBlockSize, cfgNumberOfLinks, cfgFeeId, cfgLinkId, cfgTFperiod, cfgHBperiod);
6567

6668
// init variables
6769
currentId=1; // TFid starts on 1

0 commit comments

Comments
 (0)