]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOS.h
672293d3194216ee5d466222703d9c52829ac419
[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   AliPHOS(const char* name, const char* title="");
30   AliPHOS(const AliPHOS & phos) {
31     // cpy ctor: no implementation yet
32     // requested by the Coding Convention
33     assert(0==1) ; 
34   }
35   virtual ~AliPHOS() ; 
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   }
40   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;   
41   virtual void   CreateMaterials() ;                     
42   virtual  AliPHOSRecPoint::RecPointsList **  EmcRecPoints() {
43     // Getting list of RecPoints
44     return &fEmcRecPoints ;
45   }
46   virtual  AliPHOSGeometry * GetGeometry() = 0 ;
47   virtual Int_t   IsVersion(void) const { return -1 ; } 
48   virtual  AliPHOSRecPoint::RecPointsList ** PpsdRecPoints() {
49     // to be redefined when ppsd is present
50     return & fPpsdRecPoints ;
51   } 
52   virtual void  SetTreeAddress();                
53   virtual  AliPHOSRecParticle::RecParticlesList **  RecParticles() {
54     // Getting list of RecParticles
55     return & fRecParticles ;
56   }
57   virtual  AliPHOSTrackSegment::TrackSegmentsList **  TrackSegments() {
58     // Getting list of TrackSegments
59     return & fTrackSegments ;
60   }
61   virtual TString Version() {return TString(" ") ; } 
62  
63   AliPHOS & operator = (const AliPHOS & rvalue)  {
64     // assignement operator requested by coding convention
65     // but not needed
66     assert(0==1) ;
67     return *this ; 
68   }
69   void SetDebugLevel(Int_t deb) {fDebugLevel = deb;}
70  
71  protected:
72   
73   AliPHOSRecPoint::RecPointsList * fEmcRecPoints ;         // The RecPoints (clusters) list in EMC 
74   AliPHOSRecPoint::RecPointsList * fPpsdRecPoints ;        // The RecPoints (clusters) list in PPSD (veto)
75   AliPHOSTrackSegment::TrackSegmentsList * fTrackSegments ;// The TrackSegment list in PHOS
76   AliPHOSRecParticle::RecParticlesList * fRecParticles ;   // The reconstructed particles list in PHOS
77   Int_t  fDebugLevel ;                                     // Debug level
78
79
80   ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
81
82 } ;
83
84 #endif // ALIPHOS_H