]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
setting the number of clusters when restoring object from AliHLTExternalTrackParam
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Sep 2009 00:23:22 +0000 (00:23 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Sep 2009 00:23:22 +0000 (00:23 +0000)
minor bugfix: return -1 as cluster index in the dummy method.

HLT/BASE/util/AliHLTGlobalBarrelTrack.cxx
HLT/BASE/util/AliHLTGlobalBarrelTrack.h

index 89aeec50249080bfa5a8f2443768e56338a4e017..d41167b611a5a001301d61df3d4c9d883f09b6b0 100644 (file)
@@ -73,6 +73,7 @@ AliHLTGlobalBarrelTrack::AliHLTGlobalBarrelTrack(const AliHLTExternalTrackParam&
   // the members have the some order, fY is the first one
   Set(p.fX, p.fAlpha, &p.fY, p.fC);
   SetPoints(p.fPointIDs, p.fNPoints);
+  SetNumberOfClusters(p.fNPoints);
 }
 
 template <class c>
index f99741b9bd93783ecdd45285cd050d05beb56205..85541dfb1bd019200d2a5803a165f3ddf21d3fb2 100644 (file)
@@ -75,7 +75,7 @@ class AliHLTGlobalBarrelTrack : public AliKalmanTrack
  private:
   /// inherited from AliKalmanTrack, dummy implementation
   virtual Int_t GetClusterIndex(Int_t) const { 
-    return 0;
+    return -1;
   } 
   /// inherited from AliKalmanTrack, dummy implementation
   virtual Double_t GetPIDsignal() const {