]>
Commit | Line | Data |
---|---|---|
1963b290 | 1 | #ifndef ALIEMCALSHISHKEBABTRD1MODULE_H |
2 | #define ALIEMCALSHISHKEBABTRD1MODULE_H | |
3 | ||
4 | /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
25ab8a31 | 8 | //_________________________________________________________________________ |
9 | // Main class for TRD1 geometry of Shish-Kebab case. | |
10 | // Author: Aleksei Pavlinov(WSU). | |
11 | // Nov 2004; Feb 2006 | |
1963b290 | 12 | |
13 | #include "TNamed.h" | |
1963b290 | 14 | #include "TVector2.h" |
15 | ||
16 | class AliEMCALGeometry; | |
17 | ||
18 | class AliEMCALShishKebabTrd1Module : public TNamed { | |
19 | public: | |
25ab8a31 | 20 | AliEMCALShishKebabTrd1Module(Double_t theta=0.0, AliEMCALGeometry *g=0); |
1963b290 | 21 | AliEMCALShishKebabTrd1Module(AliEMCALShishKebabTrd1Module &leftNeighbor); |
25ab8a31 | 22 | void Init(Double_t A, Double_t B); |
23 | AliEMCALShishKebabTrd1Module(const AliEMCALShishKebabTrd1Module& mod) : TNamed(mod.GetName(),mod.GetTitle()){ | |
24 | // cpy ctor: no implementation yet; requested by the Coding Convention | |
25 | Fatal("cpy ctor", "not implemented") ; | |
26 | } | |
27 | AliEMCALShishKebabTrd1Module & operator = (const AliEMCALShishKebabTrd1Module& /*rvalue*/) { | |
28 | Fatal("operator =", "not implemented") ; | |
29 | return *this ; | |
30 | } | |
1963b290 | 31 | |
32 | virtual ~AliEMCALShishKebabTrd1Module(void) {} | |
33 | Bool_t GetParameters(); | |
25ab8a31 | 34 | void DefineName(Double_t theta); |
1963b290 | 35 | void DefineFirstModule(); |
36 | ||
25ab8a31 | 37 | Double_t GetTheta() const {return fTheta;} |
1963b290 | 38 | TVector2& GetCenterOfModule() {return fOK;} |
1963b290 | 39 | |
25ab8a31 | 40 | Double_t GetPosX() const {return fOK.Y();} |
41 | Double_t GetPosZ() const {return fOK.X();} | |
42 | Double_t GetPosXfromR() const {return fOK.Y() - fgr;} | |
43 | Double_t GetA() const {return fA;} | |
44 | Double_t GetB() const {return fB;} | |
1963b290 | 45 | // Additional offline staff |
e52475ed | 46 | TVector2& GetCenterOfCellInLocalCoordinateofSM(Int_t ieta) |
47 | { if(ieta<=1) return fOK2; | |
48 | else return fOK1;} | |
49 | void GetCenterOfCellInLocalCoordinateofSM(Int_t ieta, Double_t &xr, Double_t &zr) | |
50 | { | |
51 | if(ieta<=1) {xr = fOK2.Y(); zr = fOK2.X(); | |
52 | } else {xr = fOK1.Y(); zr = fOK1.X(); | |
53 | } | |
54 | } | |
1963b290 | 55 | // |
25ab8a31 | 56 | Double_t GetTanBetta() const {return fgtanBetta;} |
57 | Double_t Getb() const {return fgb;} | |
1963b290 | 58 | // service methods |
25ab8a31 | 59 | void PrintShish(Int_t pri=1) const; // *MENU* |
60 | Double_t GetThetaInDegree() const; | |
61 | Double_t GetEtaOfCenterOfModule() const; | |
1963b290 | 62 | |
25ab8a31 | 63 | protected: |
1963b290 | 64 | // geometry info |
65 | static AliEMCALGeometry *fgGeometry; //! | |
66 | static Double_t fga; // 2*dx1=2*dy1 | |
67 | static Double_t fga2; // 2*dx2 | |
68 | static Double_t fgb; // 2*dz1 | |
69 | static Double_t fgangle; // ~1 degree | |
70 | static Double_t fgtanBetta; // tan(fgangle/2.) | |
25ab8a31 | 71 | static Double_t fgr; // radius to IP |
1963b290 | 72 | |
1963b290 | 73 | TVector2 fOK; // position the module center x->y; z->x; |
74 | Double_t fA; // parameters of right line : y = A*z + B | |
75 | Double_t fB; // system where zero point is IP. | |
76 | Double_t fThetaA; // angle coresponding fA - for convinience | |
77 | Double_t fTheta; // theta angle of perependicular to SK module | |
e52475ed | 78 | // position of towers(cells) with differents ieta (1 or 2) in local coordinate of SM |
79 | // Nov 04,2004; Feb 19,2006 | |
80 | TVector2 fOK1; // ieta=2 | |
81 | TVector2 fOK2; // ieta=1 | |
1963b290 | 82 | |
25ab8a31 | 83 | // public: |
84 | ClassDef(AliEMCALShishKebabTrd1Module,0) // TRD1 Shish-Kebab module | |
1963b290 | 85 | }; |
86 | ||
87 | #endif |