]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSRecPoint.h
Corrected copy constructor and assignment operator, fixed memory leaks (Christian)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
... / ...
CommitLineData
1#ifndef ALIPHOSRECPOINT_H
2#define ALIPHOSRECPOINT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//_________________________________________________________________________
6// Base Class for PHOS Reconstructed Points
7// A recpoint being equivalent to a cluster in encal terminology
8//*-- Author: Gines Martinez (SUBATECH)
9
10// --- ROOT system ---
11#include <TVector3.h>
12
13// --- AliRoot header files ---
14#include "AliCluster.h"
15
16class TClonesArray ;
17class AliPHOSDigit ;
18class AliDigitNew;
19class TMAtrixF;
20
21class AliPHOSRecPoint : public AliCluster {
22
23 public:
24
25 typedef TObjArray RecPointsList ;
26
27 AliPHOSRecPoint() ; // ctor
28 AliPHOSRecPoint(const char * opt) ; // ctor
29
30 AliPHOSRecPoint(const AliPHOSRecPoint &rp);
31 AliPHOSRecPoint& operator= (const AliPHOSRecPoint &rp);
32
33
34 virtual ~AliPHOSRecPoint();
35
36 virtual void AddDigit(AliDigitNew &){
37 Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ;
38 }
39 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ;
40 virtual Int_t Compare(const TObject * obj) const = 0 ;
41 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
42 virtual void Draw(Option_t * option="") ;
43 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
44 void EvalAll(TClonesArray * digits) ;
45 void EvalLocal2TrackingCSTransform();
46 virtual void EvalPHOSMod(AliPHOSDigit * digit) ;
47 virtual void EvalPrimaries(TClonesArray * digits) ;
48 virtual int * GetDigitsList(void) const { return fDigitsList ; }
49 virtual Float_t GetEnergy() const {return fAmp; }
50 virtual void GetLocalPosition(TVector3 & pos) const ;
51 virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE
52 virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; }
53 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
54 return fTracksList ; }
55 virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
56 Int_t GetIndexInList() const { return fIndexInList ; }
57 virtual Bool_t IsEmc(void)const { return kTRUE ; }
58 virtual Bool_t IsSortable() const {
59 // tells that this is a sortable object
60 return kTRUE ;
61 }
62 void SetIndexInList(Int_t val) { fIndexInList = val ; }
63 virtual void Paint(Option_t * option="");
64 virtual void Print(Option_t *) const {
65 // Print prototype
66 }
67
68protected:
69
70 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
71 Int_t fMulTrack ; // total multiplicity of tracks to which the point was assigned
72 Int_t fMaxDigit ; //! max initial size of digits array (not saved)
73 Int_t fMulDigit ; // total multiplicity of digits
74 Int_t fMaxTrack ; //! max initial size of tracks array (not saved)
75 Int_t* fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed
76 Int_t* fTracksList ; //[fMulTrack] list of tracks to which the point was assigned
77 Float_t fAmp ; // summed amplitude of digits
78 Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)
79 TVector3 fLocPos ; // local position in the sub-detector coordinate
80 TMatrixF* fLocPosM ; // covariance matrix ;
81
82
83 ClassDef(AliPHOSRecPoint,2) // RecPoint for PHOS (Base Class)
84
85};
86
87#endif // AliPHOSRECPOINT_H