Bugfix in AddTracks
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2001 16:03:45 +0000 (16:03 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2001 16:03:45 +0000 (16:03 +0000)
HLT/src/AliL3TrackArray.cxx

index b945c89..332fa59 100644 (file)
@@ -310,8 +310,12 @@ void AliL3TrackArray::AddLast(AliL3Track *track)
 
 
 void AliL3TrackArray::AddTracks(AliL3TrackArray *newtrack,Bool_t remove_old){
-  if(GetTrackType() != newtrack->GetTrackType())
-    return;
+  if(GetTrackType() != newtrack->GetTrackType() && GetTrackType()!='t')
+    {
+      LOG(AliL3Log::kError,"AliL3TrackArray::AddTracks","Track types")
+       <<"Bad idea to add tracks of different types"<<ENDLOG;
+      return;
+    }
   if(fSize < fNTracks+newtrack->GetNPresent())
     SetSize(fSize+newtrack->GetSize());
   for(Int_t i =0;i<newtrack->GetNTracks();i++){