Skip to content

Commit 5e7f61f

Browse files
added mc label
1 parent cf8c9dc commit 5e7f61f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Chip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Chip
7676
/// reset points container
7777
o2::iotof::LabeledDigit* findDigit(ULong64_t key);
7878

79-
void addDigit(UShort_t row, UShort_t col, Int_t charge, double time);
79+
void addDigit(UShort_t row, UShort_t col, Int_t charge, double time, o2::MCCompLabel label);
8080

8181
protected:
8282
Int_t mChipIndex = -1; ///< Chip ID

Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Chip.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Chip::Chip(Int_t index)
3232
{
3333
}
3434
//_______________________________________________________________________
35-
void Chip::addDigit(UShort_t row, UShort_t col, Int_t charge, double time)
35+
void Chip::addDigit(UShort_t row, UShort_t col, Int_t charge, double time, o2::MCCompLabel label)
3636
{
3737
ULong64_t key = Digit::getOrderingKey(mChipIndex, row, col);
38-
mDigits.emplace(std::make_pair(key, LabeledDigit(mChipIndex, row, col, charge, time)));
38+
mDigits.emplace(std::make_pair(key, LabeledDigit(mChipIndex, row, col, charge, time, label)));
3939
}

Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void Digitizer::registerDigits(Chip& chip, uint32_t roFrame, float timeInitROF,
242242
o2::iotof::LabeledDigit* existingDigit = chip.findDigit(key);
243243
if (!existingDigit) {
244244
// No existing digit, create a new one
245-
chip.addDigit(row, col, nElectrons, timeInitROF); // Last one should really just be time
245+
chip.addDigit(row, col, nElectrons, timeInitROF, label); // Last one should really just be time
246246
} else {
247247
// Digit already exists, update charge and labels
248248
const int storedCharge = existingDigit->getCharge();

0 commit comments

Comments
 (0)