]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenSlowNucleons.cxx
Fix for bug #60085: compilation error due to build system. The LANGUAGE variable...
[u/mrichter/AliRoot.git] / EVGEN / AliGenSlowNucleons.cxx
index 6edf90b279eefbbc9836222876815bc642db953a..88341bfbbfe49c832abd04a8f2ceaa456258a592 100644 (file)
@@ -35,7 +35,7 @@
 #include "AliGenSlowNucleons.h"
 #include "AliSlowNucleonModel.h"
 
-ClassImp(AliGenSlowNucleons);
+ClassImp(AliGenSlowNucleons)
 
     
 AliGenSlowNucleons::AliGenSlowNucleons()
@@ -100,37 +100,6 @@ AliGenSlowNucleons::AliGenSlowNucleons(Int_t npart)
     fCollisionGeometry = 0;
 }
 
-//____________________________________________________________
-AliGenSlowNucleons::AliGenSlowNucleons(const AliGenSlowNucleons & sn):
-    AliGenerator(sn),
-    fCMS(0.),
-    fMomentum(0.),
-    fBeta(0.),
-    fPmax (0.),
-    fATarget (0.),
-    fZTarget (0.),
-    fCharge(0),
-    fProtonDirection(0.),
-    fTemperatureG(0.), 
-    fBetaSourceG(0.),
-    fTemperatureB(0.),
-    fBetaSourceB(0.),
-    fNgp(0),
-    fNgn(0),
-    fNbp(0),
-    fNbn(0),
-    fDebug(0),
-    fDebugHist1(0),
-    fDebugHist2(0),
-    fThetaDistribution(),
-    fCosThetaGrayHist(),
-    fCosTheta(),
-    fSlowNucleonModel(0)
-{
-// Copy constructor
-    sn.Copy(*this);
-}
-
 //____________________________________________________________
 AliGenSlowNucleons::~AliGenSlowNucleons()
 {
@@ -341,30 +310,7 @@ void AliGenSlowNucleons::Lorentz(Double_t m, Double_t beta, Float_t* q)
 {
 /* Lorentz transform in the direction of q[2] */
  
-    Double_t gamma  = 1/sqrt(1-beta*beta); 
+    Double_t gamma  = 1/sqrt((1.-beta)*(1.+beta)); 
     Double_t energy = sqrt(m*m + q[0]*q[0] + q[1]*q[1] + q[2]*q[2]);
     q[2] = gamma * (q[2] + beta*energy);
 }
-
-         
-AliGenSlowNucleons& AliGenSlowNucleons::operator=(const  AliGenSlowNucleons& rhs)
-{
-// Assignment operator
-    rhs.Copy(*this);
-    return *this;
-}
-
-void AliGenSlowNucleons::Copy(TObject&) const
-{
-    //
-    // Copy 
-    //
-    Fatal("Copy","Not implemented!\n");
-}
-
-
-
-
-
-
-