]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDClusterFinder.cxx
new method Load added to AliPMDClusterFinder
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.cxx
index 19f5b0515e30e06091b3b043aef12652e5574d93..fd8499e03c4c37b25f40a7a20f71da390622ff04 100644 (file)
@@ -96,8 +96,6 @@ void AliPMDClusterFinder::Digits2RecPoints(Int_t ievt)
   pmdclust->SetDebug(fDebug);
   pmdclust->SetEdepCut(fEcut);
 
-  fPMDLoader->LoadDigits("READ");
-  fPMDLoader->LoadRecPoints("recreate");
   fRunLoader->GetEvent(ievt);
   //cout << " ***** Beginning::Digits2RecPoints *****" << endl;
   fTreeD = fPMDLoader->TreeD();
@@ -170,8 +168,6 @@ void AliPMDClusterFinder::Digits2RecPoints(Int_t ievt)
   ResetCellADC();
   fPMDLoader = fRunLoader->GetLoader("PMDLoader");  
   fPMDLoader->WriteRecPoints("OVERWRITE");
-  fPMDLoader->UnloadRecPoints();
-  fPMDLoader->UnloadDigits();
 
   //   delete the pointers
   delete pmdclust;
@@ -222,6 +218,14 @@ void AliPMDClusterFinder::ResetRecpoint()
   if (fRecpoints) fRecpoints->Clear();
 }
 // ------------------------------------------------------------------------- //
+void AliPMDClusterFinder::Load()
+{
+  // Unload all the *.root files
+  //
+  fPMDLoader->LoadDigits("READ");
+  fPMDLoader->LoadRecPoints("recreate");
+}
+// ------------------------------------------------------------------------- //
 void AliPMDClusterFinder::UnLoad(Option_t *option)
 {
   // Unload all the *.root files