Skip to content

Commit 2aa92e5

Browse files
mfasDadavidrohr
authored andcommitted
[EMCAL-548] Propagate trigger type fromn digits to cell trigger record
1 parent 6de50fd commit 2aa92e5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

DataFormats/Detectors/EMCAL/include/DataFormatsEMCAL/TriggerRecord.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class TriggerRecord
6464
PHYSTRIGGER, ///< Physics trigger
6565
CALIBTRIGGER ///< Calib trigger
6666
};
67-
BCData mBCData; /// Bunch crossing data of the trigger
68-
DataRange mDataRange; /// Index of the triggering event (event index and first entry in the container)
69-
uint32_t mTriggerBits; /// Trigger bits as from the Raw Data Header
67+
BCData mBCData; /// Bunch crossing data of the trigger
68+
DataRange mDataRange; /// Index of the triggering event (event index and first entry in the container)
69+
uint32_t mTriggerBits = 0; /// Trigger bits as from the Raw Data Header
7070

7171
ClassDefNV(TriggerRecord, 2);
7272
};

Detectors/EMCAL/workflow/src/CellConverterSpec.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void CellConverterSpec::run(framework::ProcessingContext& ctx)
5959
int currentstart = mOutputCells.size(), ncellsTrigger = 0;
6060
for (const auto& trg : triggers) {
6161
if (!trg.getNumberOfObjects()) {
62-
mOutputTriggers.emplace_back(trg.getBCData(), currentstart, ncellsTrigger);
62+
mOutputTriggers.emplace_back(trg.getBCData(), trg.getTriggerBits(), currentstart, ncellsTrigger);
6363
continue;
6464
}
6565
gsl::span<const o2::emcal::Digit> digits(digitsAll.data() + trg.getFirstEntry(), trg.getNumberOfObjects());
@@ -91,7 +91,7 @@ void CellConverterSpec::run(framework::ProcessingContext& ctx)
9191
ncellsTrigger++;
9292
}
9393
}
94-
mOutputTriggers.emplace_back(trg.getBCData(), currentstart, ncellsTrigger);
94+
mOutputTriggers.emplace_back(trg.getBCData(), trg.getTriggerBits(), currentstart, ncellsTrigger);
9595
currentstart = mOutputCells.size();
9696
ncellsTrigger = 0;
9797
}

0 commit comments

Comments
 (0)