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 | |
fc879520 |
28 | AliPHOS() ; |
29 | AliPHOS(const char* name, const char* title=""); |
839ffcb3 |
30 | AliPHOS(const AliPHOS & phos) { |
31 | // cpy ctor: no implementation yet |
32 | // requested by the Coding Convention |
33 | assert(0==1) ; |
34 | } |
d15a28e7 |
35 | virtual ~AliPHOS() ; |
0a6d52e3 |
36 | virtual void AddHit(Int_t, Int_t*, Float_t *) { |
37 | // do not used this definition but the one below |
38 | assert(0==1) ; |
39 | } |
88bdfa12 |
40 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ; |
9abb6731 |
41 | virtual void CreateMaterials() ; |
fc879520 |
42 | virtual AliPHOSRecPoint::RecPointsList ** EmcRecPoints() { |
7c67e406 |
43 | // Getting list of RecPoints |
fc879520 |
44 | return &fEmcRecPoints ; |
7c67e406 |
45 | } |
9abb6731 |
46 | virtual AliPHOSGeometry * GetGeometry() = 0 ; |
ed4205d8 |
47 | virtual void Hit2Digit(){} // Will convert hits to digits in versions v1 etc |
48 | |
9abb6731 |
49 | virtual Int_t IsVersion(void) const { return -1 ; } |
fc879520 |
50 | virtual AliPHOSRecPoint::RecPointsList ** PpsdRecPoints() { |
88bdfa12 |
51 | // to be redefined when ppsd is present |
fc879520 |
52 | return & fPpsdRecPoints ; |
88bdfa12 |
53 | } |
b73f246d |
54 | virtual AliPHOSRecPoint::RecPointsList ** CpvRecPoints() { |
55 | // to be redefined when cpv is present |
56 | return & fCpvRecPoints ; |
57 | } |
0a6d52e3 |
58 | virtual void SetTreeAddress(); |
fc879520 |
59 | virtual AliPHOSRecParticle::RecParticlesList ** RecParticles() { |
7c67e406 |
60 | // Getting list of RecParticles |
fc879520 |
61 | return & fRecParticles ; |
7c67e406 |
62 | } |
fc879520 |
63 | virtual AliPHOSTrackSegment::TrackSegmentsList ** TrackSegments() { |
7c67e406 |
64 | // Getting list of TrackSegments |
fc879520 |
65 | return & fTrackSegments ; |
7c67e406 |
66 | } |
67 | virtual TString Version() {return TString(" ") ; } |
839ffcb3 |
68 | |
69 | AliPHOS & operator = (const AliPHOS & rvalue) { |
70 | // assignement operator requested by coding convention |
71 | // but not needed |
72 | assert(0==1) ; |
73 | return *this ; |
74 | } |
75 | |
b73f246d |
76 | protected: |
83974468 |
77 | |
b73f246d |
78 | AliPHOSRecPoint::RecPointsList *fEmcRecPoints ; // The RecPoints (clusters) list in EMC |
79 | AliPHOSRecPoint::RecPointsList *fPpsdRecPoints ;// The RecPoints (clusters) list in PPSD (veto) |
80 | AliPHOSRecPoint::RecPointsList *fCpvRecPoints ; // The RecPoints (clusters) list in CPV (veto) |
81 | AliPHOSTrackSegment::TrackSegmentsList *fTrackSegments ;// The TrackSegment list in PHOS |
82 | AliPHOSRecParticle::RecParticlesList *fRecParticles ; // The reconstructed particles list in PHOS |
fe4da5cc |
83 | |
b2a60966 |
84 | ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class) |
fe4da5cc |
85 | |
d15a28e7 |
86 | } ; |
fe4da5cc |
87 | |
d15a28e7 |
88 | #endif // ALIPHOS_H |