]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentationSSD.cxx
move the AOD particle creation part to the end of the method, in case of storing...
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSSD.cxx
index b4868a3fcf7d8c5de6bc5153593ddd703693be1f..c4101fb39e48fc554e8feb3760eb299e62452f2a 100644 (file)
@@ -35,6 +35,8 @@ const Int_t AliITSsegmentationSSD::fgkNstripsDefault = 768;
 const Int_t AliITSsegmentationSSD::fgkNchipsPerSide = 6;
 const Int_t AliITSsegmentationSSD::fgkNstripsPerChip = 128;
 
+using std::endl;
+using std::cout;
 ClassImp(AliITSsegmentationSSD)
 
 AliITSsegmentationSSD::AliITSsegmentationSSD(Option_t *opt): AliITSsegmentation(),
@@ -159,20 +161,20 @@ void AliITSsegmentationSSD::GetPadTxz(Float_t &x,Float_t &z) const{
     z   = (x1 - tanN*(z1 - fDz))/fPitch;
   */
 
-  Float_t P=0;
-  Float_t N=0;
+  Float_t tP=0;
+  Float_t tN=0;
   if(fLayer==5) {
-    P = 105.26*x - 0.7895*z + 382.000; //- 0.79*z + 381.89;
-    N = P + 3.684*z - 4; 
+    tP = 105.26*x - 0.7895*z + 382.000; //- 0.79*z + 381.89;
+    tN = tP + 3.684*z - 4; 
   }
   else if(fLayer==6) {
-    P = -105.26*x - 0.7895*z + 385.000; //- 0.79*z + 384.66;
-    N = P + 3.684*z + 4;
+    tP = -105.26*x - 0.7895*z + 385.000; //- 0.79*z + 384.66;
+    tN = tP + 3.684*z + 4;
   }
   else AliError("Layer can be 5 or 6");
 
-  x=P;
-  z=N;
+  x=tP;
+  z=tN;
 
 }
 //----------------------------------------------------------------------