]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOS.h
bd92cb58fa7d87abe74070930d93c90c1c9e986a
[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 /* $Id$ */
6
7 //_________________________________________________________________________
8 //  Base Class for PHOS     
9 //                  
10 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
11
12 #include <stdlib.h>
13
14 // --- ROOT system ---
15
16 class TString ; 
17 class TTask ;
18
19 // --- AliRoot header files ---
20
21 #include "AliDetector.h" 
22 class AliPHOSGeometry ; 
23 class AliPHOSQAChecker ;
24
25 class AliPHOS : public AliDetector {
26
27  public:
28
29   AliPHOS() ;
30   AliPHOS(const char* name, const char* title="") ;  
31   AliPHOS(const AliPHOS & phos) {
32     // cpy ctor: no implementation yet
33     // requested by the Coding Convention
34     abort() ; 
35   }
36   virtual ~AliPHOS() ; 
37   virtual void   AddHit(Int_t, Int_t*, Float_t *) {
38     // do not use this definition but the one below
39     abort() ; 
40   }
41   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;   
42   virtual void   CreateMaterials() ;                     
43   void CreatePHOSFolders();
44   virtual  AliPHOSGeometry * GetGeometry() const = 0 ;
45   Int_t   IsVersion(void) const { return -1 ; } 
46   AliPHOSQAChecker * QAChecker() {return fQATask;}  
47   virtual void    SetTreeAddress();                
48   virtual TString Version() {return TString(" ") ; } 
49  
50   AliPHOS & operator = (const AliPHOS & rvalue)  {
51     // assignement operator requested by coding convention
52     // but not needed
53     abort() ;
54     return *this ; 
55   }
56  
57 protected:
58   
59   AliPHOSQAChecker * fQATask ; // PHOS checkers container
60   TTask * fSDTask ; // PHOS (S)Digitizer container
61   TTask * fReTask ; // PHOS Reconstructioner container
62
63   ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
64
65 } ;
66
67 #endif // ALIPHOS_H