AliRunLoader* runLoader = fLoader->GetRunLoader();
AliPMDClusterFinder *pmdClus = new AliPMDClusterFinder(runLoader);
+ pmdClus->Load();
for (Int_t iEvent = 0; iEvent < runLoader->GetNumberOfEvents(); iEvent++)
{
pmdClus->Digits2RecPoints(iEvent);
}
-
+ pmdClus->UnLoad("R");
delete pmdClus;
}
pmdclust->SetDebug(fDebug);
pmdclust->SetEdepCut(fEcut);
- fPMDLoader->LoadDigits("READ");
- fPMDLoader->LoadRecPoints("recreate");
fRunLoader->GetEvent(ievt);
//cout << " ***** Beginning::Digits2RecPoints *****" << endl;
fTreeD = fPMDLoader->TreeD();
ResetCellADC();
fPMDLoader = fRunLoader->GetLoader("PMDLoader");
fPMDLoader->WriteRecPoints("OVERWRITE");
- fPMDLoader->UnloadRecPoints();
- fPMDLoader->UnloadDigits();
// delete the pointers
delete pmdclust;
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
void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
void ResetCellADC();
void ResetRecpoint();
+ void Load();
void UnLoad(Option_t * option);
protected:
static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC
- ClassDef(AliPMDClusterFinder,3) // To run PMD clustering
+ ClassDef(AliPMDClusterFinder,4) // To run PMD clustering
};
#endif