]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDClusterFinder.h
mev2adc defined to be const
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
index d7eb4c61c32d2de7a24696fc321d6d2fe16c5061..32cea3201b814cef57130b5e5d5d3dafa35ca222 100644 (file)
@@ -1,5 +1,7 @@
-#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                               */
 //-----------------------------------------------------//
 //                                                     //
 //  Date   : August 05 2003                            //
 //                                                     //
 //-----------------------------------------------------//
 
-#include <Riostream.h>
-#include <stdlib.h>
-#include <math.h>
-#include <TMath.h>
-#include <vector>
-#include <algorithm>
-
 class TClonesArray;
 class TFile;
 class TObjArray;
 class TTree;
 class TNtuple;
+class TMath;
 
 class AliLoader;
 class AliRunLoader;
@@ -30,49 +26,48 @@ class AliHeader;
 
 class AliPMDdigit;
 class AliPMDClustering;
-class AliPMDContainer;
 class AliPMDcluster;
-class AliPMDrecpoint;
-
-using namespace std;
+class AliPMDrecpoint1;
 
 class AliPMDClusterFinder
 {
- protected:
-  AliRunLoader *fRunLoader;
-  AliRun       *gAlice;
-  AliDetector  *PMD;      /* Get pointers to Alice detectors 
-                            and Hits containers */
-  AliLoader    *pmdloader;
-
-  TTree        *treeD;
-  TTree        *treeR;
-
-  TClonesArray *fDigits;
-  TClonesArray *fRecpoints;
-
-  Int_t fNpoint;
-  Int_t fDetNo;
-
-  static const Int_t fTotSM = 27;
-  static const Int_t fNCell = 72;
-  Float_t fCPV[fTotSM][fNCell][fNCell];
-  Float_t fPMD[fTotSM][fNCell][fNCell];
 
  public:
 
   AliPMDClusterFinder();
   virtual ~AliPMDClusterFinder();
 
-  void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
+  void OpengAliceFile(char * file, Option_t * option);
 
-  void Digits2RecPoints(Int_t /* ievt */);
-  void AddRecPoint(Float_t * /* clusdata */);
+  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 */);
+  void UnLoad(Option_t * option);
+
+ protected:
+  AliRunLoader *fRunLoader; // Pointer to Run Loader
+  AliDetector  *fPMD;       // Pointers to Alice detectors & Hits containers
+  AliLoader    *fPMDLoader; // Pointer to specific detector loader
+
+  TTree        *fTreeD;     // Digits tree
+  TTree        *fTreeR;     // Reconstructed points
+
+  TClonesArray *fDigits;    // List of digits
+  TClonesArray *fRecpoints; // List of reconstructed points
+
+  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
+
+  static const Int_t fRow = 48; // Total number of rows in one unitmodule
+  static const Int_t fCol = 96; // Total number of cols in one unitmodule
+  Double_t fCellADC[fRow][fCol]; // Array containing individual cell ADC
 
-  ClassDef(AliPMDClusterFinder,1)
+  ClassDef(AliPMDClusterFinder,2) // To run PMD clustering
 };
 #endif