]>
Commit | Line | Data |
---|---|---|
2012850d | 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) | |
b13bbe81 | 12 | //*-- and : Sahal Yacoob (LBL / UCT) |
d87bd045 | 13 | // : Aleksei Pavlinov (WSU) SHASHLYK |
2012850d | 14 | |
15 | // --- ROOT system --- | |
16 | ||
b13bbe81 | 17 | class TFile; |
1963b290 | 18 | class TList; |
19 | class TNode; | |
c01485dd | 20 | class AliEMCALShishKebabTrd1Module; |
b13bbe81 | 21 | |
2012850d | 22 | // --- AliRoot header files --- |
23 | #include "AliEMCAL.h" | |
cde6a23d | 24 | #include <TArrayF.h> |
b13bbe81 | 25 | //class AliEMCALGeometry ; |
2012850d | 26 | |
27 | class AliEMCALv0 : public AliEMCAL { | |
28 | ||
29 | public: | |
30 | ||
b13bbe81 | 31 | AliEMCALv0():AliEMCAL() {} |
2012850d | 32 | AliEMCALv0(const char *name, const char *title="") ; |
b13bbe81 | 33 | virtual ~AliEMCALv0(){} |
34 | ||
cde6a23d | 35 | AliEMCALv0(const AliEMCALv0 & emcal):AliEMCAL(emcal) { |
36 | Fatal("cpy ctor", "not implemented") ; } | |
37 | AliEMCALv0 & operator = (const AliEMCALv0 & /*rvalue*/) { | |
38 | // assignement operator requested by coding convention but not needed | |
39 | Fatal("operator =", "not implemented"); | |
40 | return *this; | |
41 | } | |
42 | ||
4800667c | 43 | using AliEMCAL::AddHit; |
44 | ||
b13bbe81 | 45 | virtual void BuildGeometry();// creates the geometry for the ROOT display |
1963b290 | 46 | TNode *BuildGeometryOfWSUC(); // WSUC - test environment |
b13bbe81 | 47 | virtual void CreateGeometry() ;// creates the geometry for GEANT |
2012850d | 48 | virtual void Init(void) ; // does nothing |
49 | virtual Int_t IsVersion(void) const { | |
50 | // Gives the version number | |
51 | return 0 ; | |
52 | } | |
05a92d59 | 53 | virtual const TString Version(void) const{ |
2012850d | 54 | // As above |
55 | return TString("v0") ; | |
56 | } | |
57 | ||
1963b290 | 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 | |
cde6a23d | 67 | void Scm0InTrd2(const AliEMCALGeometry * g, const Double_t emodPar[5], Double_t parSCM0[5]); |
1963b290 | 68 | void Division2X2InScm0(const AliEMCALGeometry * g, const Double_t parSCM0[5]); |
69 | void PbInTrapForTrd2(const double *parTRAP, TString name); | |
70 | // TRD2 - 2th design | |
cde6a23d | 71 | void PbmoInTrd2(const AliEMCALGeometry * g, const Double_t emodPar[5], Double_t parPBMO[5]); |
1963b290 | 72 | void Division2X2InPbmo(const AliEMCALGeometry * g, const Double_t parPBMO[5]); |
73 | ||
c01485dd | 74 | TList *GetShishKebabModules() {return fShishKebabModules;} |
21cf2b24 | 75 | AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta=0); |
cde6a23d | 76 | |
2012850d | 77 | protected: |
cde6a23d | 78 | TList *fShishKebabModules; //! list of modules |
79 | private: | |
80 | TArrayF fEnvelop1; //! parameters of EMCAL envelop for TRD1(2) case | |
81 | Int_t fIdRotm; //! number of rotation matrix (working variable) | |
82 | Int_t *fIdTmedArr; //! fIdtmed->GetArray() - 1599; | |
83 | Double_t fSampleWidth; //! sample width = double(g->GetECPbRadThick()+g->GetECScintThick()); | |
84 | Double_t fSmodPar0; //! x size of super module | |
85 | Double_t fSmodPar1; //! y size of super module | |
86 | Double_t fSmodPar2; //! z size of super module | |
87 | Double_t fParEMOD[5]; //! parameters of EMCAL module (TRD1,2) | |
b13bbe81 | 88 | |
c63c3c5d | 89 | ClassDef(AliEMCALv0,3) // Implementation of EMCAL manager class for midrapidity barrel layout between 80 and 180(190) degrees |
2012850d | 90 | |
91 | }; | |
92 | ||
93 | #endif // AliEMCALV0_H |