]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALShishKebabTrd1Module.cxx
couple of protections for calculation of slice from angle; reading of track block...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALShishKebabTrd1Module.cxx
index a55b63529c1a545053512b0e8ec8c711af1e6f12..ef02400e76292d0ac182cffca756dfa3ff3e12c4 100644 (file)
@@ -63,6 +63,7 @@ AliEMCALShishKebabTrd1Module::AliEMCALShishKebabTrd1Module(Double_t theta, AliEM
   TString snam(g->GetName());
   Int_t key=0;
   if(snam.Contains("FIRSTYEARv1",TString::kIgnoreCase)) key=1;
+  if(snam.Contains("COMPLETEv1",TString::kIgnoreCase)) key=1;
   if(GetParameters()) {
     DefineFirstModule(key);
   }
@@ -151,7 +152,7 @@ void AliEMCALShishKebabTrd1Module::Init(Double_t A, Double_t B)
 }
 
 void AliEMCALShishKebabTrd1Module::DefineAllStaff()
-{
+{ 
   //Define some parameters     
   DefineName(fTheta);
   // Centers of cells - 2X2 case
@@ -328,15 +329,16 @@ void AliEMCALShishKebabTrd1Module::GetPositionAtCenterCellLine(Int_t ieta, Doubl
 {
   // Jul 30, 2007
   static Double_t theta=0., x=0., y=0.;
-  if(ieta==0) {
+  if(ieta==0) {    
     v     = fOB2;
-    theta = fThetaOB2;
+    theta = fTheta;
   } else if(ieta==1) {
     v     = fOB1;
-    theta = fThetaOB1;
+    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",