Bug fix. Filling in chamber ID and detection element ID information correctly for...
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2009 14:04:48 +0000 (14:04 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2009 14:04:48 +0000 (14:04 +0000)
HLT/MUON/OfflineInterface/AliHLTMUONRootifierComponent.cxx

index 0c1ff34..490f50f 100644 (file)
@@ -241,7 +241,10 @@ int AliHLTMUONRootifierComponent::DoEvent(
                        for (AliHLTUInt32_t n = 0; n < inblock.Nentries(); n++)
                        {
                                const AliHLTMUONRecHitStruct& h = inblock[n];
-                               event.Add(new AliHLTMUONRecHit(h.fX, h.fY, h.fZ, sourceDDL));
+                               AliHLTUInt8_t chamber;
+                               AliHLTUInt16_t detElemId;
+                               AliHLTMUONUtils::UnpackRecHitFlags(h.fFlags, chamber, detElemId);
+                               event.Add(new AliHLTMUONRecHit(h.fX, h.fY, h.fZ, sourceDDL, detElemId, chamber));
                        }
                }
                else if (block->fDataType == AliHLTMUONConstants::TriggerRecordsBlockDataType())