]>
Commit | Line | Data |
---|---|---|
1 | /************************************************************************** | |
2 | * This file is property of and copyright by the ALICE HLT Project * | |
3 | * All rights reserved. * | |
4 | * * | |
5 | * Primary Authors: Oystein Djuvsland * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | #ifndef ALIHLTPHOSCLUSTERIZER_H | |
17 | #define ALIHLTPHOSCLUSTERIZER_H | |
18 | ||
19 | #include "AliHLTPHOSBase.h" | |
20 | #include "AliPHOSGetter.h" | |
21 | ||
22 | #include "AliHLTPHOSRecPointContainerStruct.h" | |
23 | #include "AliHLTPHOSRecPointDataStruct.h" | |
24 | #include "AliHLTPHOSDigitContainerDataStruct.h" | |
25 | #include "AliHLTPHOSDigitDataStruct.h" | |
26 | ||
27 | #include "AliPHOSGeometry.h" | |
28 | ||
29 | class TClonesArray; | |
30 | class AliPHOSDigit; | |
31 | class AliPHOSRecoParamEmc; | |
32 | ||
33 | class AliHLTPHOSClusterizer : public AliHLTPHOSBase | |
34 | { | |
35 | ||
36 | public: | |
37 | ||
38 | AliHLTPHOSClusterizer(); | |
39 | ||
40 | virtual ~AliHLTPHOSClusterizer(); | |
41 | ||
42 | AliHLTPHOSClusterizer(const AliHLTPHOSClusterizer &); | |
43 | AliHLTPHOSClusterizer & operator = (const AliHLTPHOSClusterizer &) {return *this;} | |
44 | ||
45 | void SetRecPointContainer(AliHLTPHOSRecPointContainerStruct *RecPointContainerPtr) | |
46 | { fRecPointContainerPtr = RecPointContainerPtr; } | |
47 | ||
48 | void SetRecoParameters(AliPHOSRecoParamEmc* recoPars); | |
49 | ||
50 | void SetEmcClusteringThreshold(Float_t threshold) { fEmcClusteringThreshold = threshold; } | |
51 | void SetEmcMinEnergyThreshold(Float_t threshold) { fEmcMinEnergyThreshold = threshold; } | |
52 | void SetEmcTimeGate(Float_t gate) { fEmcTimeGate = gate; } | |
53 | void SetLogWeight(Float_t weight) { fLogWeight = weight; } | |
54 | ||
55 | void SetOfflineMode(AliPHOSGetter* getter); | |
56 | ||
57 | virtual Int_t ClusterizeEvent(); | |
58 | virtual Int_t GetEvent(Int_t evtNr); | |
59 | ||
60 | Int_t GetNEvents(); | |
61 | ||
62 | virtual void ScanForNeighbourDigits(Int_t digIndex, AliHLTPHOSRecPointDataStruct* recPoint); | |
63 | virtual Int_t AreNeighbours(AliHLTPHOSDigitDataStruct* d1, AliHLTPHOSDigitDataStruct* d2); | |
64 | virtual void CalculateCenterOfGravity(); | |
65 | ||
66 | private: | |
67 | ||
68 | Float_t fEmcClusteringThreshold; //comment | |
69 | Float_t fEmcMinEnergyThreshold; //comment | |
70 | Float_t fEmcTimeGate; //comment | |
71 | Float_t fLogWeight; //comment | |
72 | Int_t fDigitsInCluster; //comment | |
73 | ||
74 | Bool_t fOnlineMode; //comment | |
75 | ||
76 | TClonesArray *fDigitArrayPtr; //comment | |
77 | TObjArray *fEmcRecPointsPtr; //comment | |
78 | AliPHOSDigit *fDigitPtr; //comment | |
79 | ||
80 | AliHLTPHOSDigitContainerDataStruct *fDigitContainerPtr; //comment | |
81 | AliHLTPHOSRecPointContainerStruct *fRecPointContainerPtr; //comment | |
82 | AliPHOSGeometry *fPHOSGeometry; //comment | |
83 | ||
84 | AliPHOSGetter *fGetterPtr; //comment | |
85 | ||
86 | ClassDef(AliHLTPHOSClusterizer, 1); | |
87 | }; | |
88 | ||
89 | #endif |