]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrections for digit amplitude and time filling
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Oct 2006 10:05:15 +0000 (10:05 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Oct 2006 10:05:15 +0000 (10:05 +0000)
PHOS/AliPHOSReconstructor.cxx

index 8d99cb83d6b9f80f6d7f551ac33424206484fff7..79036e5bdfb7329b4de26f94196b4db73f1f429f 100644 (file)
@@ -142,8 +142,8 @@ void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
     // Convert Float_t* and Int_t* to UShort_t* to save memory
     for (Int_t iDigit=0; iDigit<digitMult; iDigit++) {
       AliPHOSDigit *digit = gime->Digit(digitsList[iDigit]);
-      amplList[iDigit] = (UShort_t)(digit->GetEnergy()*500);
-      amplList[iDigit] = (UShort_t)(digit->GetTime()*1e9*100);
+      amplList[iDigit] = (UShort_t)(digit->GetEnergy()*500); // Energy in units of GeV/500
+      timeList[iDigit] = (UShort_t)(digit->GetTime()*1e9*100); // time in units of 0.01 ns
       digiList[iDigit] = (UShort_t)(digit->GetId());
     }
     ec->SetGlobalPosition(xyz);                 //rec.point position in MARS