correct z shift for C side
authorjklay <jklay@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jun 2010 21:42:09 +0000 (21:42 +0000)
committerjklay <jklay@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Jun 2010 21:42:09 +0000 (21:42 +0000)
EMCAL/AliEMCALSurvey.cxx

index 2075408..d136cb2 100644 (file)
@@ -427,7 +427,10 @@ void AliEMCALSurvey::InitSuperModuleData(const TObjArray *svypts)
     AliEMCALSuperModuleDelta &t = fSuperModuleData[i];
     t.fXShift = real.fX1 - ideal.fX1;
     t.fYShift = real.fY1 - ideal.fY1;
-    t.fZShift = real.fZ1 - ideal.fZ1;
+    t.fZShift = ideal.fZ1 - real.fZ1; //due to z flip for C side
+    if(i%2==0) {
+      t.fZShift *= -1.0;  //correct shift for C side
+    }
     t.fPhi = real.fPhi - ideal.fPhi;
     t.fTheta = real.fTheta - ideal.fTheta;
     t.fPsi = real.fPsi - ideal.fPsi;