]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCclusterer.cxx
Updated version of raw data code (D.Favretto)
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterer.cxx
index e7a0be29a2a1f8f1faf8bb08d2470466c6081529..ac5605270e700fe230991e0c922860dcf71d5c2f 100644 (file)
 
 /*
 $Log$
+Revision 1.10  2002/10/14 14:57:43  hristov
+Merging the VirtualMC branch to the main development branch (HEAD)
+
+Revision 1.7.6.1  2002/06/10 15:26:12  hristov
+Merged with v3-08-02
+
+Revision 1.9  2002/05/09 06:57:09  kowal2
+Protection against nonexisting input tree
+
+Revision 1.8  2002/03/29 06:57:45  kowal2
+Restored backward compatibility to use the hits from Dec. 2000 production.
+
 Revision 1.7  2001/10/21 19:04:55  hristov
 Several patches were done to adapt the barel reconstruction to the multi-event case. Some memory leaks were corrected. (Yu.Belikov)
 
@@ -53,7 +65,7 @@ Splitted from AliTPCtracking
 #include "AliDigits.h"
 #include "AliSimDigits.h"
 #include "AliTPCParam.h"
-#include <iostream.h>
+#include <Riostream.h>
 #include <TTree.h>
 
 void AliTPCclusterer::FindPeaks(Int_t k,Int_t max,
@@ -137,6 +149,11 @@ void AliTPCclusterer::Digits2Clusters(const AliTPCParam *par, TFile *of, Int_t e
   }
   TTree *t = (TTree *)gDirectory->Get(dname);
 
+  if (!t) {
+    cerr<<"Input tree with "<<dname<<" not found"<<endl;
+    return;
+  }
+
   AliSimDigits digarr, *dummy=&digarr;
   t->GetBranch("Segment")->SetAddress(&dummy);
   Stat_t nentries = t->GetEntries();