+/****************************************************************************
+ * Origin: I.Belikov, CERN, Jouri.Belikov@cern.ch *
+ ****************************************************************************/
+
#ifndef __CINT__
#include <iostream.h>
#include "AliRun.h"
TFile *in=TFile::Open("rfio:galice.root");
if (!in->IsOpen()) {cerr<<"Can't open galice.root !\n"; return 2;}
+ TFile *ind=TFile::Open("digits.root");
+ if (!ind->IsOpen()) {cerr<<"Can't open galice.root !\n"; return 2;}
+
if (!(gAlice=(AliRun*)in->Get("gAlice"))) {
cerr<<"gAlice have not been found on galice.root !\n";
return 3;
Int_t ver = TPC->IsVersion();
cerr<<"TPC version "<<ver<<" has been found !\n";
- 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");
- }
+ AliTPCParam *dig=(AliTPCParam *)in->Get("75x40_100x60_150x60");
if (!dig) {cerr<<"TPC parameters have not been found !\n"; return 4;}
TStopwatch timer;
{
// delete gAlice; gAlice=0;
AliTPCv2 tpc;
- tpc.SetParam(dig); timer.Start(); cwd->cd();
+ tpc.SetParam(dig); timer.Start(); ind->cd();
for (Int_t i=0;i<n;i++){
printf("Processing event %d\n",i);
tpc.Digits2Clusters(out,i);