]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
new method Load added to AliPMDClusterFinder
authorbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Apr 2004 12:55:26 +0000 (12:55 +0000)
committerbnandi <bnandi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Apr 2004 12:55:26 +0000 (12:55 +0000)
PMD/AliPMDDigits2Recpoints.C

index 366a26c66995b2bd8019df6ad29c972460485f05..d4938e35a26760858641847ee801723fdcb62a43 100644 (file)
@@ -20,22 +20,29 @@ void AliPMDDigits2Recpoints(Int_t nevt=1)
   TStopwatch timer;
   timer.Start();
 
-  // Input file name
-  Char_t *alifile = "galice.root"; 
+  // Open the AliRoot file
+  AliRunLoader *fRunLoader = AliRunLoader::Open("galice.root");
+  if (!fRunLoader)
+    {
+      cerr<<"Can't load RunLoader"<<endl;
+      return 1;
+    }
+  fRunLoader->LoadgAlice();
+  gAlice = fRunLoader->GetAliRun();
+
 
   // Create the PMD Cluster Finder 
-  AliPMDClusterFinder *clus = new AliPMDClusterFinder();
+  AliPMDClusterFinder *clus = new AliPMDClusterFinder(fRunLoader);
   
-  // Open the AliRoot file
-  clus->OpengAliceFile(alifile,"DR");
-  
-  Int_t ievt;
-  
-  for (ievt = 0; ievt < nevt; ievt++)
+  clus->SetDebug(1);
+  clus->Load();
+
+  for (Int_t ievt = 0; ievt < nevt; ievt++)
     {
       clus->Digits2RecPoints(ievt);
     }
   clus->UnLoad("R");
+
   timer.Stop();
   timer.Print();
 }