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