Using more information given by the core manso algorithm implementation so that we...
authorszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2007 12:25:07 +0000 (12:25 +0000)
committerszostak <szostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Oct 2007 12:25:07 +0000 (12:25 +0000)
optimisation that got left own after the port of the code to the AliHLTSystem framework.

HLT/MUON/OnlineAnalysis/AliHLTMUONMansoTrackerFSMComponent.cxx

index c93e2d91aa4b255df6dcb3320815ead7da8c56bf..e2c52444820e9f2a3c0545828b09cb5a9a9ab1b9 100644 (file)
@@ -391,8 +391,8 @@ void AliHLTMUONMansoTrackerFSMComponent::AddRecHits(
 
 void AliHLTMUONMansoTrackerFSMComponent::RequestClusters(
                AliHLTMUONMansoTrackerFSM* tracker,
-               AliHLTFloat32_t /*left*/, AliHLTFloat32_t /*right*/,
-               AliHLTFloat32_t /*bottom*/, AliHLTFloat32_t /*top*/,
+               AliHLTFloat32_t left, AliHLTFloat32_t right,
+               AliHLTFloat32_t bottom, AliHLTFloat32_t top,
                AliHLTMUONChamberName chamber, const void* tag
        )
 {
@@ -427,12 +427,11 @@ void AliHLTMUONMansoTrackerFSMComponent::RequestClusters(
        
        DebugTrace("Returning requested hits for chamber " << chNo << ":");
        for (AliHLTUInt32_t i = 0; i < recHitsBlock->size(); i++)
+       for (AliHLTUInt32_t j = 0; j < (*recHitsBlock)[i].fCount; j++)
        {
-               tracker->ReturnClusters(
-                               ctag,
-                               (*recHitsBlock)[i].fData,
-                               (*recHitsBlock)[i].fCount
-                       );
+               const AliHLTMUONRecHitStruct* hit = &((*recHitsBlock)[i].fData[j]);
+               if (left < hit->fX and hit->fX < right and bottom < hit->fY and hit->fY < top)
+                       tracker->ReturnClusters(ctag, hit, 1);
        }
        DebugTrace("Done returning hits from chamber " << chNo << ".");
        tracker->EndOfClusters(ctag);