]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALv0.h
Fixes to store the TPC seeds in the debug stream (M.Ivanov)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALv0.h
1 #ifndef ALIEMCALV0_H
2 #define ALIEMCALV0_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                      
5          */
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 // Implementation version v0 of EMCAL Manager class 
10 //*--                  
11 //*-- Author: Yves Schutz (SUBATECH)
12 //*-- and   : Sahal Yacoob (LBL / UCT) 
13 //          : Aleksei Pavlinov (WSU)     SHASHLYK
14 //#include <assert.h>
15
16 // --- ROOT system ---
17
18 class TFile;
19 class TList;
20 class TNode;
21
22 // --- AliRoot header files ---
23 #include "AliEMCAL.h"
24
25 //class AliEMCALGeometry ; 
26
27 class AliEMCALv0 : public AliEMCAL {
28
29  public:
30
31   AliEMCALv0():AliEMCAL() {}
32   AliEMCALv0(const char *name, const char *title="") ;
33   AliEMCALv0(const AliEMCALv0 & emcal):AliEMCAL(emcal) {
34     // cpy ctor: no implementation yet
35     // requested by the Coding Convention
36     Fatal("cpy ctor", "not implemented") ;  
37   } 
38   virtual ~AliEMCALv0(){} 
39
40   virtual void BuildGeometry();// creates the geometry for the ROOT display
41   TNode *BuildGeometryOfWSUC();  // WSUC - test environment
42   virtual void CreateGeometry() ;// creates the geometry for GEANT
43   virtual void   Init(void) ;                                       // does nothing
44   virtual Int_t  IsVersion(void) const { 
45     // Gives the version number 
46     return 0 ; 
47   }
48   virtual const TString Version(void) const{ 
49     // As above
50     return TString("v0") ; 
51   }
52   
53   AliEMCALv0 & operator = (const AliEMCALv0 & /*rvalue*/)  {
54     // assignement operator requested by coding convention but not needed
55     Fatal("operator =", "not implemented") ;  
56     return *this ; 
57   }
58   // ShishKebab 
59   void CreateShishKebabGeometry();
60   void CreateSmod(const char* mother="XEN1");
61   void CreateEmod(const char* mother="SMOD", const char* child="EMOD");
62   // TRD1
63   void Trd1Tower3X3(const double parSCM0[5]);
64   void Trd1Tower4X4();
65   void PbInTrap(const double parTRAP[11], TString n);
66   // TRD2 - 1th design
67   void Scm0InTrd2(const AliEMCALGeometry * g, const Double_t parEMOD[5], Double_t parSCM0[5]);
68   void Division2X2InScm0(const AliEMCALGeometry * g, const Double_t parSCM0[5]);
69   void PbInTrapForTrd2(const double *parTRAP, TString name);
70   // TRD2 - 2th design
71   void PbmoInTrd2(const AliEMCALGeometry * g, const Double_t parEMOD[5], Double_t parPBMO[5]);
72   void Division2X2InPbmo(const AliEMCALGeometry * g, const Double_t parPBMO[5]);
73
74   TList *fShishKebabModules; //! list of modules for twist geometries
75   
76  protected:
77
78   ClassDef(AliEMCALv0,2)  // Implementation of EMCAL manager class for midrapidity barrel layout between 0 and 120 degrees 
79     
80     };
81     
82 #endif // AliEMCALV0_H