]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv0.h
3551409689384840427b5435d1bf5e6efceb5872
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv0.h
1 #ifndef ALIPHOSV0_H
2 #define ALIPHOSV0_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //_________________________________________________________________________
7 // Implementation version v0 of PHOS Manager class 
8 // Layout EMC + CPV  has name IHEP
9 //*--                  
10 //*-- Author: Yves Schutz (SUBATECH)
11
12 // --- ROOT system ---
13
14 class TFile;
15 class TFolder;
16
17 // --- AliRoot header files ---
18 #include "AliPHOS.h"
19
20 class AliPHOSv0 : public AliPHOS {
21
22  public:
23
24   AliPHOSv0() {}
25   AliPHOSv0(const char *name, const char *title="") ;
26   AliPHOSv0(const AliPHOSv0 & phos) : AliPHOS(phos) {
27     // cpy ctor: no implementation yet
28     // requested by the Coding Convention
29     Fatal("cpy ctor", "not implemented") ;
30   } 
31   virtual ~AliPHOSv0(void){
32     // dtor
33   } 
34
35 //    virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
36   virtual void   AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
37     // useless since there are no hits
38     Fatal("AddHit", "not to be used with v0") ;
39   }
40   virtual void   BuildGeometry(void) ;             // creates the geometry for the ROOT display
41   void           BuildGeometryforEMC(void) ;      // creates the PHOS geometry for the ROOT display
42   //  void           BuildGeometryforPPSD(void) ;      // creates the PPSD geometry for the ROOT display
43   void           BuildGeometryforCPV(void) ;       // creates the CPV  geometry for the ROOT display
44   virtual void   CreateGeometry(void) ;            // creates the geometry for GEANT
45   void           CreateGeometryforEMC(void) ;     // creates the PHOS geometry for GEANT
46   //  void           CreateGeometryforPPSD(void) ;     // creates the PPSD geometry for GEANT
47   void           CreateGeometryforCPV(void) ;      // creates the CPV  geometry for GEANT
48   void           CreateGeometryforSupport(void) ;  // creates the Support geometry for GEANT
49   virtual Float_t ZMin() const;                    // overall dimension of the module (min)
50   virtual Float_t ZMax() const;                    // overall dimension of the module (max)
51
52   virtual void   Init(void) ;                      // does nothing
53   virtual Int_t  IsVersion(void) const { 
54     // Gives the version number 
55     return 0 ; 
56   }
57   virtual const TString Version(void)const { 
58     // As above
59     return TString("v0") ; 
60   }
61   
62   AliPHOSv0 & operator = (const AliPHOSv0 & /*rvalue*/)  {
63     // assignement operator requested by coding convention but not needed
64     Fatal("operator =", "not implemented") ;
65     return *this ; 
66   }
67   
68  protected:
69   
70
71   ClassDef(AliPHOSv0,1)  // Implementation of PHOS manager class for layout EMC+PPSD
72     
73     };
74     
75 #endif // AliPHOSV0_H