d15a28e7 |
1 | #ifndef ALIPHOS_H |
2 | #define ALIPHOS_H |
3da30618 |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
6ad0bfa0 |
4 | * See cxx source for full Copyright notice */ |
5 | |
6 | /* $Id$ */ |
3da30618 |
7 | |
b2a60966 |
8 | //_________________________________________________________________________ |
9 | // Base Class for PHOS |
10 | // |
11 | //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH) |
fe4da5cc |
12 | |
d15a28e7 |
13 | // --- ROOT system --- |
0c409cb2 |
14 | #include "TString.h" |
fe4da5cc |
15 | |
d15a28e7 |
16 | // --- AliRoot header files --- |
fe4da5cc |
17 | |
d15a28e7 |
18 | #include "AliDetector.h" |
19 | #include "AliPHOSGeometry.h" |
83974468 |
20 | #include "AliRecPoint.h" |
21 | #include "AliPHOSTrackSegment.h" |
22 | #include "AliPHOSRecParticle.h" |
fe4da5cc |
23 | |
24 | class AliPHOS : public AliDetector { |
25 | |
26 | public: |
27 | |
f78d91b7 |
28 | AliPHOS() { |
29 | // ctor |
bb05128a |
30 | fEmcRecPoints=0; |
31 | fTrackSegments=0; |
32 | fRecParticles=0; |
f78d91b7 |
33 | } |
34 | AliPHOS(const char* name, const char* title=""): AliDetector(name,title) { |
88bdfa12 |
35 | // ctor |
88714635 |
36 | } |
839ffcb3 |
37 | AliPHOS(const AliPHOS & phos) { |
38 | // cpy ctor: no implementation yet |
39 | // requested by the Coding Convention |
40 | assert(0==1) ; |
41 | } |
d15a28e7 |
42 | virtual ~AliPHOS() ; |
0a6d52e3 |
43 | virtual void AddHit(Int_t, Int_t*, Float_t *) { |
44 | // do not used this definition but the one below |
45 | assert(0==1) ; |
46 | } |
88bdfa12 |
47 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ; |
9abb6731 |
48 | virtual void CreateMaterials() ; |
2ea4f4fc |
49 | virtual AliPHOSRecPoint::RecPointsList * EmcRecPoints() { |
7c67e406 |
50 | // Getting list of RecPoints |
51 | return fEmcRecPoints ; |
52 | } |
9abb6731 |
53 | virtual AliPHOSGeometry * GetGeometry() = 0 ; |
54 | virtual Int_t IsVersion(void) const { return -1 ; } |
88bdfa12 |
55 | virtual AliPHOSRecPoint::RecPointsList * PpsdRecPoints() { |
56 | // to be redefined when ppsd is present |
57 | return 0 ; |
58 | } |
0a6d52e3 |
59 | virtual void SetTreeAddress(); |
2ea4f4fc |
60 | virtual AliPHOSRecParticle::RecParticlesList * RecParticles() { |
7c67e406 |
61 | // Getting list of RecParticles |
62 | return fRecParticles ; |
63 | } |
2ea4f4fc |
64 | virtual AliPHOSTrackSegment::TrackSegmentsList * TrackSegments() { |
7c67e406 |
65 | // Getting list of TrackSegments |
66 | return fTrackSegments ; |
67 | } |
68 | virtual TString Version() {return TString(" ") ; } |
839ffcb3 |
69 | |
70 | AliPHOS & operator = (const AliPHOS & rvalue) { |
71 | // assignement operator requested by coding convention |
72 | // but not needed |
73 | assert(0==1) ; |
74 | return *this ; |
75 | } |
76 | |
83974468 |
77 | protected: |
78 | |
88714635 |
79 | AliPHOSRecPoint::RecPointsList * fEmcRecPoints ; // The RecPoints (clusters) list in EMC |
80 | AliPHOSTrackSegment::TrackSegmentsList * fTrackSegments ;// The TrackSegment list in PHOS |
81 | AliPHOSRecParticle::RecParticlesList * fRecParticles ; // The reconstructed particles list in PHOS |
83974468 |
82 | |
fe4da5cc |
83 | |
b2a60966 |
84 | ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class) |
fe4da5cc |
85 | |
d15a28e7 |
86 | } ; |
fe4da5cc |
87 | |
d15a28e7 |
88 | #endif // ALIPHOS_H |