]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOS.h
b9e4dfb8055ab927a2f5b46ef5de2d28e16c3b3a
[u/mrichter/AliRoot.git] / PHOS / AliPHOS.h
1 #ifndef ALIPHOS_H
2 #define ALIPHOS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  Base Class for PHOS     
10 //                  
11 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
12
13 // --- ROOT system ---
14 #include "TString.h"
15
16 // --- AliRoot header files ---
17
18 #include "AliDetector.h"
19 #include "AliPHOSGeometry.h" 
20 #include "AliRecPoint.h"
21 #include "AliPHOSTrackSegment.h"
22 #include "AliPHOSRecParticle.h"
23
24 class AliPHOS : public AliDetector {
25
26  public:
27
28   AliPHOS() {
29     // ctor  
30     fEmcRecPoints=0;
31     fTrackSegments=0;
32     fRecParticles=0;
33   } 
34   AliPHOS(const char* name, const char* title=""): AliDetector(name,title) {
35     // ctor  
36   } 
37   AliPHOS(const AliPHOS & phos) {
38     // cpy ctor: no implementation yet
39     // requested by the Coding Convention
40     assert(0==1) ; 
41   }
42   virtual ~AliPHOS() ; 
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   }
47   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;   
48   virtual  void  CreateMaterials() ;                     
49   virtual  AliPHOSRecPoint::RecPointsList *  EmcRecPoints() {
50     // Getting list of RecPoints
51     return fEmcRecPoints ;
52   }
53   virtual  AliPHOSGeometry * GetGeometry() = 0 ;  
54   virtual  AliPHOSRecPoint::RecPointsList * PpsdRecPoints() {
55     // to be redefined when ppsd is present
56     return 0 ;
57   } 
58   virtual void  SetTreeAddress();                
59   virtual  AliPHOSRecParticle::RecParticlesList *  RecParticles() {
60     // Getting list of RecParticles
61     return fRecParticles ;
62   }
63   virtual  AliPHOSTrackSegment::TrackSegmentsList *  TrackSegments() {
64     // Getting list of TrackSegments
65     return fTrackSegments ;
66   }
67   virtual TString Version() {return TString(" ") ; } 
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  
76  protected:
77   
78   AliPHOSRecPoint::RecPointsList * fEmcRecPoints ;         // The RecPoints (clusters) list in EMC 
79   AliPHOSTrackSegment::TrackSegmentsList * fTrackSegments ;// The TrackSegment list in PHOS
80   AliPHOSRecParticle::RecParticlesList * fRecParticles ;   // The reconstructed particles list in PHOS
81
82
83   ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
84
85 } ;
86
87 #endif // ALIPHOS_H