Bug fixes from M.Kowalski
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 Sep 1999 17:46:32 +0000 (17:46 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 15 Sep 1999 17:46:32 +0000 (17:46 +0000)
TPC/AliTPC.cxx
TPC/AliTPCHits2Digits.C

index 583fca3..f223001 100644 (file)
@@ -1745,7 +1745,7 @@ Float_t AliTPC::GetSignal(TObjArray *p1, Int_t ntr, Int_t np, TMatrix *m1, TMatr
 
    Float_t dist = y - (Float_t)(PadNumber-CentralPad)*fTPCParam->GetPadPitchWidth();
    for (Int_t i=0;i<7;i++){
 
    Float_t dist = y - (Float_t)(PadNumber-CentralPad)*fTPCParam->GetPadPitchWidth();
    for (Int_t i=0;i<7;i++){
-     PadSignal[i]=fPRF2D->GetPRF(dist+(i-3)*fTPCParam->GetPadPitchWidth(),xwire)*aval;
+     PadSignal[i]=fPRF2D->GetPRF(-dist+(i-3)*fTPCParam->GetPadPitchWidth(),xwire)*aval;
      PadSignal[i] *= fTPCParam->GetPadCoupling();
    }
 
      PadSignal[i] *= fTPCParam->GetPadCoupling();
    }
 
@@ -2143,7 +2143,7 @@ void AliTPC::GetCrossTalk (Int_t iFlag,TObjArray *p,Int_t ntracks,Int_t *npads,
      Float_t dist = y - (Float_t)(PadNumber-CentralPad)*fTPCParam->GetPadPitchWidth();
        
      for (Int_t i=0;i<7;i++){
      Float_t dist = y - (Float_t)(PadNumber-CentralPad)*fTPCParam->GetPadPitchWidth();
        
      for (Int_t i=0;i<7;i++){
-       PadSignal[i]=fPRF2D->GetPRF(dist+(3-i)*fTPCParam->GetPadPitchWidth(),xwire)*aval;
+       PadSignal[i]=fPRF2D->GetPRF(-dist+(i-3)*fTPCParam->GetPadPitchWidth(),xwire)*aval;
 
        PadSignal[i] *= fTPCParam->GetPadCoupling();
      }
 
        PadSignal[i] *= fTPCParam->GetPadCoupling();
      }
index 1a32ac8..d0b17b3 100644 (file)
@@ -61,6 +61,8 @@ void AliTPCHits2Digits(const  char * name= "pokusD_")
   param.Update();
 
     //Set z (time) response function
   param.Update();
 
     //Set z (time) response function
+
+  rf.SetOffset(3.*param.GetZSigma());
   rf.SetGauss(param.GetZSigma(),param.GetZWidth(),0.4);
   rf.Update();
   //Set two dimensional pad response function
   rf.SetGauss(param.GetZSigma(),param.GetZWidth(),0.4);
   rf.Update();
   //Set two dimensional pad response function