CPV or PREshower plane is according to Module number instead of zposition
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 16 Jan 2010 08:32:48 +0000 (08:32 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 16 Jan 2010 08:32:48 +0000 (08:32 +0000)
PMD/AliPMDDigitizer.cxx

index 3306704..fcee91d 100644 (file)
@@ -416,16 +416,16 @@ void AliPMDDigitizer::Hits2SDigits(Int_t ievt)
                }
 
              AliDebug(2,Form("Zposition = %f Edeposition = %f",zPos,edep));
-             //Float_t zposition = TMath::Abs(zPos);
-             if (zPos < fZPos)
+
+             if (vol7 < 24)
                {
-                 // CPV
-                 fDetNo = 1;
+                 // PRE
+                 fDetNo = 0;
                }
-             else if (zPos > fZPos)
+             else
                {
-                 // PMD
-                 fDetNo = 0;
+                 // CPV
+                 fDetNo = 1;
                }
 
              Int_t smn = smnumber;
@@ -661,17 +661,27 @@ void AliPMDDigitizer::Hits2Digits(Int_t ievt)
 
              AliDebug(2,Form("ZPosition = %f Edeposition = %d",zPos,edep));
 
-             if (zPos < fZPos)
+             if (vol7 < 24)
+               {
+                 // PRE
+                 fDetNo = 0;
+               }
+             else
                {
-                 // CPV
                  fDetNo = 1;
                }
-             else if (zPos > fZPos)
+             /*
+               if (zPos < fZPos)
                {
-                 // PMD
-                 fDetNo = 0;
+               // CPV
+               fDetNo = 1;
                }
-
+               else if (zPos > fZPos)
+               {
+               // PMD
+               fDetNo = 0;
+               }
+             */
              Int_t smn = smnumber;
              Int_t ixx = xpad     - 1;
              Int_t iyy = ypad     - 1;