Skip to content

Commit cbea886

Browse files
committed
[core] Send TRG to ODC detector list if ctp_readout_enabled
1 parent 05b0f00 commit cbea886

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

core/integration/odc/plugin.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,13 @@ func (p *Plugin) ObjectStack(varStack map[string]string) (stack map[string]inter
382382
Error("cannot parse general detector list")
383383
return
384384
}
385+
386+
// Special case: if the detector list is "default" and ctp_readout_enabled==true, we include TRG
387+
ctpReadoutEnabled := "false"
388+
ctpReadoutEnabled, ok = varStack["ctp_readout_enabled"]
389+
if ok && strings.ToLower(strings.TrimSpace(ctpReadoutEnabled)) == "true" {
390+
detectorsSlice = append(detectorsSlice, "TRG")
391+
}
385392
pdpDetectorList = strings.Join(detectorsSlice, ",")
386393
}
387394
accumulator = append(accumulator, fmt.Sprintf("WORKFLOW_DETECTORS='%s'", strings.TrimSpace(pdpDetectorList)))

0 commit comments

Comments
 (0)