X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSRecPoint.h;h=c6427c4a71f9190fb957c600bf845c19d17a2c4d;hb=1d13ffb1d18359e4149199077beda02950c2c922;hp=cd9e45a4fc8469ce0b875791aec0c4f019afdc14;hpb=c0d5b57d6775a5e180c6b91a615be8c90904f182;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSRecPoint.h b/PHOS/AliPHOSRecPoint.h index cd9e45a4fc8..c6427c4a71f 100644 --- a/PHOS/AliPHOSRecPoint.h +++ b/PHOS/AliPHOSRecPoint.h @@ -2,77 +2,70 @@ #define ALIPHOSRECPOINT_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ - //_________________________________________________________________________ // Base Class for PHOS Reconstructed Points -// +// A recpoint being equivalent to a cluster in encal terminology //*-- Author: Gines Martinez (SUBATECH) // --- ROOT system --- -#include "TMarker.h" -#include "TGraph.h" -#include "TPaveText.h" - +//#include "TMarker.h" +//#include "TGraph.h" +//#include "TPaveText.h" + class TClonesArray ; // --- Standard library --- // --- AliRoot header files --- #include "AliRecPoint.h" -#include "AliPHOSDigit.h" +class AliPHOSDigit ; class AliPHOSRecPoint : public AliRecPoint { public: + + typedef TObjArray RecPointsList ; AliPHOSRecPoint() ; // ctor - AliPHOSRecPoint(const AliPHOSRecPoint & rp) { - // cpy ctor requested by Coding Convention - // but not yet needed - assert(0==1) ; - } + AliPHOSRecPoint(const char * opt) ; // ctor + AliPHOSRecPoint(const AliPHOSRecPoint & rp) : AliRecPoint(rp) { + Fatal("Cpy ctor", "not implemented") ; } virtual ~AliPHOSRecPoint(){ // dtor } + virtual void AddDigit(AliDigitNew &){ + Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; + } virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; - virtual Int_t Compare(TObject * obj) { - // check why this is done - assert(0==1) ; return 1 ; - } + 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 Int_t GetPHOSMod(void) ; - virtual Int_t * GetPrimaries(Int_t & number) ; - virtual Bool_t IsEmc(void){ - // says that this is a EMC - return kTRUE ; - } + void EvalAll(TClonesArray * digits) ; + 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_t GetPHOSMod(void) const {return fPHOSMod ; } + virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; + return fTracksList ; } + virtual Bool_t IsEmc(void)const { return kTRUE ; } virtual Bool_t IsSortable() const { // tells that this is a sortable object return kTRUE ; } virtual void Paint(Option_t * option=""); - virtual void Print(Option_t * opt = "void") { + virtual void Print(Option_t *) const { // Print prototype } - AliPHOSRecPoint & operator = (const AliPHOSRecPoint & rvalue) { - // assignement operator requested by coding convention - // but not needed - assert(0==1) ; - return *this ; + AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) { + Fatal("operator = ", "not implemented") ; return *this ; } - - protected: +protected: Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found - - private: - typedef TObjArray RecPointsList ; - ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class) };