]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALShishKebabTrd1Module.h
Fill fraction amplitude array with 0 until unfolding is not done
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALShishKebabTrd1Module.h
index 35a20abf151c22f6c1e66d9009cd528686d69215..36af21542cf93444f70f441a2c01cb62efeff2cc 100644 (file)
@@ -10,8 +10,9 @@
 // Author: Aleksei Pavlinov(WSU).
 // Nov 2004; Feb 2006
 
-#include "TNamed.h"
-#include "TVector2.h"
+#include <TNamed.h>
+#include <TMath.h>
+#include <TVector2.h>
 
 class AliEMCALGeometry;
 
@@ -55,8 +56,10 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   }
   void GetCenterOfCellInLocalCoordinateofSM_3X3(Int_t ieta, Double_t &xr, Double_t &zr) const
   { // 3X3 case - Nov 9,2006
-    ieta = ieta<0? ieta=0 : ieta; // check index
-    ieta = ieta>2? ieta=2 : ieta;
+    if(ieta < 0) ieta = 0;
+    if(ieta > 2) ieta = 2;
+    //    ieta = ieta<0? ieta=0 : ieta; // check index
+    //ieta = ieta>2? ieta=2 : ieta;
     xr   = fOK3X3[2-ieta].Y();
     zr   = fOK3X3[2-ieta].X();
   }
@@ -72,6 +75,8 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
     if(ieta<=0) return fOB2;
     else        return fOB1;
   }  
+  // Jul 30, 2007
+  void GetPositionAtCenterCellLine(Int_t ieta, Double_t dist, TVector2 &v);
   // 
   Double_t GetTanBetta() const {return fgtanBetta;}
   Double_t Getb()        const {return fgb;}
@@ -102,14 +107,17 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   // Nov 04,2004; Feb 19,2006 
   TVector2 fOK1; // ieta=1
   TVector2 fOK2; // ieta=0
-  // May 13, 2006; local position of module (cells) face  
-  TVector2 fOB;  // module
-  TVector2 fOB1; // ieta=1
-  TVector2 fOB2; // ieta=0
+  // May 13, 2006; local position of module (cells) center face  
+  TVector2 fOB;   // module
+  TVector2 fOB1;  // ieta=1
+  TVector2 fOB2;  // ieta=0
+  // Jul 30, 2007
+  Double_t fThetaOB1; // theta of cell center line (go through OB1)
+  Double_t fThetaOB2;  // theta of cell center line (go through OB2)
   // 3X3 case - Nov 9,2006
   TVector2 fOK3X3[3];
   // public:
-  ClassDef(AliEMCALShishKebabTrd1Module,1) // TRD1 Shish-Kebab module 
+  ClassDef(AliEMCALShishKebabTrd1Module,2) // TRD1 Shish-Kebab module 
 };
 
 #endif