]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
11c4db52 | 4 | #ifndef ALIHLTPHOSMIPCLUSTERMANAGER_H |
5 | #define ALIHLTPHOSMIPCLUSTERMANAGER_H | |
6 | ||
7 | /************************************************************************** | |
8 | * This file is property of and copyright by the Experimental Nuclear * | |
9 | * Physics Group, Dep. of Physics * | |
10 | * University of Oslo, Norway, 2007 * | |
11 | * * | |
12 | * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.* | |
13 | * Contributors are mentioned in the code where appropriate. * | |
14 | * Please report bugs to perthi@fys.uio.no * | |
15 | * * | |
16 | * Permission to use, copy, modify and distribute this software and its * | |
17 | * documentation strictly for non-commercial purposes is hereby granted * | |
18 | * without fee, provided that the above copyright notice appears in all * | |
19 | * copies and that both the copyright notice and this permission notice * | |
20 | * appear in the supporting documentation. The authors make no claims * | |
21 | * about the suitability of this software for any purpose. It is * | |
22 | * provided "as is" without express or implied warranty. * | |
23 | **************************************************************************/ | |
24 | #include "AliHLTPHOSConstants.h" | |
25 | #include "Rtypes.h" | |
26 | ||
27 | using namespace PhosHLTConst; | |
28 | ||
29 | #define maxMipsCandidates 5000 | |
30 | #define Z_CENTER_RANGE 2 //center +/-2 (=5) | |
31 | #define X_CENTER_RANGE 2 //center +/-2 (=5) | |
32 | ||
33 | ||
34 | class AliHLTPHOSMipCluster; | |
35 | class AliHLTPHOSDigit; | |
36 | ||
37 | class AliHLTPHOSMipClusterManager | |
38 | { | |
39 | public: | |
40 | AliHLTPHOSMipClusterManager(); | |
41 | virtual ~AliHLTPHOSMipClusterManager(); | |
42 | ||
43 | void AddDigit(AliHLTPHOSDigit *digit); | |
44 | void PrintDigitInfo(AliHLTPHOSDigit *digit); | |
45 | void PrintClusters(int minEntries = 0); | |
46 | void ResetMipManager(); | |
47 | AliHLTPHOSMipCluster* GetCluster(int z, int x); | |
48 | ||
49 | ||
50 | private: | |
51 | void ResetClusterFarm(); | |
52 | void AddToMipTable(AliHLTPHOSDigit *digit); | |
53 | bool IsMipCandidate(AliHLTPHOSDigit *digit); | |
54 | AliHLTPHOSMipCluster* MoveCluster(int zFrom, int xFrom, int zTo, int xTo ); | |
55 | void NewMipTableEntry(AliHLTPHOSDigit *digit, int z, int x); | |
56 | AliHLTPHOSMipCluster* GetNeighbour(int zRange, int xRange, int zIn, int xIn); | |
57 | // AliHLTPHOSMipCluster *fMipClusterFarm[maxMipsCandidates]; | |
58 | AliHLTPHOSMipCluster *fMipClusterTable[N_ZROWS_MOD][N_XCOLUMNS_MOD]; | |
59 | AliHLTPHOSMipCluster *fMipClusterFarm[N_ZROWS_MOD][N_XCOLUMNS_MOD]; | |
60 | int fMipCnt; | |
61 | ||
62 | bool fIsMoreClusters; | |
63 | ||
64 | ||
65 | ||
66 | }; | |
67 | ||
68 | #endif | |
69 |