Correction for references.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Sep 2011 08:23:02 +0000 (08:23 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Sep 2011 08:23:02 +0000 (08:23 +0000)
Gustavo Conesa

STEER/AOD/AliAODCaloCluster.h

index a29e141..762be88 100644 (file)
@@ -108,7 +108,11 @@ class AliAODCaloCluster : public AliAODCluster {
   
   void GetMomentum(TLorentzVector& p, Double_t * vertexPosition );
 
-  void AddTrackMatched(TObject *trk) { fTracksMatched.Add(trk); }
+  void AddTrackMatched(TObject *trk) { 
+    //Make sure we attach the object to correct process number
+    if(fTracksMatched.GetEntries()==0) { TRefArray ref(TProcessID::GetProcessWithUID(trk)) ; fTracksMatched = ref ; }
+    fTracksMatched.Add(trk) ; }
+  
   void RemoveTrackMatched(TObject *trk) { fTracksMatched.Remove(trk); }
   Bool_t HasTrackMatched(TObject *trk) const;