1 #ifndef ALIEMCALSHISHKEBABTRD1MODULE_H
2 #define ALIEMCALSHISHKEBABTRD1MODULE_H
4 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
8 //*-- Author: Aleksei Pavlinov (WSU)
9 // TO DO : create class for Super module Geometry - 4-nov-04
15 class AliEMCALGeometry;
17 class AliEMCALShishKebabTrd1Module : public TNamed {
19 AliEMCALShishKebabTrd1Module(double theta=TMath::Pi()/2.);
20 AliEMCALShishKebabTrd1Module(AliEMCALShishKebabTrd1Module &leftNeighbor);
21 void Init(double A, double B);
23 virtual ~AliEMCALShishKebabTrd1Module(void) {}
24 Bool_t GetParameters();
25 void DefineName(double theta);
26 void DefineFirstModule();
28 Double_t GetTheta() const{return fTheta;}
29 Double_t GetThetaInDegree() const {return fTheta*180./TMath::Pi();}
30 TVector2& GetCenterOfModule() {return fOK;}
31 Double_t GetEtaOfCenterOfModule(){return -TMath::Log(TMath::Tan(fOK.Phi()/2.));}
33 Double_t GetPosX() {return fOK.Y();}
34 Double_t GetPosZ() {return fOK.X();}
35 Double_t GetPosXfromR() {return fOK.Y() - fgr;}
36 Double_t GetA() {return fA;}
37 Double_t GetB() {return fB;}
38 // Additional offline staff
39 TVector2& GetCenterOfCell(Int_t ieta)
40 { if(ieta<=1) return fOK1;
43 Double_t GetTanBetta() {return fgtanBetta;}
44 Double_t Getb() {return fgb;}
46 void PrintShish(int pri=1) const; // *MENU*
49 static AliEMCALGeometry *fgGeometry; //!
50 static Double_t fga; // 2*dx1=2*dy1
51 static Double_t fga2; // 2*dx2
52 static Double_t fgb; // 2*dz1
53 static Double_t fgangle; // ~1 degree
54 static Double_t fgtanBetta; // tan(fgangle/2.)
59 TVector2 fOK; // position the module center x->y; z->x;
60 Double_t fA; // parameters of right line : y = A*z + B
61 Double_t fB; // system where zero point is IP.
62 Double_t fThetaA; // angle coresponding fA - for convinience
63 Double_t fTheta; // theta angle of perependicular to SK module
64 // position of towers with differents ieta (1 or 2) - 4-nov-04
69 ClassDef(AliEMCALShishKebabTrd1Module,0) // Turned Shish-Kebab module
74 1. Insert position the center of towers - 2 additional TVector2