]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOS.h
Comments are added
[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 /* History of cvs commits:
8  *
9  * $Log$
10  * Revision 1.71  2007/02/05 10:43:25  hristov
11  * Changes for correct initialization of Geant4 (Mihaela)
12  *
13  * Revision 1.70  2007/01/17 17:28:56  kharlov
14  * Extract ALTRO sample generation to a separate class AliPHOSPulseGenerator
15  *
16  * Revision 1.69  2006/11/14 17:11:15  hristov
17  * Removing inheritances from TAttLine, TAttMarker and AliRndm in AliModule. The copy constructor and assignment operators are moved to the private part of the class and not implemented. The corresponding changes are propagated to the detectors
18  *
19  * Revision 1.68  2006/08/11 12:36:25  cvetan
20  * Update of the PHOS code needed in order to read and reconstruct the beam test raw data (i.e. without an existing galice.root)
21  *
22  * Revision 1.67  2006/04/07 08:42:00  hristov
23  * Follow AliAlignObj framework and remove AliPHOSAlignData (Yu.Kharlov)
24  *
25  * Revision 1.66  2006/03/24 21:39:33  schutz
26  * Modification needed to include PHOS in the global trigger framework
27  *
28  * Revision 1.65  2006/03/07 18:56:25  kharlov
29  * CDB is passed via environment variable
30  *
31  * Revision 1.64  2005/11/03 13:09:19  hristov
32  * Removing meaningless const declarations (linuxicc)
33  *
34  * Revision 1.63  2005/07/26 13:32:39  kharlov
35  * Restoring raw data fit from version of 29-Aug-2004
36  *
37  * Revision 1.62  2005/07/06 10:10:32  hristov
38  * Moving the functions used to initialize TF1 and TF2 to the pivate part of the class
39  *
40  * Revision 1.61  2005/05/28 12:10:07  schutz
41  * Copy constructor is corrected (by T.P.)
42  *
43  */
44
45
46 //_________________________________________________________________________
47 //  Base Class for PHOS     
48 //                  
49 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
50
51
52 // --- ROOT system ---
53 class TString ; 
54 class TTask ;
55 class TFolder ;
56 class TTree ; 
57 class TRandom ; 
58
59 // --- AliRoot header files ---
60 #include "AliDetector.h" 
61 #include "AliLog.h"
62 #include "AliPHOSGeometry.h" 
63 #include "AliPHOSTrigger.h"
64
65 class AliPHOS : public AliDetector {
66
67 public:
68
69   AliPHOS() ;
70   AliPHOS(const char* name, const char* title="") ;  
71   virtual ~AliPHOS() ; 
72   virtual void   AddHit(Int_t, Int_t*, Float_t *) {
73     // do not use this definition but the one below
74     AliFatal(Form("do not use")) ;
75     
76   }
77   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, 
78                          Int_t id, Float_t *hits ) = 0 ;   
79   virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
80   virtual void  CreateMaterials() ;            
81   virtual void  Digits2Raw();
82   virtual Bool_t Raw2SDigits(AliRawReader* rawReader);
83   virtual void  FinishRun() {;}
84   virtual AliPHOSGeometry * GetGeometry() const 
85   {return AliPHOSGeometry::GetInstance(GetTitle(),"") ;  }
86
87   virtual void    Hits2SDigits();
88   virtual Int_t   IsVersion(void) const = 0 ;  
89   virtual void    Init();
90   virtual AliTriggerDetector* CreateTriggerDetector() const 
91     { return new AliPHOSTrigger(); }
92
93   virtual AliLoader* MakeLoader(const char* topfoldername);
94   virtual void    SetTreeAddress();   
95   virtual const TString Version() const {return TString(" ") ; } 
96
97  private:                                        
98   AliPHOS(AliPHOS & phos);
99   AliPHOS & operator = (const AliPHOS & /*rvalue*/);
100
101   ClassDef(AliPHOS,6) // Photon Spectrometer Detector (base class)
102 } ;
103
104 #endif // ALIPHOS_H