2 .L AliTPCHits2Clusters.C+
8 #include "AliRunLoader.h"
10 #include "AliTPCLoader.h"
11 #include "AliTPCFast.h"
16 void Hits2ExactClusters(){
17 AliRunLoader * runLoader = Init();
20 for (Int_t ievent =0; ievent<runLoader->GetNumberOfEvents(); ievent++){
21 runLoader->SetEventNumber(ievent);
22 printf("Event\t%d\n",ievent);
23 fast.Hits2ExactClusters(runLoader);
36 delete AliRunLoader::Instance();
37 delete gAlice;//if everything was OK here it is already NULL
41 AliRunLoader* rl = AliRunLoader::Open("galice.root");
43 cerr<<"Can not open session"<<endl;
47 if (rl->LoadgAlice()) {
48 cerr<<"Error occured while l"<<endl;
52 gAlice=rl->GetAliRun();
54 cerr<<"Can't get gAlice !\n";