From f93c53d80bc6f47c717dc7b054cf9792511c6dab Mon Sep 17 00:00:00 2001 From: skowron Date: Wed, 29 Oct 2003 09:24:09 +0000 Subject: [PATCH] Warning removal --- HBTAN/AliHBTCrab.cxx | 20 +++++++++++--------- HBTAN/volya_complex.h | 12 +++++++----- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/HBTAN/AliHBTCrab.cxx b/HBTAN/AliHBTCrab.cxx index db1070ca60f..44c5edd3738 100644 --- a/HBTAN/AliHBTCrab.cxx +++ b/HBTAN/AliHBTCrab.cxx @@ -7,7 +7,7 @@ // written by Scott Pratt // // // ///////////////////////////////////////////////////////////////////////// - + #include "AliHBTPair.h" #include @@ -116,7 +116,7 @@ void AliHBTCrab::get_com_quantities(const AliHBTPair* pair, double r2[4]; static const Double_t cmtofm = 1.e13; - static const Double_t cmtoOneOverGeV = cmtofm*fgkWcons; +// static const Double_t cmtoOneOverGeV = cmtofm*fgkWcons; AliHBTParticle *part1 = pair->Particle1(); AliHBTParticle *part2 = pair->Particle2(); @@ -147,13 +147,14 @@ void AliHBTCrab::get_com_quantities(const AliHBTPair* pair, // taken from http://www.nscl.msu.edu/~pratt/freecodes/crab/home.html int alpha; double kdotr; + double momtest; if (fReducedMom) { - const double momtest=4.0*fMaxMomentum*fMaxMomentum; + momtest=4.0*fMaxMomentum*fMaxMomentum; } else { - const double momtest=fMaxMomentum*fMaxMomentum; + momtest=fMaxMomentum*fMaxMomentum; } double ptot2,pdotr,pp,rr; @@ -250,12 +251,13 @@ double AliHBTCrab::corrcalc(double trueqred,double trueqdotr,double truer) //#define REDUCED_MOM // This code is written by Scott Pratt // taken from http://www.nscl.msu.edu/~pratt/freecodes/crab/home.html - double eta,arg,krmax,corr0; - double xx,xxprime,xxjj,p1,zk; - int jj,kk,ipart,ipartcount,ispin; - double pfactor,wsym_leftover,wanti_leftover,wnosym_leftover; + double eta,arg,corr0; +// double xx,xxprime,xxjj,p1,zk; +// int jj,kk,ipart,ipartcount,ispin; + int kk; + double wsym_leftover,wanti_leftover,wnosym_leftover; double qred,qdotr,r; - const double rmass=MASS1*MASS2/(MASS1+MASS2); +// const double rmass=MASS1*MASS2/(MASS1+MASS2); double_complex cphi1,cphi2,cphis,cphia; arg=trueqdotr/197.323-2.0*TMath::Pi()*floor(trueqdotr/(197.323*2.0*TMath::Pi())); diff --git a/HBTAN/volya_complex.h b/HBTAN/volya_complex.h index 76603a716c4..d8dfc1d988a 100644 --- a/HBTAN/volya_complex.h +++ b/HBTAN/volya_complex.h @@ -22,9 +22,11 @@ Version 1.0.1 #define PI 3.141592653589793238462643 #endif -#include -#include -#include + +#include +#include +//#include +//#include /////////////////////////// Helper Error Function @@ -760,8 +762,8 @@ void Solve3 (Complex* z, const Complex &a2, const Complex &a1, const Complex &a0 t = sqrt((r^2) - (q^3)); a = ((!r * t) >=0.0) ? -((r+t)^(1.0/3)) : -((r-t)^(1.0/3)); b = ((a == zero) ? zero : (q/a)); - z[0] = -(a+b)/2 - a2/3 + ImUnit*sqrt(3)*(a-b)/2; - z[1] = -(a+b)/2 - a2/3 - ImUnit*sqrt(3)*(a-b)/2; + z[0] = -(a+b)/2 - a2/3 + ImUnit*sqrt(3.0)*(a-b)/2; + z[1] = -(a+b)/2 - a2/3 - ImUnit*sqrt(3.0)*(a-b)/2; z[2] = a + b - a2/3; } -- 2.43.0