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 // Helper class to interface pdflib and the TPythia
19 // the c++ interface for Pythia
20 // The pdf codes used in pdflib are mapped
21 // to a more user friendly enumeration type.
22 // Author: andreas.morsch@cern.ch
24 #include "AliStructFuncType.h"
27 # define structa structa_
28 # define pdfset pdfset_
31 # define structa STRUCTA
32 # define pdfset PDFSET
33 # define type_of_call _stdcall
38 void type_of_call pdfset(char parm[20][20], Double_t value[20]);
40 void type_of_call structa(Double_t& xx, Double_t& qq, Double_t& a,
41 Double_t& upv, Double_t& dnv, Double_t& usea,
43 Double_t& str, Double_t& chm, Double_t& bot,
44 Double_t& top, Double_t& gl);
47 ClassImp(AliStructFuncType)
49 void AliStructFuncType::PdfSet(char parm[20][20], Double_t value[20])
54 void AliStructFuncType::StructA(Double_t xx, Double_t qq, Double_t a,
55 Double_t& upv, Double_t& dnv, Double_t& usea,
57 Double_t& str, Double_t& chm, Double_t& bot,
58 Double_t& top, Double_t& gl)
60 structa(xx, qq, a, upv, dnv, usea, dsea, str, chm, bot, top, gl);