1 #ifndef AliAODCaloCluster_H
2 #define AliAODCaloCluster_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //-------------------------------------------------------------------------
9 // AOD calorimeter cluster class (for PHOS and EMCAL)
10 // Author: Markus Oldenburg, CERN,
11 // Gustavo Conesa, INFN
12 //-------------------------------------------------------------------------
14 #include "AliAODCluster.h"
16 #include <TRefArray.h>
19 class AliAODCaloCluster : public AliAODCluster {
24 AliAODCaloCluster(Int_t id,
33 AliAODCaloCluster(Int_t id,
42 virtual ~AliAODCaloCluster();
43 AliAODCaloCluster(const AliAODCaloCluster& clus);
44 AliAODCaloCluster& operator=(const AliAODCaloCluster& clus);
48 Double_t GetDistToBadChannel() const { return fDistToBadChannel; }
49 Double_t GetDispersion() const { return fDispersion; }
50 Double_t GetM20() const { return fM20; }
51 Double_t GetM01() const { return fM01; }
52 Double_t GetM02() const { return fM02; }
53 Double_t GetM11() const { return fM11; }
54 Double_t GetEmcCpvDistance() const { return fEmcCpvDistance; }
55 UShort_t GetNExMax() const { return fNExMax; }
57 Int_t GetNTracksMatched() const { return fTracksMatched.GetEntriesFast(); }
58 TObject *GetTrackMatched(Int_t i) const { return fTracksMatched.At(i); }
59 Int_t GetNCellNumbers() const { return fCellNumber.GetSize(); }
60 UShort_t GetCellNumber(Int_t i) const { return fCellNumber.At(i); }
63 void SetDistToBadChannel(Double_t dist) { fDistToBadChannel = dist; }
64 void SetDispersion(Double_t disp) { fDispersion = disp; }
65 void SetM20(Double_t m20) { fM20 = m20; }
66 void SetM01(Double_t m01) { fM01 = m01; }
67 void SetM02(Double_t m02) { fM02 = m02; }
68 void SetM11(Double_t m11) { fM11 = m11; }
69 void SetEmcCpvDistance(Double_t emcCpvDist) { fEmcCpvDistance = emcCpvDist; }
70 void SetNExMax(UShort_t nExMax) { fNExMax = nExMax; }
72 void SetCaloCluster(Double_t dist = -999.,
78 Double_t emcCpvDist = -999.,
81 fDistToBadChannel = dist;
87 fEmcCpvDistance = emcCpvDist;
91 void AddTrackMatched(TObject *trk) { fTracksMatched.Add(trk); }
92 void RemoveTrackMatched(TObject *trk) { fTracksMatched.Remove(trk); }
93 Bool_t HasTrackMatched(TObject *trk) const;
97 Double32_t fDistToBadChannel; // Distance to nearest bad channel
98 Double32_t fDispersion; // cluster dispersion, for shape analysis
99 Double32_t fM20; // 2-nd moment along the main eigen axis
101 Double32_t fM02; // 2-nd moment along the second eigen axis
102 Double32_t fM11; // 2-nd mixed moment Mxy
103 Double32_t fEmcCpvDistance; // the distance from PHOS EMC rec.point to the closest CPV rec.point
104 UShort_t fNExMax; // number of (Ex-)maxima before unfolding
106 TRefArray fTracksMatched; // references to tracks close to cluster. First entry is the most likely match.
107 TArrayS fCellNumber; // fired calorimeter cell numbers
109 ClassDef(AliAODCaloCluster,1);