Bug correction
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jul 2003 14:05:29 +0000 (14:05 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jul 2003 14:05:29 +0000 (14:05 +0000)
HBTAN/AliHBTPositionRandomizer.cxx

index f05815aa8f51f739369bd989c892fe3e68ad8644..b3efd2678f366fff9c44418904aeeae6fd259b0c 100644 (file)
@@ -167,7 +167,8 @@ void AliHBTRndmGaussBall::Randomize(Double_t& x,Double_t& y,Double_t&z, AliHBTPa
 
 void AliHBTRndmCyllSurf::Randomize(Double_t& x,Double_t& y,Double_t&z, AliHBTParticle*p)
 {
-   Double_t sf = fR/p->Pt();//scaling factor for position transformation ->
+   Double_t r = fR + gRandom->Gaus(0.0, 1.0);
+   Double_t sf = r/p->Pt();//scaling factor for position transformation ->
                              //we move direction of string momentum but legth defined by r
    x = sf*p->Px();
    y = sf*p->Py();