Skip to content

Commit cc97476

Browse files
atrioloAndrea Sofia Triolo
authored andcommitted
ALICE3-TRK: adapt ordering key for digits to the large number of columns in the VD
1 parent 515ba3a commit cc97476

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/include/TRKSimulation/ChipDigitsContainer.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ class ChipDigitsContainer : public o2::itsmft::ChipDigitsContainer
2929

3030
using Segmentation = SegmentationChip;
3131

32+
/// Get global ordering key made of readout frame, column and row
33+
static ULong64_t getOrderingKey(UInt_t roframe, UShort_t row, UShort_t col)
34+
{
35+
return (static_cast<ULong64_t>(roframe) << (8 * sizeof(UInt_t))) + (static_cast<ULong64_t>(col) << (8 * sizeof(Short_t))) + row;
36+
}
37+
3238
ClassDefNV(ChipDigitsContainer, 1);
3339
};
3440

0 commit comments

Comments
 (0)