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