]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTPositionRandomizer.cxx
New files belonging to the PPD version of the JETAN code
[u/mrichter/AliRoot.git] / HBTAN / AliHBTPositionRandomizer.cxx
index 3a271659bf0d2d88ce4e6f9a8f76a90ad580aa1c..affe33d0cf7a707943bd7f6ebe54734105517b71 100644 (file)
@@ -1,4 +1,20 @@
-#include "AliHBTPositionRandomizer.h"
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id $ */
+
 //___________________________________________________
 ////////////////////////////////////////////////////////////////////////////////
 // 
 ////////////////////////////////////////////////////////////////////////////////
 
 #include <TRandom.h>
+
 #include "AliAOD.h"
+#include "AliHBTPositionRandomizer.h"
+#include "AliLog.h"
 #include "AliVAODParticle.h"
 
 
@@ -131,7 +150,7 @@ void AliHBTPositionRandomizer::Randomize(AliAOD* event) const
 {
 // randomizes postions of all particles in the event
   static const Double_t kfmtocm = 1.e-13;
-  if (AliVAODParticle::GetDebug() > 5) Info("Randomize(AliAOD*)","");
+  AliDebug(5," ");
   if (event == 0x0) return;
 
   for (Int_t i = 0; i < event->GetNumberOfParticles(); i++)
@@ -310,7 +329,7 @@ void AliHBTRndmGaussBall::Randomize(Double_t& x,Double_t& y,Double_t&z,Double_t&
   
   if (fTsigma == 0.0)
    {
-     t = 0.0;
+     t = fTmean;
      return;
    }