]>
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; |
c01485dd | 19 | class AliEMCALShishKebabTrd1Module; |
e3697737 | 20 | class AliEMCALSpaceFrame; |
b13bbe81 | 21 | |
2012850d | 22 | // --- AliRoot header files --- |
23 | #include "AliEMCAL.h" | |
5f66b6c6 | 24 | #include "TGeoManager.h" |
cde6a23d | 25 | #include <TArrayF.h> |
2012850d | 26 | |
27 | class AliEMCALv0 : public AliEMCAL { | |
28 | ||
29 | public: | |
30 | ||
18a21c7c | 31 | AliEMCALv0(); |
2012850d | 32 | AliEMCALv0(const char *name, const char *title="") ; |
b13bbe81 | 33 | virtual ~AliEMCALv0(){} |
34 | ||
4800667c | 35 | using AliEMCAL::AddHit; |
36 | ||
5f66b6c6 | 37 | virtual void AddAlignableVolumes() const; |
1ae500a2 | 38 | virtual void AddAlignableVolumesInALICE() const; |
39 | virtual void AddAlignableVolumesInWSUC() const; | |
5f66b6c6 | 40 | |
b13bbe81 | 41 | virtual void CreateGeometry() ;// creates the geometry for GEANT |
2012850d | 42 | virtual void Init(void) ; // does nothing |
43 | virtual Int_t IsVersion(void) const { | |
44 | // Gives the version number | |
45 | return 0 ; | |
46 | } | |
05a92d59 | 47 | virtual const TString Version(void) const{ |
2012850d | 48 | // As above |
49 | return TString("v0") ; | |
50 | } | |
51 | ||
1963b290 | 52 | // ShishKebab |
53 | void CreateShishKebabGeometry(); | |
54 | void CreateSmod(const char* mother="XEN1"); | |
55 | void CreateEmod(const char* mother="SMOD", const char* child="EMOD"); | |
56 | // TRD1 | |
d25f2c54 | 57 | void Trd1Tower3X3(const double *parSCM0); |
1963b290 | 58 | void Trd1Tower4X4(); |
59 | void PbInTrap(const double parTRAP[11], TString n); | |
d25f2c54 | 60 | // 1X1 case - Nov 22, 2006 |
61 | void Trd1Tower1X1(double *parSCM0); | |
4f41c6b7 | 62 | void PbInTrd1(double *parTrd1, TString n); |
1963b290 | 63 | // TRD2 - 1th design |
cde6a23d | 64 | void Scm0InTrd2(const AliEMCALGeometry * g, const Double_t emodPar[5], Double_t parSCM0[5]); |
1963b290 | 65 | void Division2X2InScm0(const AliEMCALGeometry * g, const Double_t parSCM0[5]); |
66 | void PbInTrapForTrd2(const double *parTRAP, TString name); | |
67 | // TRD2 - 2th design | |
cde6a23d | 68 | void PbmoInTrd2(const AliEMCALGeometry * g, const Double_t emodPar[5], Double_t parPBMO[5]); |
1963b290 | 69 | void Division2X2InPbmo(const AliEMCALGeometry * g, const Double_t parPBMO[5]); |
70 | ||
c01485dd | 71 | TList *GetShishKebabModules() {return fShishKebabModules;} |
21cf2b24 | 72 | AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta=0); |
cde6a23d | 73 | |
2012850d | 74 | protected: |
cde6a23d | 75 | TList *fShishKebabModules; //! list of modules |
76 | private: | |
77 | TArrayF fEnvelop1; //! parameters of EMCAL envelop for TRD1(2) case | |
78 | Int_t fIdRotm; //! number of rotation matrix (working variable) | |
79 | Int_t *fIdTmedArr; //! fIdtmed->GetArray() - 1599; | |
80 | Double_t fSampleWidth; //! sample width = double(g->GetECPbRadThick()+g->GetECScintThick()); | |
81 | Double_t fSmodPar0; //! x size of super module | |
82 | Double_t fSmodPar1; //! y size of super module | |
83 | Double_t fSmodPar2; //! z size of super module | |
84 | Double_t fParEMOD[5]; //! parameters of EMCAL module (TRD1,2) | |
e3697737 | 85 | AliEMCALSpaceFrame* fCalFrame; //EMCAL Space frame object |
b13bbe81 | 86 | |
e939a978 | 87 | AliEMCALv0(const AliEMCALv0 & emcal); |
88 | AliEMCALv0 & operator = (const AliEMCALv0 & /*rvalue*/); | |
89 | ||
e3697737 | 90 | ClassDef(AliEMCALv0,4) // Implementation of EMCAL manager class for midrapidity barrel layout between 80 and 180(190) degrees |
2012850d | 91 | |
92 | }; | |
93 | ||
94 | #endif // AliEMCALV0_H |