new design: derived from TTask
[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
ed4205d8 10#include <assert.h>
11
d15a28e7 12// --- ROOT system ---
13
9f616d61 14#include "TMarker.h"
15#include "TGraph.h"
16#include "TPaveText.h"
17
d15a28e7 18// --- Standard library ---
19
d15a28e7 20// --- AliRoot header files ---
21
22#include "AliRecPoint.h"
83974468 23#include "AliPHOSDigit.h"
ed4205d8 24#include "AliPHOSGeometry.h"
25class AliPHOSGeometry;
83974468 26
d15a28e7 27class AliPHOSRecPoint : public AliRecPoint {
28
88714635 29 public:
7609878c 30
31 typedef TObjArray RecPointsList ;
d15a28e7 32
33 AliPHOSRecPoint() ; // ctor
6c370def 34 AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
35 // cpy ctor requested by Coding Convention
36 // but not yet needed
37 assert(0==1) ;
38 }
39
88714635 40 virtual ~AliPHOSRecPoint(){
41 // dtor
42 }
0a6d52e3 43 virtual void AddDigit(AliDigitNew &){
44 // do not use this definition but the one below
45 assert(0==1) ;
46 }
83974468 47 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ;
ad8cfaf4 48 virtual Int_t Compare(const TObject * obj) const {assert(0==1) ; return 1 ; }
cf239357 49 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
50 virtual void Draw(Option_t * option="") ;
51 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
ad8cfaf4 52 virtual void EvalAll(void) ;
53 virtual void EvalPHOSMod(void) ;
54 virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; }
55 virtual Int_t * GetPrimaries(Int_t & number) const ;
56 virtual Bool_t IsEmc(void)const { return kTRUE ; }
88714635 57 virtual Bool_t IsSortable() const {
58 // tells that this is a sortable object
59 return kTRUE ;
60 }
15605d3c 61 virtual void Paint(Option_t * option="");
88714635 62 virtual void Print(Option_t * opt = "void") {
63 // Print prototype
64 }
d15a28e7 65
2f04ed65 66 AliPHOSRecPoint & operator = (const AliPHOSRecPoint & ) {
6c370def 67 // assignement operator requested by coding convention
68 // but not needed
69 assert(0==1) ;
70 return *this ;
71 }
72
ed4205d8 73protected:
9f616d61 74
83974468 75 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
ed4205d8 76
b2a60966 77 ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
d15a28e7 78
79};
80
81#endif // AliPHOSRECPOINT_H