]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
changing access the associated spacepoints
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 06:19:07 +0000 (06:19 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Aug 2011 06:19:07 +0000 (06:19 +0000)
HLT/TPCLib/AliHLTTPCTrackGeometry.cxx

index 7eaa81975637b155190d7f0d10c440b9619ad195..e85267045961bddb236773e1708497c57c97e61b 100644 (file)
@@ -308,8 +308,10 @@ int AliHLTTPCTrackGeometry::FillRawResidual(int coordinate, TH2* histo, AliHLTSp
   const vector<AliHLTTrackPoint>& trackPoints=TrackPoints();
   for (vector<AliHLTTrackPoint>::const_iterator trackpoint=trackPoints.begin();
        trackpoint!=trackPoints.end(); trackpoint++) {
-    AliHLTUInt32_t spacepointId=~(AliHLTUInt32_t)0;
-    if (trackpoint->GetAssociatedSpacePoint(spacepointId)<0) continue;
+    if (!trackpoint->HaveAssociatedSpacePoint()) continue;
+    for (vector<AliHLTTrackSpacepoint>::const_iterator sp=(trackpoint->GetSpacepoints()).begin();
+        sp!=(trackpoint->GetSpacepoints()).end(); sp++) {
+    AliHLTUInt32_t spacepointId=sp->fId;
     vector<AliHLTTrackPoint>::const_iterator rawpoint=find(fRawTrackPoints.begin(), fRawTrackPoints.end(), trackpoint->GetId());
     if (rawpoint==fRawTrackPoints.end()) {
       HLTError("can not find track raw coordinates of track point 0x%08x", trackpoint->GetId());
@@ -328,6 +330,7 @@ int AliHLTTPCTrackGeometry::FillRawResidual(int coordinate, TH2* histo, AliHLTSp
       //histo->Fill(GetPlaneR(trackpoint->GetId()), value);
       histo->Fill(rawpoint->GetV(), value);
     }
+    }
   }
   return 0;
 }