]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCFindClusters.C
Latest version
[u/mrichter/AliRoot.git] / TPC / AliTPCFindClusters.C
index f95c112345add1180b19dca3f99281521de3268c..cb2d4bf17e0c2449e02c244ef6642ea8f464955a 100644 (file)
@@ -26,7 +26,16 @@ Int_t AliTPCFindClusters(Int_t n=1) {
    Int_t ver = TPC->IsVersion(); 
    cerr<<"TPC version "<<ver<<" has been found !\n";
 
-   AliTPCParam *dig=(AliTPCParam *)in->Get("75x40_100x60");
+   AliTPCParamSR *dig=(AliTPCParamSR *)in->Get("75x40_100x60");
+   if(dig){
+     cerr<<"2 pad-length geom hits with 3 pad-lengths geom digits\n";
+     delete dig;
+     dig = new AliTPCParamSR();
+   }
+   else
+   {
+     dig=(AliTPCParamSR *)gDirectory->Get("75x40_100x60_150x60");
+   }
    if (!dig) {cerr<<"TPC parameters have not been found !\n"; return 4;}
 
    TStopwatch timer;
@@ -68,8 +77,6 @@ Int_t AliTPCFindClusters(Int_t n=1) {
 
    out->Close();
 
-   delete dig; //Thanks to Mariana Bondila
-
    in->Close();
 
    return 0;