Skip to content

Commit 6acd977

Browse files
wiechulashahor02
authored andcommitted
TPC: better treatment of user logic detection
1 parent c9426c3 commit 6acd977

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Detectors/TPC/workflow/src/CalibProcessingHelper.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,9 @@ void processLinkZS(o2::framework::RawParser<>& parser, std::unique_ptr<RawReader
192192
//const auto feeID = (RDHUtils::getFEEID(*rdhPtr) & 0x7f) | (cru << 7);
193193

194194
// skip all data that is not Link-base zero suppression
195+
const auto link = RDHUtils::getLinkID(*rdhPtr);
195196
const auto detField = RDHUtils::getDetectorField(*rdhPtr);
196-
if (detField != 1) {
197+
if ((detField != 1) && (link != rdh_utils::UserLogicLinkID)) {
197198
continue;
198199
}
199200

@@ -209,7 +210,7 @@ void processLinkZS(o2::framework::RawParser<>& parser, std::unique_ptr<RawReader
209210
// find the global sync offset reference, using the large sync offset to avoid negative time bins
210211
uint32_t getBCsyncOffsetReference(InputRecord& inputs, const std::vector<InputSpec>& filter)
211212
{
212-
uint32_t syncOffsetReference = 0;
213+
uint32_t syncOffsetReference = 144;
213214

214215
for (auto const& ref : InputRecordWalker(inputs, filter)) {
215216
const auto* dh = DataRefUtils::getHeader<o2::header::DataHeader*>(ref);
@@ -228,8 +229,9 @@ uint32_t getBCsyncOffsetReference(InputRecord& inputs, const std::vector<InputSp
228229
}
229230

230231
// only process LinkZSdata, only supported for data where this is already set in the UL
232+
const auto link = RDHUtils::getLinkID(*rdhPtr);
231233
const auto detField = RDHUtils::getDetectorField(*rdhPtr);
232-
if (detField != 1) {
234+
if ((detField != 1) && (link != rdh_utils::UserLogicLinkID)) {
233235
continue;
234236
}
235237

0 commit comments

Comments
 (0)