Adding histos
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
CommitLineData
d15a28e7 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 */
b2a60966 5//_________________________________________________________________________
6// Base Class for PHOS Reconstructed Points
2f04ed65 7// A recpoint being equivalent to a cluster in encal terminology
b2a60966 8//*-- Author: Gines Martinez (SUBATECH)
d15a28e7 9
10// --- ROOT system ---
9ee9f78d 11#include <TVector3.h>
d15a28e7 12
d15a28e7 13// --- AliRoot header files ---
9ee9f78d 14#include "AliCluster.h"
d15a28e7 15
9ee9f78d 16class TClonesArray ;
17class AliPHOSDigit ;
18class AliDigitNew;
19class TMAtrixF;
83974468 20
9ee9f78d 21class AliPHOSRecPoint : public AliCluster {
d15a28e7 22
88714635 23 public:
7609878c 24
25 typedef TObjArray RecPointsList ;
d15a28e7 26
27 AliPHOSRecPoint() ; // ctor
73a68ccb 28 AliPHOSRecPoint(const char * opt) ; // ctor
9ee9f78d 29
30 AliPHOSRecPoint(const AliPHOSRecPoint &rp);
31 AliPHOSRecPoint& operator= (const AliPHOSRecPoint &rp);
32
6c370def 33
9ee9f78d 34 virtual ~AliPHOSRecPoint();
35
771123c7 36 virtual void Clear(const Option_t* /*option*/ ="") { delete[] fDigitsList; fDigitsList=0; delete[] fTracksList; fTracksList=0; }
37
6f47f50d 38// virtual void AddDigit(AliDigitNew &){
39// Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ;
40// }
41 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy, Float_t time=0) = 0 ;
2731cd1e 42 virtual Int_t Compare(const TObject * obj) const = 0 ;
cf239357 43 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
44 virtual void Draw(Option_t * option="") ;
88cb7938 45 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
e347da7b 46 virtual void EvalAll(TClonesArray * digits) ;
b48eb81e 47 void EvalLocal2TrackingCSTransform();
2731cd1e 48 virtual void EvalPHOSMod(AliPHOSDigit * digit) ;
9ee9f78d 49 virtual int * GetDigitsList(void) const { return fDigitsList ; }
50 virtual Float_t GetEnergy() const {return fAmp; }
51 virtual void GetLocalPosition(TVector3 & pos) const ;
e8d02863 52 virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE
ad8cfaf4 53 virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; }
2731cd1e 54 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
55 return fTracksList ; }
9ee9f78d 56 virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
57 Int_t GetIndexInList() const { return fIndexInList ; }
ad8cfaf4 58 virtual Bool_t IsEmc(void)const { return kTRUE ; }
88714635 59 virtual Bool_t IsSortable() const {
60 // tells that this is a sortable object
61 return kTRUE ;
62 }
9ee9f78d 63 void SetIndexInList(Int_t val) { fIndexInList = val ; }
15605d3c 64 virtual void Paint(Option_t * option="");
a8c47ab6 65 virtual void Print(Option_t *) const {
88714635 66 // Print prototype
67 }
d15a28e7 68
ed4205d8 69protected:
9f616d61 70
9ee9f78d 71 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
72 Int_t fMulTrack ; // total multiplicity of tracks to which the point was assigned
73 Int_t fMaxDigit ; //! max initial size of digits array (not saved)
74 Int_t fMulDigit ; // total multiplicity of digits
75 Int_t fMaxTrack ; //! max initial size of tracks array (not saved)
76 Int_t* fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed
77 Int_t* fTracksList ; //[fMulTrack] list of tracks to which the point was assigned
78 Float_t fAmp ; // summed amplitude of digits
79 Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)
80 TVector3 fLocPos ; // local position in the sub-detector coordinate
9ee9f78d 81
82
b7575333 83 ClassDef(AliPHOSRecPoint,3) // RecPoint for PHOS (Base Class)
d15a28e7 84
85};
86
87#endif // AliPHOSRECPOINT_H