1 #ifndef ALIPHOSCLUSTERIZERV1_H
2 #define ALIPHOSCLUSTERIZERV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////
7 // Clusterizer implementation version 1 //
10 // Author Yves Schutz SUBATECH //
13 ////////////////////////////////////////////////
15 // --- ROOT system ---
17 // --- Standard library ---
19 // --- AliRoot header files ---
21 #include "AliPHOSClusterizer.h"
22 #include "AliPHOSDigit.h"
26 class AliPHOSClusterizerv1 : public AliPHOSClusterizer {
30 AliPHOSClusterizerv1() ; // ctor
31 virtual ~AliPHOSClusterizerv1(){} ; // dtor
33 Int_t AreNeighbours(AliPHOSDigit * d1, AliPHOSDigit * d2) ; // Checks if digits are in neighbour cells
34 Float_t Calibrate(Int_t Amp){ return (fA + fB * Amp) ;} // Tranforms Amp to energy
35 void FillandSort(const DigitsList * dl, TObjArray * tl) ; // Sorts the list according to increasing id
36 Float_t GetLogWeightCut(void){return fW0 ; }
37 Float_t GetLocalMaxCut(void) {return fLocMaxCut ; }
38 virtual void GetNumberOfClustersFound(Int_t * numb) ;
39 Bool_t IsInEmc(AliPHOSDigit * digit) ; // Tells if id digit is in EMC
40 virtual void MakeClusters(const DigitsList * dl, RecPointsList * emcl, RecPointsList * ppsdl) ; // does the job
41 void PrintParameters() ;
42 void SetCalibrationParameters(Float_t A,Float_t B){ fA = A ; fB = B;}
43 void SetEmcClusteringThreshold(Float_t cluth) { fEmcClusteringThreshold = cluth ; }
44 void SetEmcEnergyThreshold(Float_t enth) { fEmcEnergyThreshold = enth ; }
45 void SetLocalMaxCut(Float_t cut) { fLocMaxCut = cut ; }
46 void SetLogWeightCut(Float_t w) { fW0 = w ; }
47 void SetPpsdClusteringThreshold(Float_t cluth) { fPpsdClusteringThreshold = cluth ; }
48 void SetPpsdEnergyThreshold(Float_t enth) { fPpsdEnergyThreshold = enth ; }
54 Float_t fEmcClusteringThreshold ;
55 Float_t fEmcEnergyThreshold ;
57 Int_t fNumberOfEmcClusters ;
58 Int_t fNumberOfPpsdClusters ;
59 Float_t fPpsdClusteringThreshold ;
60 Float_t fPpsdEnergyThreshold ;
65 ClassDef(AliPHOSClusterizerv1,1) // Clusterizer implementation , version 1
69 #endif // AliPHOSCLUSTERIZERV1_H