Ported to Alpha
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Oct 2003 07:45:32 +0000 (07:45 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 31 Oct 2003 07:45:32 +0000 (07:45 +0000)
HBTAN/AliHBTCrab.cxx
HBTAN/AliHBTCrab.h
build/Makefile.OSF1

index 58d91ecce774cc0145c4f82edcf0e240c9594ea4..5979340a1afe08ce9704d973c634b4999305e3f7 100644 (file)
@@ -21,7 +21,11 @@ AliHBTCrab* AliHBTCrab::fgCrab = 0x0;
 
 const Double_t AliHBTCrab::fgkWcons = 1./0.1973;
 const Double_t AliHBTCrab::fgkROOT2=1.41421356237309504880;
+#ifdef __DECCXX
+const complex AliHBTCrab::ci(0.0,1.0);
+#else
 const double_complex AliHBTCrab::ci(0.0,1.0);
+#endif
 
 /************************************************************/
 
@@ -258,7 +262,11 @@ double  AliHBTCrab::corrcalc(double trueqred,double trueqdotr,double truer)
   double wsym_leftover,wanti_leftover,wnosym_leftover;
   double qred,qdotr,r;
 //  const double rmass=MASS1*MASS2/(MASS1+MASS2);
+#ifdef __DECCXX
+  complex cphi1,cphi2,cphis,cphia;
+#else
   double_complex cphi1,cphi2,cphis,cphia;
+#endif
 
   arg=trueqdotr/197.323-2.0*TMath::Pi()*TMath::Floor(trueqdotr/(197.323*2.0*TMath::Pi()));
   cphi1=exp(ci*arg);
@@ -310,12 +318,20 @@ OUTSIDE_INTERACTION_RANGE:
   return corr0;
 }
 
+#ifdef __DECCXX
+complex AliHBTCrab::cgamma(complex c){
+#else
 double_complex AliHBTCrab::cgamma(double_complex c){
+#endif
   /* This calc.s gamma functions which are in the form gamma(n+i*y)
      where n is an int and y is real. */
 // This code is written by Scott Pratt
 // taken from http://www.nscl.msu.edu/~pratt/freecodes/crab/home.html
+#ifdef __DECCXX
+  complex cg,cphase;
+#else
   double_complex cg,cphase;
+#endif
   int mm,j;
   double x,y,phase,delp,cgmag;
   x=real(c);
index 35ccbca7be7281a62611adaae5dcb1aeb3e68748..4fce9314b0a77d1a14dde63cbe8756c85058887b 100644 (file)
 
 #include "AliHBTWeights.h"
 
-class Complex;
-typedef Complex double_complex;
+//class Complex;
+//typedef Complex double_complex;
+#ifdef __DECCXX
+#include <complex.h>
+#endif
+#include <math.h>
 
 class AliHBTPair;
 
@@ -53,11 +57,19 @@ class AliHBTCrab: public AliHBTWeights
      Float_t INTERACTION_DELK;
      Int_t INTERACTION_NKMAX;/* number of momentum points in mesh for strong/coul. interaction */
      
+#ifdef __DECCXX
+     static const complex ci;
+#else
      static const double_complex ci;
+#endif
      static const Double_t fgkROOT2;//! some const
      static const Double_t fgkWcons; //constant for fm->GeV conversion 1/0.1973
      
+#ifdef __DECCXX
+     complex cgamma(complex c);
+#else
      double_complex cgamma(double_complex c);
+#endif
      
      static AliHBTCrab* fgCrab;
      ClassDef(AliHBTCrab,1)
index 996ef464e5a2b5bc877de2d9a2da0bc3359d05c6..32ecf23350f361be59aded6e76c572ac16eae37e 100644 (file)
@@ -17,7 +17,7 @@ CXXFLAGS      = $(CXXOPTS)
 CFLAGS       = -fPIC -pipe -mcpu=ev5 -D__osf__ -D__alpha
 
 # rootcint flags
-CINTFLAGS     = 
+CINTFLAGS     = -D__DECCXX
 
 # rmkdepend flags for building dependencies of FORTRAN files
 DEPENDFFLAGS = $(filter-out -warn noinformational,$(FFLAGS))