+
+//_____________________________________________________________________________
+void AliEMCALShishKebabTrd1Module::GetPositionAtCenterCellLine(Int_t ieta, Double_t dist, TVector2 &v)
+{
+ // Jul 30, 2007
+ static Double_t theta=0., x=0., y=0.;
+ if(ieta==0) {
+ v = fOB2;
+ theta = fTheta;
+ } else if(ieta==1) {
+ v = fOB1;
+ theta = fTheta;
+ } else {
+ assert(0);
+ }
+
+ x = v.X() + TMath::Cos(theta) * dist;
+ y = v.Y() + TMath::Sin(theta) * dist;
+ // printf(" GetPositionAtCenterCellLine() %s : dist %f : ieta %i : x %f %f v.X() | y %f %f v.Y() : cos %f sin %f \n",
+ //GetName(), dist, ieta, v.X(),x, y,v.Y(),TMath::Cos(theta),TMath::Sin(theta));
+ v.Set(x,y);
+}
+
+
+//_____________________________________________________________________________
+Double_t AliEMCALShishKebabTrd1Module::GetMaxEtaOfModule(int pri) const
+{
+ // Right bottom point of module
+ Double_t thetaBottom = TMath::ATan2(fORB.Y(),fORB.X());
+ Double_t etaBottom = ThetaToEta(thetaBottom);
+ // Right top point of module
+ Double_t thetaTop = TMath::ATan2(fORT.Y(),fORT.X());
+ Double_t etaTop = ThetaToEta(thetaTop);
+
+ if(pri) {
+ printf(" Right bottom point of module : eta %5.4f : theta %6.4f (%6.2f) : x(zglob) %7.2f y(phi) %5.2f \n",
+ etaBottom, thetaBottom, thetaBottom * TMath::RadToDeg(), fORB.X(), fORB.Y());
+ printf(" Right top point of module : eta %5.4f : theta %6.4f (%6.2f) : x(zglob) %7.2f y(phi) %5.2f \n",
+ etaTop, thetaTop, thetaTop * TMath::RadToDeg(), fORT.X(), fORT.Y());
+ }
+ return etaBottom>etaTop ? etaBottom : etaTop;
+}