1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 // Class: AliQPythiaWrapper
20 // Responsibilities: Interface to C++ Functionality needed by the QPythia Fortran Code
21 // So far only AliFastGlauber is interfaced
24 #include <AliFastGlauber.h>
26 #include "AliQPythiaWrapper.h"
28 ClassImp(AliQPythiaWrapper)
31 //_______________________________________________________________________
32 #define getlength getlength_
35 void getlength(Double_t& ell, Double_t& b)
37 // Wrapper to method GetLength from AliGlauber
38 (AliFastGlauber::Instance())->GetLength(ell, b);
43 //_______________________________________________________________________
44 #define getrandombhard getrandombhard_
47 void getrandombhard(Double_t& b)
49 // Wrapper to method GetRandomBHard from AliGlauber
50 (AliFastGlauber::Instance())->GetRandomBHard(b);
54 //_______________________________________________________________________
55 #define getrandomxy getrandomxy_
58 void getrandomxy(Double_t& x,Double_t& y )
60 // Wrapper to method GetRandomXY from AliGlauber
61 (AliFastGlauber::Instance())->GetRandomXY(x,y);
66 //_______________________________________________________________________
67 #define calculatei0i1 calculatei0i1_
70 void calculatei0i1(Double_t& xintegral0,Double_t& xintegral1,Double_t& b,Double_t& x,Double_t& y,Double_t& phi,Double_t& ellCut)
72 // Wrapper to method GetRandomXY from AliGlauber
73 (AliFastGlauber::Instance())->CalculateI0I1(xintegral0,xintegral1,b,x,y,phi,ellCut);
79 //_______________________________________________________________________
80 #define calculatelength calculatelength_
83 double calculatelength(Double_t& b,Double_t& x,Double_t& y,Double_t& phi)
85 // Wrapper to method CalculateLength from AliGlauber
86 return (AliFastGlauber::Instance())->CalculateLength(b,x,y,phi);