X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAliPHOSRecPoint.h;h=d473a1bfce890271fe7ff76b8548ee6355678b55;hp=d8fb01fe8f02dc22a9d316065070190b210b58e0;hb=c307c6292ba899fcb5734b565a4f3643506f497c;hpb=73a68ccb741814fc465cacbfb03fe1bb54de629e diff --git a/PHOS/AliPHOSRecPoint.h b/PHOS/AliPHOSRecPoint.h index d8fb01fe8f0..d473a1bfce8 100644 --- a/PHOS/AliPHOSRecPoint.h +++ b/PHOS/AliPHOSRecPoint.h @@ -7,22 +7,18 @@ // A recpoint being equivalent to a cluster in encal terminology //*-- Author: Gines Martinez (SUBATECH) -#include - // --- ROOT system --- - -#include "TMarker.h" -#include "TGraph.h" -#include "TPaveText.h" - -// --- Standard library --- +#include // --- AliRoot header files --- +#include "AliCluster.h" -#include "AliRecPoint.h" -#include "AliPHOSDigit.h" +class TClonesArray ; +class AliPHOSDigit ; +class AliDigitNew; +class TMAtrixF; -class AliPHOSRecPoint : public AliRecPoint { +class AliPHOSRecPoint : public AliCluster { public: @@ -30,52 +26,60 @@ class AliPHOSRecPoint : public AliRecPoint { AliPHOSRecPoint() ; // ctor AliPHOSRecPoint(const char * opt) ; // ctor - AliPHOSRecPoint(const AliPHOSRecPoint & rp) { - // cpy ctor requested by Coding Convention - // but not yet needed - assert(0==1) ; - } + + AliPHOSRecPoint(const AliPHOSRecPoint &rp); + AliPHOSRecPoint& operator= (const AliPHOSRecPoint &rp); + - virtual ~AliPHOSRecPoint(){ - // dtor - } + virtual ~AliPHOSRecPoint(); + virtual void AddDigit(AliDigitNew &){ - // do not use this definition but the one below - assert(0==1) ; + Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; } virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; virtual Int_t Compare(const TObject * obj) const = 0 ; virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); virtual void Draw(Option_t * option="") ; virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; - virtual void EvalAll(Float_t logWeight,TClonesArray * digits) ; + void EvalAll(TClonesArray * digits) ; + void EvalLocal2TrackingCSTransform(); virtual void EvalPHOSMod(AliPHOSDigit * digit) ; - virtual void EvalPrimaries(TClonesArray * digits) ; - virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE + virtual int * GetDigitsList(void) const { return fDigitsList ; } + virtual Float_t GetEnergy() const {return fAmp; } + virtual void GetLocalPosition(TVector3 & pos) const ; + virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; } virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; return fTracksList ; } + virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; } + Int_t GetIndexInList() const { return fIndexInList ; } virtual Bool_t IsEmc(void)const { return kTRUE ; } virtual Bool_t IsSortable() const { // tells that this is a sortable object return kTRUE ; } + void SetIndexInList(Int_t val) { fIndexInList = val ; } virtual void Paint(Option_t * option=""); - virtual void Print(Option_t * opt = "void") const { + virtual void Print(Option_t *) const { // Print prototype } - AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) { - // assignement operator requested by coding convention but not needed - assert(0==1) ; - return *this ; - } - protected: - Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found - - ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class) + Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found + Int_t fMulTrack ; // total multiplicity of tracks to which the point was assigned + Int_t fMaxDigit ; //! max initial size of digits array (not saved) + Int_t fMulDigit ; // total multiplicity of digits + Int_t fMaxTrack ; //! max initial size of tracks array (not saved) + Int_t* fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed + Int_t* fTracksList ; //[fMulTrack] list of tracks to which the point was assigned + Float_t fAmp ; // summed amplitude of digits + Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis) + TVector3 fLocPos ; // local position in the sub-detector coordinate + TMatrixF* fLocPosM ; // covariance matrix ; + + + ClassDef(AliPHOSRecPoint,2) // RecPoint for PHOS (Base Class) };