]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOS.h
coding convention
[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
13 // --- ROOT system ---
14 class TString ; 
15 class TTask ;
16 class TFolder ;
17 class TTree ; 
18
19 // --- AliRoot header files ---
20 #include "AliDetector.h" 
21 class AliPHOSGeometry ; 
22 class AliPHOSQAChecker ;
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) : AliDetector(phos) {
31     // cpy ctor: no implementation yet
32     // requested by the Coding Convention
33     Fatal("cpy ctor", "not implemented") ;
34   }
35   virtual ~AliPHOS() ; 
36   virtual void   AddHit(Int_t, Int_t*, Float_t *) {
37     // do not use this definition but the one below
38     Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
39     
40   }
41   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, 
42                          Int_t id, Float_t *hits ) = 0 ;   
43   virtual void   CreateMaterials() ;                     
44   virtual void  FinishRun() {WriteQA();}
45   virtual AliPHOSGeometry * GetGeometry() const ;
46   virtual Int_t   IsVersion(void) const = 0 ;  
47   AliPHOSQAChecker * QAChecker() {return fQATask;}  
48   virtual void    SetTreeAddress();   
49   virtual TTree * TreeQA() const {return fTreeQA; } 
50   virtual const TString Version() const {return TString(" ") ; } 
51   virtual void WriteQA() ; 
52   AliPHOS & operator = (const AliPHOS & /*rvalue*/)  {
53     Fatal("operator =", "not implemented") ; return *this ; }
54
55   virtual AliLoader* MakeLoader(const char* topfoldername);
56  
57 protected:
58   
59   AliPHOSQAChecker * fQATask ; //! PHOS checkers container
60   TTree * fTreeQA ;            // the QA tree that contains the alarms
61
62   ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
63
64 } ;
65
66 #endif // ALIPHOS_H