]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDClusteringV1.h
hot cell file added to the shuttle
[u/mrichter/AliRoot.git] / PMD / AliPMDClusteringV1.h
CommitLineData
3edbbba2 1#ifndef ALIPMDCLUSTERINGV1_H
2#define ALIPMDCLUSTERINGV1_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//-----------------------------------------------------//
6// //
01c4d84a 7// Header File : PMDClusteringV1.h, Version 00 //
3edbbba2 8// //
9// Date : September 26 2002 //
10// //
11// clustering code for alice pmd //
12// //
13//-----------------------------------------------------//
562718f9 14// -- Author : S.C. Phatak
15// -- Modified : B.K. Nandi, Ajay Dash
2c1131dd 16// T. Nayak, N. Sharma
562718f9 17//
3edbbba2 18#include "Rtypes.h"
19#include "AliPMDClustering.h"
20
21class TNtuple;
22class TObjArray;
23class AliPMDcluster;
fd30f88e 24class AliPMDcludata;
920e13db 25
3edbbba2 26class AliPMDClusteringV1: public AliPMDClustering
27{
3edbbba2 28 public:
29 AliPMDClusteringV1();
562718f9 30 AliPMDClusteringV1(const AliPMDClusteringV1 &pmdclv1);
31 AliPMDClusteringV1 &operator=(const AliPMDClusteringV1 &pmdclv1);
3edbbba2 32 virtual ~AliPMDClusteringV1();
33
920e13db 34 void DoClust(Int_t idet, Int_t ismn, Int_t celltrack[][96],
35 Int_t cellpid[][96], Double_t celladc[][96],
36 TObjArray *pmdisocell, TObjArray *pmdcont);
562718f9 37 Int_t CrClust(Double_t ave, Double_t cutoff, Int_t nmx1,
38 Int_t iord1[], Double_t edepcell[]);
39 void RefClust(Int_t incr, Double_t edepcell[]);
3edbbba2 40 Double_t Distance(Double_t x1, Double_t y1,
41 Double_t x2, Double_t y2);
920e13db 42 void CalculateIsoCell(Int_t idet, Int_t ism,
43 Double_t celladc[][96], TObjArray *pmdisocell);
3edbbba2 44 void SetEdepCut(Float_t decut);
45
46 protected:
fd30f88e 47
562718f9 48 TObjArray *fPMDclucont; // carry cluster informations
fd30f88e 49
3edbbba2 50 static const Double_t fgkSqroot3by2; // fgkSqroot3by2 = sqrt(3.)/2.
01c4d84a 51
3edbbba2 52 enum {
fd30f88e 53 kNMX = 11424, // no. of cells in a module
54 kNDIMX = 119, // max no. of cells along x direction
55 kNDIMY = 96 // max no. of cells along axis at 60 deg with x axis
3edbbba2 56 };
3edbbba2 57
01c4d84a 58 //Variables for association
fd30f88e 59 Int_t fInfocl[2][kNDIMX][kNDIMY]; // cellwise information on the
60 // cluster to which the cell
01c4d84a 61 Int_t fInfcl[3][kNMX]; // cluster information [0][i]
62 // -- cluster number
3edbbba2 63 Double_t fCoord[2][kNDIMX][kNDIMY];
64
2c1131dd 65 Float_t fCutoff; // Energy(ADC) cutoff per cell before clustering
3edbbba2 66
920e13db 67 ClassDef(AliPMDClusteringV1,6) // Does clustering for PMD
3edbbba2 68};
69#endif