]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/OnlineAnalysis/AliHLTMUONHitReconstructor.cxx
Making important updates to the internal data structures:
[u/mrichter/AliRoot.git] / HLT / MUON / OnlineAnalysis / AliHLTMUONHitReconstructor.cxx
index e7e27657e13d73f124067c596071c45bd70bb60d..544ae22160422485132b2eb328418763c4a44a5e 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "AliHLTMUONHitReconstructor.h"
 #include "AliHLTMUONRecHitsBlockStruct.h"
+#include "AliHLTMUONUtils.h"
 #include <cstring>
 #include <strings.h>
 
@@ -685,8 +686,12 @@ bool AliHLTMUONHitReconstructor::MergeRecHits()
              HLTError("Number of RecHit (i.e. %d) exceeds the max number of RecHit limit %d.",(*fRecPointsCount),fMaxRecPointsCount);
              return false;
            }
-           
-           //fRecPoints[(*fRecPointsCount)].fId = idCentralB;
+
+           AliHLTUInt32_t idflags = AliHLTMUONUtils::PackRecHitFlags(
+                (fPadData[idCentralB].fDetElemId / 100) - 1,
+                fPadData[idCentralB].fDetElemId
+             );
+           fRecPoints[(*fRecPointsCount)].fFlags = idflags;
            fRecPoints[(*fRecPointsCount)].fX = fRecX[nb];
            fRecPoints[(*fRecPointsCount)].fY = fRecY[b];
            fRecPoints[(*fRecPointsCount)].fZ = fPadData[idCentralB].fRealZ;