-#ifndef PMDClusterFinder_H
-#define PMDClusterFinder_H
+#ifndef ALIPMDCLUSTERFINDER_H
+#define ALIPMDCLUSTERFINDER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//-----------------------------------------------------//
// //
//-----------------------------------------------------//
-#include <Riostream.h>
-#include <stdlib.h>
-#include <math.h>
-#include <TMath.h>
-
class TClonesArray;
class TFile;
class TObjArray;
class TTree;
class TNtuple;
+class TMath;
class AliLoader;
class AliRunLoader;
class AliPMDClusterFinder
{
- protected:
- AliRunLoader *fRunLoader;
- AliRun *gAlice;
- AliDetector *PMD; /* Get pointers to Alice detectors
- and Hits containers */
- AliLoader *pmdloader;
- TTree *treeD;
- TTree *treeR;
+ public:
- TClonesArray *fDigits;
- TClonesArray *fRecpoints;
+ AliPMDClusterFinder(AliRunLoader* runLoader);
+ virtual ~AliPMDClusterFinder();
- Int_t fNpoint;
- Int_t fDetNo;
- Int_t fDebug;
- Float_t fEcut;
+ void Digits2RecPoints(Int_t ievt);
+ void SetCellEdepCut(Float_t ecut);
+ void SetDebug(Int_t idebug);
+ void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
+ void ResetCellADC();
+ void ResetRecpoint();
+ void Load();
+ void UnLoad(Option_t * option);
- static const Int_t fRow = 48;
- static const Int_t fCol = 96;
- Double_t fCellADC[fRow][fCol];
+ protected:
+ AliRunLoader *fRunLoader; // Pointer to Run Loader
+ AliLoader *fPMDLoader; // Pointer to specific detector loader
- public:
+ TTree *fTreeD; // Digits tree
+ TTree *fTreeR; // Reconstructed points
- AliPMDClusterFinder();
- virtual ~AliPMDClusterFinder();
+ TClonesArray *fDigits; // List of digits
+ TClonesArray *fRecpoints; // List of reconstructed points
- void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
+ Int_t fNpoint; //
+ Int_t fDetNo; // Detector Number (0:PRE, 1:CPV)
+ Int_t fDebug; // Debugging switch (0:NO, 1:YES)
+ Float_t fEcut; // Energy/ADC cut per cell
- void Digits2RecPoints(Int_t /* ievt */);
- void SetCellEdepCut(Float_t /* ecut */);
- void SetDebug(Int_t /* idebug */);
- void AddRecPoint(Float_t * /* clusdata */);
- void ResetCellADC();
- void ResetRecpoint();
- void UnLoad(Option_t * /* option */);
+ static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
+ 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,2)
+ ClassDef(AliPMDClusterFinder,4) // To run PMD clustering
};
#endif