]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALShishKebabTrd1Module.h
Fixing typo (clang)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALShishKebabTrd1Module.h
index c428328006a4b404e0bb247f85044916f9c4b3a0..f78f51ca9084749df74514c57bf180733793a41a 100644 (file)
@@ -1,14 +1,14 @@
 #ifndef ALIEMCALSHISHKEBABTRD1MODULE_H
 #define ALIEMCALSHISHKEBABTRD1MODULE_H
 
-/* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
+/* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
 //_________________________________________________________________________
 // Main class for TRD1 geometry of Shish-Kebab case.
-// Author: Aleksei Pavlinov(WSU).
-// Nov 2004; Feb 2006
+// Author: Alexei Pavlinov(WSU).
+// Nov 2004; Feb 2006; Apr 2010; Oct 23, 2010
 
 #include <TNamed.h>
 #include <TMath.h>
@@ -32,7 +32,7 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   virtual ~AliEMCALShishKebabTrd1Module(void) {}
   Bool_t GetParameters();
   void DefineName(Double_t theta);
-  void DefineFirstModule();
+  void DefineFirstModule(const Int_t key=0); // key=0-zero tilt of first module
 
   Double_t GetTheta() const {return fTheta;}
   TVector2& GetCenterOfModule() {return fOK;}
@@ -48,13 +48,16 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   //  Additional offline staff 
   //  ieta=0 or 1 - Jun 02, 2006
   TVector2& GetCenterOfCellInLocalCoordinateofSM(Int_t ieta)
-  { if(ieta<=0) return fOK2;
-    else        return fOK1;}
-  void GetCenterOfCellInLocalCoordinateofSM(Int_t ieta, Double_t &xr, Double_t &zr) const
+  { 
+    if(ieta<=0) return fOK2;
+    else        return fOK1;
+  }
+  void GetCenterOfCellInLocalCoordinateofSM(Int_t ieta, Double_t &xr, Double_t &zr, Int_t pri=0) const
   { 
     if(ieta<=0) {xr = fOK2.Y(); zr = fOK2.X();
     } else      {xr = fOK1.Y(); zr = fOK1.X();
     }
+    if(pri>0) printf(" %s ieta %2.2i xr %8.4f  zr %8.4f \n", GetName(), ieta, xr, zr);  
   }
   void GetCenterOfCellInLocalCoordinateofSM3X3(Int_t ieta, Double_t &xr, Double_t &zr) const
   { // 3X3 case - Nov 9,2006
@@ -88,11 +91,11 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
 
  protected:
   // geometry info
-  static AliEMCALEMCGeometry *fgGeometry; //!
+  AliEMCALEMCGeometry *fGeometry; //!
   static Double_t fga;        // 2*dx1=2*dy1
   static Double_t fga2;       // 2*dx2
   static Double_t fgb;        // 2*dz1
-  static Double_t fgangle;    // ~1 degree
+  static Double_t fgangle;    // in rad (1.5 degree)
   static Double_t fgtanBetta; // tan(fgangle/2.)
   static Double_t fgr;        // radius to IP
 
@@ -118,7 +121,7 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   TVector2 fORB; // position of right/bottom point of module
   TVector2 fORT; // position of right/top    point of module
   // public:
-  ClassDef(AliEMCALShishKebabTrd1Module, 4) // TRD1 Shish-Kebab module 
+  ClassDef(AliEMCALShishKebabTrd1Module, 5) // TRD1 Shish-Kebab module 
 };
 
 #endif