+ for (int j = 0; j < iTRU->RegionSize()->X(); j++)
+ {
+ for (int k = 0; k < iTRU->RegionSize()->Y(); k++)
+ {
+ if (reg[j][k]
+ &&
+ fGeometry->GetAbsFastORIndexFromPositionInTRU(i, j, k, id)
+ &&
+ fGeometry->GetPositionInEMCALFromAbsFastORIndex(id, px, py))
+ {
+ pos = posMap[px][py];
+
+ if (pos == -1)
+ {
+ // Add a new digit
+ posMap[px][py] = digits->GetEntriesFast();
+
+ new((*digits)[digits->GetEntriesFast()]) AliEMCALTriggerRawDigit(id, 0x0, 0);
+
+ dig = (AliEMCALTriggerRawDigit*)digits->At(digits->GetEntriesFast() - 1);
+ }
+ else
+ {
+ dig = (AliEMCALTriggerRawDigit*)digits->At(pos);
+ }
+
+ // 14b to 12b STU time sums
+ reg[j][k] >>= 2;
+
+ dig->SetL1TimeSum(reg[j][k]);
+ }
+ }
+ }
+ }
+ }
+
+ if (iL0 && !data->GetMode())
+ {
+ for (Int_t i = 0; i < kNTRU; i++)
+ {
+ AliEMCALTriggerTRU *iTRU = static_cast<AliEMCALTriggerTRU*>(fTRU->At(i));
+ if (!iTRU) continue;
+
+ AliDebug(999, Form("=== TRU# %2d found %d patches", i, (iTRU->Patches()).GetEntriesFast()));